Skip to content

Commit

Permalink
Merge pull request #107 from chaps-io/bump-gush-dependencies
Browse files Browse the repository at this point in the history
Update gush dependencies
  • Loading branch information
krzyzak authored Feb 29, 2024
2 parents e218ea1 + fdcae59 commit 00d0bc5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 36 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rails_version: ['4.2.7', '5.1.0', '5.2.0', '6.0.0', '6.1.0', '7.0']
ruby-version: ['2.6', '2.7', '3.0', '3.1']
exclude:
- ruby-version: '3.0'
rails_version: '4.2.7'
- ruby-version: '3.1'
rails_version: '4.2.7'
- ruby-version: '3.0'
rails_version: '5.0'
- ruby-version: '3.1'
rails_version: '5.0'
- ruby-version: '3.0'
rails_version: '5.1'
- ruby-version: '3.1'
rails_version: '5.1'
- ruby-version: '3.0'
rails_version: '5.2'
- ruby-version: '3.1'
rails_version: '5.2'
- ruby-version: '3.0'
rails_version: '6.0'
- ruby-version: '3.1'
rails_version: '6.0'
- ruby-version: '3.1'
rails_version: '6.1'
- ruby-version: '2.6'
rails_version: '7.0'
rails_version: ['6.1.0', '7.0', '7.1.0']
ruby-version: ['3.0', '3.1', '3.2', '3.3']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
13 changes: 8 additions & 5 deletions gush.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require_relative 'lib/gush/version'

Gem::Specification.new do |spec|
spec.name = "gush"
spec.version = "2.1.0"
spec.authors = ["Piotrek Okoński"]
spec.email = ["[email protected]"]
spec.version = Gush::VERSION
spec.authors = ["Piotrek Okoński", "Michał Krzyżanowski"]
spec.email = ["[email protected]", "[email protected]"]
spec.summary = "Fast and distributed workflow runner based on ActiveJob and Redis"
spec.description = "Gush is a parallel workflow runner using Redis as storage and ActiveJob for executing jobs."
spec.homepage = "https://github.com/chaps-io/gush"
Expand All @@ -16,8 +18,9 @@ Gem::Specification.new do |spec|
spec.executables = "gush"
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.required_ruby_version = '>= 3.0.0'

spec.add_dependency "activejob", ">= 4.2.7", "< 7.1"
spec.add_dependency "activejob", ">= 6.1.0", "< 7.2"
spec.add_dependency "concurrent-ruby", "~> 1.0"
spec.add_dependency "multi_json", "~> 1.11"
spec.add_dependency "redis", ">= 3.2", "< 6"
Expand All @@ -29,7 +32,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "thor", ">= 0.19", "< 1.3"
spec.add_dependency "launchy", "~> 2.4"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake", "~> 10.4"
spec.add_development_dependency "rake", "~> 12"
spec.add_development_dependency "rspec", '~> 3.0'
spec.add_development_dependency "pry", '~> 0.10'
end
3 changes: 3 additions & 0 deletions lib/gush/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Gush
VERSION = '3.0.0'
end
7 changes: 4 additions & 3 deletions spec/features/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
context "when all jobs finish successfuly" do
it "marks workflow as completed" do
flow = TestWorkflow.create
perform_enqueued_jobs do
flow.start!
end

ActiveJob::Base.queue_adapter.perform_enqueued_jobs = true
flow.start!
ActiveJob::Base.queue_adapter.perform_enqueued_jobs = false

flow = flow.reload
expect(flow).to be_finished
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'active_support'
require 'active_support/testing/time_helpers'
require 'gush'
require 'json'
Expand Down

0 comments on commit 00d0bc5

Please sign in to comment.