Skip to content

Commit

Permalink
Update development dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon committed Sep 20, 2021
1 parent 9b677f4 commit d2176cd
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install missing libs (Temporary regression in GH Action?)
run: sudo apt update && sudo apt-get -yqq install build-essential
- name: Update .ruby-version with matrix value
run: echo "${{ matrix.ruby }}" >| .ruby-version

Expand Down
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ end
if ruby_27_or_higher && !jruby
# Rails HEAD requires MRI 2.7+
# activerecord-jdbcpostgresql-adapter does not have a compatible version

appraise "rails-7.0" do
gem "rails", "~> 7.0.0.alpha"
end

appraise "rails-head" do
gem "rails", github: "rails/rails", branch: "main"
end
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ gemspec
gem 'activerecord-jdbcpostgresql-adapter', platforms: [:jruby]
gem 'appraisal', github: "bensheldon/appraisal", branch: "fix-bundle-env" # https://github.com/thoughtbot/appraisal/pull/174
gem 'pg', platforms: [:mri, :mingw, :x64_mingw]
gem 'puma', '5.4.0'
gem 'rails'

platforms :ruby do
Expand Down
41 changes: 10 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ GEM
activerecord-explain-analyze (0.1.0)
activerecord (>= 4)
pg
activerecord-jdbc-adapter (61.1-java)
activerecord (~> 6.1.0)
activerecord-jdbcpostgresql-adapter (61.1-java)
activerecord-jdbc-adapter (= 61.1)
jdbc-postgres (>= 9.4, < 43)
activestorage (6.1.4.1)
actionpack (= 6.1.4.1)
activejob (= 6.1.4.1)
Expand Down Expand Up @@ -155,9 +150,9 @@ GEM
rubocop
smart_properties
erubi (1.10.0)
et-orbi (1.2.4)
et-orbi (1.2.5)
tzinfo
faraday (1.7.1)
faraday (1.8.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand All @@ -178,11 +173,10 @@ GEM
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
ffi (1.15.3)
ffi (1.15.3-java)
ffi (1.15.4)
fiber-local (1.0.0)
foreman (0.87.2)
fugit (1.5.1)
fugit (1.5.2)
et-orbi (~> 1.1, >= 1.1.8)
raabro (~> 1.4)
gem-release (2.2.2)
Expand All @@ -200,7 +194,6 @@ GEM
html_tokenizer (0.0.7)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jdbc-postgres (42.2.14)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
Expand Down Expand Up @@ -231,17 +224,14 @@ GEM
multi_json (1.15.0)
multipart-post (2.1.1)
nio4r (2.5.8)
nio4r (2.5.8-java)
nokogiri (1.12.4)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
nokogiri (1.12.4-java)
racc (~> 1.4)
octokit (4.21.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
optimist (3.0.1)
parallel (1.20.1)
parallel (1.21.0)
parser (3.0.2.0)
ast (~> 2.4.1)
pg (1.2.3)
Expand All @@ -255,10 +245,6 @@ GEM
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry (0.13.1-java)
coderay (~> 1.1)
method_source (~> 1.0)
spoon (~> 0.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
Expand All @@ -267,11 +253,8 @@ GEM
public_suffix (4.0.6)
puma (5.4.0)
nio4r (~> 2.0)
puma (5.4.0-java)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.5.2)
racc (1.5.2-java)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -326,7 +309,7 @@ GEM
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.2)
rubocop (1.20.0)
rubocop (1.21.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
Expand All @@ -340,7 +323,7 @@ GEM
rubocop-performance (1.11.5)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.11.3)
rubocop-rails (2.12.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0)
Expand All @@ -357,9 +340,7 @@ GEM
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
sigdump (0.2.4)
smart_properties (1.16.0)
spoon (0.0.6)
ffi
smart_properties (1.16.3)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -372,11 +353,9 @@ GEM
tomlrb (2.0.1)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (2.0.0)
unicode-display_width (2.1.0)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-driver (0.7.5-java)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
Expand Down Expand Up @@ -410,7 +389,7 @@ DEPENDENCIES
pg
pry-byebug
pry-rails
puma
puma (= 5.4.0)
rails
rbtrace
rspec-rails
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord-jdbcpostgresql-adapter", platforms: [:jruby]
gem "appraisal", branch: "fix-bundle-env", git: "https://github.com/bensheldon/appraisal.git"
gem "pg", platforms: [:mri, :mingw, :x64_mingw]
gem "puma", "5.4.0"
gem "rails", "~> 5.2.0"

platforms :ruby do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord-jdbcpostgresql-adapter", platforms: [:jruby]
gem "appraisal", branch: "fix-bundle-env", git: "https://github.com/bensheldon/appraisal.git"
gem "pg", platforms: [:mri, :mingw, :x64_mingw]
gem "puma", "5.4.0"
gem "rails", "~> 6.0.0"

platforms :ruby do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord-jdbcpostgresql-adapter", platforms: [:jruby]
gem "appraisal", branch: "fix-bundle-env", git: "https://github.com/bensheldon/appraisal.git"
gem "pg", platforms: [:mri, :mingw, :x64_mingw]
gem "puma", "5.4.0"
gem "rails", "~> 6.1.0"

platforms :ruby do
Expand Down
27 changes: 27 additions & 0 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord-jdbcpostgresql-adapter", platforms: [:jruby]
gem "appraisal", branch: "fix-bundle-env", git: "https://github.com/bensheldon/appraisal.git"
gem "pg", platforms: [:mri, :mingw, :x64_mingw]
gem "puma", "5.4.0"
gem "rails", "~> 7.0.0.alpha"

platforms :ruby do
gem "activerecord-explain-analyze"
gem "memory_profiler"
gem "pry-byebug"
gem "rbtrace"

group :lint do
gem "erb_lint", ">= 0.0.35"
gem "mdl"
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
end
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_head.gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord-jdbcpostgresql-adapter", platforms: [:jruby]
gem "appraisal", branch: "fix-bundle-env", git: "https://github.com/bensheldon/appraisal.git"
gem "pg", platforms: [:mri, :mingw, :x64_mingw]
gem "puma", "5.4.0"
gem "rails", branch: "main", git: "https://github.com/rails/rails.git"

platforms :ruby do
Expand Down
4 changes: 2 additions & 2 deletions lib/good_job/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ def shutdown(timeout: :default)
# @return [Boolean]
def execute_async?
@configuration.execution_mode == :async_all ||
@configuration.execution_mode.in?([:async, :async_server]) && in_server_process?
(@configuration.execution_mode.in?([:async, :async_server]) && in_server_process?)
end

# Whether in +:external+ execution mode.
# @return [Boolean]
def execute_externally?
@configuration.execution_mode == :external ||
@configuration.execution_mode.in?([:async, :async_server]) && !in_server_process?
(@configuration.execution_mode.in?([:async, :async_server]) && !in_server_process?)
end

# Whether in +:inline+ execution mode.
Expand Down

0 comments on commit d2176cd

Please sign in to comment.