slow_down 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d65a0d209c8b07da2fdc910f1d092ba7a302ebb9
4
- data.tar.gz: 2f1e5f20d2e1d508fa53a1d6a9bb274a934f376a
2
+ SHA256:
3
+ metadata.gz: a0c7264bef730a08dfe8c85d3b11190db7887ae2ec49cd15d3779fc7ada04b73
4
+ data.tar.gz: b5a99d310faf2cc9e54d739c2af4a52d126ce346e0e7ec3219f19a9e357ba4a3
5
5
  SHA512:
6
- metadata.gz: b8b5e99ff101926e2f6a6574dbeea239844862717a53873ada6118b4e0c6da0793524e160616eccf0db9131c27530ec234b14bb2b1c0b73b73ef6569755f869b
7
- data.tar.gz: 2505e99a90931a978f47665ddde1348472535e6338d785924c3d6d400d5fac562d77ca7fad35be6e22e1ce6d83c4438534e4bd4853e12bd1c4645df520a87bc0
6
+ metadata.gz: ed30fae233b0c0d48b48d36b60f7fa0e639391a87915712e13ac3a54f4aca7c59abbcdda31698783467be72ddcfd5054b222aa47670bef2d559ecd0a2f304908
7
+ data.tar.gz: 234adb889bd5267b86f02fe913e0962f3cdeb2b8ca121f260f18a3f0401fd5f7151721dfd23c2056000a3bbb76aa81259ca5035943c6d4e24d8d4bf0b21b2bdd
@@ -1 +1 @@
1
- REDIS_URL=
1
+ REDIS_URL=redis://localhost:6379/0
@@ -1,12 +1,14 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
4
- - 2.1.5
5
- - 2.0.0
3
+ - 2.5
4
+ - 2.3
6
5
  - jruby-head
7
- - jruby-9.0.0.0.pre1
8
6
  services:
9
7
  - redis-server
8
+ branches:
9
+ only:
10
+ - master
11
+ - develop
10
12
  env:
11
13
  global:
12
14
  - REDIS_URL="redis://127.0.0.1:6379/0"
@@ -14,6 +16,5 @@ env:
14
16
  matrix:
15
17
  allow_failures:
16
18
  - rvm: jruby-head
17
- - rvm: jruby-9.0.0.0.pre1
18
19
  notifications:
19
20
  email: false
@@ -1,8 +1,3 @@
1
- if %w(development test).include?(ENV["RACK_ENV"])
2
- require "dotenv"
3
- Dotenv.load
4
- end
5
-
6
1
  require "slow_down/version"
7
2
  require "slow_down/group"
8
3
 
@@ -4,7 +4,7 @@ module SlowDown
4
4
  module Strategy
5
5
  class Linear < Base
6
6
  def series
7
- n.times.map { 1 }
7
+ Array.new(n, 1)
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module SlowDown
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "slow_down"
8
8
  spec.version = SlowDown::VERSION
9
9
  spec.authors = ["Florin Lipan"]
10
- spec.email = ["lipanski@gmail.com"]
10
+ spec.email = ["florinlipan@gmail.com"]
11
11
 
12
12
  spec.summary = %q{A centralized Redis-based lock to help you wait on throttled resources}
13
13
  spec.description = %q{A centralized Redis-based lock to help you wait on throttled resources}
14
- spec.homepage = "https://github.com/lipanski/slow_down"
14
+ spec.homepage = "https://github.com/lipanski/slow-down"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slow_down
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florin Lipan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-27 00:00:00.000000000 Z
11
+ date: 2019-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -124,7 +124,7 @@ dependencies:
124
124
  version: '0'
125
125
  description: A centralized Redis-based lock to help you wait on throttled resources
126
126
  email:
127
- - lipanski@gmail.com
127
+ - florinlipan@gmail.com
128
128
  executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
@@ -147,7 +147,7 @@ files:
147
147
  - lib/slow_down/strategy/linear.rb
148
148
  - lib/slow_down/version.rb
149
149
  - slow_down.gemspec
150
- homepage: https://github.com/lipanski/slow_down
150
+ homepage: https://github.com/lipanski/slow-down
151
151
  licenses:
152
152
  - MIT
153
153
  metadata: {}
@@ -167,9 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.4.5
170
+ rubygems_version: 2.7.6
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: A centralized Redis-based lock to help you wait on throttled resources
174
174
  test_files: []
175
- has_rdoc: