Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into allow-for-keyword-arguments
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/ruby.yml
#	gush.gemspec
  • Loading branch information
toreym committed May 19, 2024
2 parents b65b4db + d49e6bb commit 9b41506
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 36 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +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.7', '3.0', '3.1', '3.2']
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'
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Gush

![Gem Version](https://img.shields.io/gem/v/gush)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/chaps-io/gush/ruby.yml)


Gush is a parallel workflow runner using only Redis as storage and [ActiveJob](http://guides.rubyonrails.org/v4.2/active_job_basics.html#introduction) for scheduling and executing jobs.

## Theory
Expand All @@ -15,7 +19,7 @@ This README is about the latest `master` code, which might differ from what is r
### 1. Add `gush` to Gemfile

```ruby
gem 'gush', '~> 2.1'
gem 'gush', '~> 3.0'
```

### 2. Create `Gushfile`
Expand Down
14 changes: 8 additions & 6 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,9 +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 = '>= 2.7.0'
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 @@ -30,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 9b41506

Please sign in to comment.