Skip to content

Commit

Permalink
Merge pull request #50 from itkrt2y/master
Browse files Browse the repository at this point in the history
Update ruby/rails support versions
  • Loading branch information
joker1007 committed Apr 21, 2023
2 parents a891c41 + 43819ca commit 4718b05
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Expand Up @@ -16,10 +16,9 @@ jobs:
strategy:
matrix:
ruby:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
services:
redis:
image: redis
Expand Down
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions rukawa.gemspec
Expand Up @@ -18,7 +18,8 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_runtime_dependency "activesupport", ">= 4", "< 7"
spec.add_runtime_dependency "activesupport", ">= 6"
spec.add_runtime_dependency "redis"
spec.add_runtime_dependency "concurrent-ruby"
spec.add_runtime_dependency "thor"
spec.add_runtime_dependency "terminal-table"
Expand All @@ -29,7 +30,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec-power_assert"
spec.add_development_dependency "rspec-parameterized"
spec.add_development_dependency "redis-activesupport"
spec.add_development_dependency "activejob"
spec.add_development_dependency "sucker_punch"
spec.add_development_dependency "aws-sdk", "~> 2.0"
Expand Down
2 changes: 0 additions & 2 deletions sample/rukawa.rb
Expand Up @@ -3,8 +3,6 @@
c.graph.nodesep = 0.8
end

require 'redis-activesupport'

redis_host = ENV["REDIS_HOST"] || "localhost:6379"
Rukawa.configure do |c|
c.status_store = ActiveSupport::Cache::RedisStore.new(redis_host)
Expand Down
7 changes: 1 addition & 6 deletions spec/spec_helper.rb
Expand Up @@ -3,7 +3,6 @@
require 'rukawa/runner'
require 'rspec-power_assert'
require 'rspec-parameterized'
require 'redis-activesupport'
require 'active_job'

RSpec::PowerAssert.example_assertion_alias :assert
Expand All @@ -13,11 +12,7 @@

redis_host = ENV["REDIS_HOST"] || "localhost:6379"
Rukawa.configure do |c|
c.status_store = if ActiveSupport.version >= Gem::Version.new("5.2")
ActiveSupport::Cache::RedisCacheStore.new(url: "redis://#{redis_host}")
else
ActiveSupport::Cache::RedisStore.new(redis_host)
end
c.status_store = ActiveSupport::Cache::RedisCacheStore.new(url: "redis://#{redis_host}")
end

Rukawa.config.status_store.write("rukawa.test", "test", expires_in: 60)
Expand Down

0 comments on commit 4718b05

Please sign in to comment.