Skip to content

Commit

Permalink
Add ruby 2.7.1 support, move dev dependencies into gemspec, add ruby …
Browse files Browse the repository at this point in the history
…versions to travis
  • Loading branch information
nakedsushi committed May 7, 2020
1 parent edb4cd5 commit ee05a85
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 42 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
language: ruby
cache: bundler
rvm:
- 2.7.1
- 2.6
- 2.5
- 2.4
sudo: false
script: bundle exec rspec
services:
- redis-server

before_install:
- gem update --system
# Update bundler to the latest
- gem install bundler
11 changes: 1 addition & 10 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
# A sample Gemfile
source "https://rubygems.org"

gem 'redis'
group :developement do
gem 'rubocop'
gem 'byebug'
end
group :test do
gem 'rspec'
end
gemspec
68 changes: 38 additions & 30 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,44 +1,52 @@
PATH
remote: .
specs:
ihasa (1.1.1)
redis (> 3)

GEM
remote: https://rubygems.org/
specs:
ast (2.2.0)
byebug (8.2.2)
diff-lcs (1.2.5)
parser (2.3.1.0)
ast (~> 2.2)
powerpack (0.1.1)
rainbow (2.1.0)
redis (4.0.1)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
ast (2.4.0)
byebug (11.1.3)
diff-lcs (1.3)
jaro_winkler (1.5.4)
parallel (1.19.1)
parser (2.7.1.2)
ast (~> 2.4.0)
rainbow (3.0.0)
redis (4.1.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.2)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
rubocop (0.40.0)
parser (>= 2.3.1.0, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
rubocop (0.79.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
unicode-display_width (1.0.5)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
unicode-display_width (1.6.1)

PLATFORMS
ruby

DEPENDENCIES
byebug
redis
rspec
rubocop
ihasa!
rspec (~> 3.9.0)
rubocop (~> 0.79.0)

BUNDLED WITH
1.16.1
2.1.4
7 changes: 5 additions & 2 deletions ihasa.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Gem::Specification.new do |s|

s.summary = 'Redis-backed rate limiter (token bucket) written in Ruby and Lua'

s.add_runtime_dependency('redis', '> 3')
s.add_development_dependency('rspec', '~> 3.3')
s.add_runtime_dependency 'redis', '> 3'

s.add_development_dependency 'byebug'
s.add_development_dependency 'rspec', '~> 3.9.0'
s.add_development_dependency 'rubocop', '~> 0.79.0'
end

0 comments on commit ee05a85

Please sign in to comment.