Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 37 additions & 42 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ GEM
ffi-compiler (~> 1.0)
ast (2.4.3)
base64 (0.3.0)
bigdecimal (4.1.2)
bigdecimal (4.1.3)
byebug (13.0.0)
reline (>= 0.6.0)
coderay (1.1.3)
crack (1.0.1)
bigdecimal
rexml
date (3.5.1)
diff-lcs (1.6.2)
docile (1.4.1)
dotenv (3.2.0)
erb (6.0.4)
erb (6.0.7)
extract-repo (1.0.0)
foobara (< 2.0.0)
foobara-sh-cli-connector (< 2.0.0)
Expand Down Expand Up @@ -66,7 +64,7 @@ GEM
foobara-typescript-react-command-form-generator (< 2.0.0)
foobara-typescript-remote-command-generator (< 2.0.0)
foobify-rails-app (< 2.0.0)
foobara (0.5.10)
foobara (0.6.3)
bigdecimal
foobara-lru-cache (< 2.0.0)
foobara-util (< 2.0.0)
Expand All @@ -82,14 +80,14 @@ GEM
foobara-files-generator
foobara-dotenv-loader (0.0.3)
dotenv
foobara-empty-ruby-project-generator (1.0.4)
foobara-empty-ruby-project-generator (1.0.5)
extract-repo (< 2.0.0)
foobara (>= 0.1.1, < 2.0.0)
foobara-files-generator (< 2.0.0)
foobara-empty-typescript-react-project-generator (0.2.0)
foobara-empty-typescript-react-project-generator (0.3.0)
foobara (>= 0.1.1, < 2.0.0)
foobara-files-generator (< 2.0.0)
foobara-files-generator (0.1.2)
foobara-files-generator (0.1.4)
foobara (>= 0.1.1, < 2.0.0)
foobara-local-files-crud-driver-generator (0.0.3)
foobara
Expand All @@ -115,7 +113,7 @@ GEM
foobara-resque-scheduler-connector-generator (0.0.2)
foobara
foobara-files-generator
foobara-rubocop-rules (1.0.13)
foobara-rubocop-rules (1.1.1)
rubocop
rubocop-rspec
foobara-sh-cli-connector (1.1.4)
Expand All @@ -124,15 +122,15 @@ GEM
foobara-sh-cli-connector-generator (0.1.0)
foobara (>= 0.1.1)
foobara-files-generator (< 2.0.0)
foobara-spec-helpers (0.1.0)
foobara-spec-helpers (0.1.1)
foobara-util
foobara-type-generator (0.0.4)
foobara
foobara-files-generator
foobara-typescript-react-command-form-generator (1.3.0)
foobara (>= 0.1.1, < 2.0.0)
foobara-typescript-remote-command-generator (< 2.0.0)
foobara-typescript-remote-command-generator (1.4.0)
foobara-typescript-remote-command-generator (1.5.1)
foobara (>= 0.1.16, < 2.0.0)
foobara-files-generator (< 2.0.0)
foobara-util (1.0.8)
Expand All @@ -142,7 +140,7 @@ GEM
foobara-sh-cli-connector (< 2.0.0)
formatador (1.2.3)
reline
guard (2.20.1)
guard (2.20.2)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
logger (~> 1.6)
Expand All @@ -159,16 +157,16 @@ GEM
rspec (>= 2.99.0, < 4.0)
hashdiff (1.2.1)
inheritable-thread-vars (0.0.3)
io-console (0.8.2)
io-console (0.9.4)
irb (1.18.0)
pp (>= 0.6.0)
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.19.5)
jwt (3.1.2)
json (3.0.2)
jwt (3.3.0)
base64
language_server-protocol (3.17.0.5)
language_server-protocol (3.17.0.6)
lint_roller (1.1.0)
listen (3.10.0)
logger
Expand All @@ -182,11 +180,11 @@ GEM
nenv (~> 0.1)
shellany (~> 0.0)
ostruct (0.6.3)
parallel (2.1.0)
parser (3.3.11.1)
parallel (2.2.0)
parser (3.3.12.0)
ast (~> 2.4.1)
racc
pp (0.6.3)
pp (0.6.4)
prettyprint
prettyprint (0.2.0)
prism (1.9.0)
Expand All @@ -197,22 +195,24 @@ GEM
pry-byebug (3.12.0)
byebug (~> 13.0)
pry (>= 0.13, < 0.17)
psych (5.3.1)
date
stringio
public_suffix (7.0.5)
racc (1.8.1)
rainbow (3.1.1)
rake (13.4.2)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rdoc (7.2.0)
rbs (4.2.0)
logger
prism (>= 1.6.0)
tsort
rdoc (8.0.0)
erb
psych (>= 4.0.0)
prism (>= 1.6.0)
rbs (>= 4.0.0)
tsort
regexp_parser (2.12.0)
reline (0.6.3)
reline (0.7.0)
io-console (~> 0.5)
rexml (3.4.4)
rspec (3.13.2)
Expand All @@ -231,8 +231,8 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.7)
rubocop (1.86.1)
json (~> 2.3)
rubocop (1.91.0)
json (>= 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (>= 1.10)
Expand All @@ -242,35 +242,30 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.1)
rubocop-ast (1.50.0)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-rake (0.7.1)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
rubocop-rspec (3.9.0)
rubocop-rspec (3.10.2)
lint_roller (~> 1.1)
rubocop (~> 1.81)
ruby-prof (2.0.4)
regexp_parser (>= 2.0)
rubocop (~> 1.86, >= 1.86.2)
ruby-prof (2.0.5)
base64
ostruct
ruby-progressbar (1.13.0)
shellany (0.0.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
stringio (3.2.0)
simplecov (1.3.0)
thor (1.5.0)
timecop (0.9.11)
tsort (0.2.0)
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.2.0)
unicode-display_width (3.3.0)
unicode-emoji (~> 4.3)
unicode-emoji (4.3.0)
vcr (6.4.0)
webmock (3.26.2)
webmock (3.26.4)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require "pry"
require "pry-byebug"
require "rspec/its"
Warning[:deprecated] = true

require_relative "support/simplecov"
require_relative "../boot/start"
Expand Down
2 changes: 1 addition & 1 deletion spec/support/simplecov.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "simplecov"

SimpleCov.start do
add_filter "spec/support"
skip "spec/support"
# enable_coverage :branch
minimum_coverage line: 100
# TODO: enable this? worth it to get to 100% branch coverage?
Expand Down
4 changes: 2 additions & 2 deletions src/build_access_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def jwt_secret
jwt_secret_text = ENV.fetch("JWT_SECRET", nil)

unless jwt_secret_text
# :nocov:
# simplecov:disable
raise "You must set the JWT_SECRET environment variable"
# :nocov:
# simplecov:enable
end

jwt_secret_text
Expand Down
4 changes: 2 additions & 2 deletions src/delete_api_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def remove_api_key_from_user
if api_keys.include?(token)
user.api_keys = api_keys - [token]
else
# :nocov:
# simplecov:disable
raise "User has no such api key"
# :nocov:
# simplecov:enable
end
end

Expand Down
4 changes: 2 additions & 2 deletions src/verify_access_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def jwt_secret
jwt_secret_text = ENV.fetch("JWT_SECRET", nil)

unless jwt_secret_text
# :nocov:
# simplecov:disable
raise "You must set the JWT_SECRET environment variable"
# :nocov:
# simplecov:enable
end

jwt_secret_text
Expand Down
Loading