Skip to content

Commit

Permalink
Removed support for ruby < 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-knight committed Oct 23, 2023
1 parent 06b3d3c commit 4bbdc07
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ workflows:
- test:
matrix:
parameters:
ruby-version: ["2.2.3", "2.5.0", "2.7.4", "3.2.2", "3.3.0-preview1"]
ruby-version: ["2.5.0", "2.7.4", "3.2.2", "3.3.0-preview1"]
4 changes: 1 addition & 3 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ appraise "redis-4" do
end

appraise "redis-5" do
if RUBY_VERSION >= "2.5.0"
gem "redis", ">= 5.0.0"
end
gem "redis", ">= 5.0.0"
end
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ source "https://rubygems.org"
# Specify your gem's dependencies in fruit_juice.gemspec
gemspec

gem "rake", "~> 13.0"

if RUBY_VERSION <= "2.4.0"
gem "connection_pool", "2.2.5"
end

group :test do
gem "rspec", "~> 3.0"
end
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PATH
remote: .
specs:
fruit_juice (0.6.0)
json (>= 2.3.0)
redis (>= 4.2.0)

GEM
Expand All @@ -13,6 +14,7 @@ GEM
thor (>= 0.14.0)
connection_pool (2.3.0)
diff-lcs (1.5.0)
json (2.6.3)
rake (13.0.6)
redis (5.0.5)
redis-client (>= 0.9.0)
Expand Down Expand Up @@ -41,7 +43,6 @@ PLATFORMS
DEPENDENCIES
appraisal (~> 2.5)
fruit_juice!
rake (~> 13.0)
rspec (~> 3.0)

BUNDLED WITH
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FruitJuice is a job enqueuing adapter for the [mosquito background job processor

## Requirements

Ruby 2.2.3+
Ruby 2.5.0+
Mosquito 1.0.0.rc1+
Crystal 1.0.0+
Redis 4+
Expand Down Expand Up @@ -82,7 +82,7 @@ That's it! Triggering jobs from Ruby/Rails is pretty easy, but this makes it a n

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org). (Hint: only Seth can push to ruby gems for now)

Expand Down
17 changes: 4 additions & 13 deletions fruit_juice.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = "This handy adapter will let you enqueue delayed jobs from a Ruby/Rails app and have the job processed by Mosquito in Crystal. The idea behind this came from a Ruby/Rails app needing a better way to process massive background jobs more effeciently, and a desire to stay curious and explore."
spec.homepage = "https://github.com/crimson-knight/fruit_juice"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.2.0"
spec.required_ruby_version = ">= 2.5.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/crimson-knight/fruit_juice"
Expand All @@ -28,16 +28,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

if RUBY_VERSION >= "2.3.0"
spec.add_dependency "redis", ">= 4.2.0"
else
spec.add_dependency "redis", "4.1.0"
spec.add_dependency "thor", "1.2.2"
end

if RUBY_VERSION >= "2.3.0"
spec.add_development_dependency "appraisal", "~> 2.5"
else
spec.add_development_dependency "appraisal", "2.2.0"
end
spec.add_dependency "redis", ">= 4.2.0"
spec.add_dependency "json", ">= 2.3.0"
spec.add_development_dependency "appraisal", "~> 2.5"
end

0 comments on commit 4bbdc07

Please sign in to comment.