autoscaler 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7f8b0bdbb93db7c32f3b0c3f4fe3f55902eed07
4
- data.tar.gz: 379df2b6120350848c660040c705c22e11c1d1c3
3
+ metadata.gz: 3d9c40f5b4987f7af492eff1ec34d8e02f44b37e
4
+ data.tar.gz: 56d95752a486f9c581159edbbfe83c0c19758654
5
5
  SHA512:
6
- metadata.gz: 1f7c387a19bf6908ab7264aaff7566ca8b905c6957e7ffde3d55e6b77e27fa982434e872c66127cf980b618785dc1119ed49577f02574d937bd6e03f62e4b841
7
- data.tar.gz: 6353aeb2213fc015299017b73c82b6a53b1f328b90dbe221593390c6ede3e3880c9b1884fefbd0c7aec118f937ea16cda48696ef80f2b2415b9c1ecdce984ad1
6
+ metadata.gz: e2e5887494d03fe84f6292b5aff7106239425bce9f7d174e5e9883b8f53c76b64caf03ebd8a384dad42dd392fcf986e292ce6604249ad8aa58c69ed1e5fa5085
7
+ data.tar.gz: 33402342e76458cc4039947fb69dbc5bad237249daf6512cf8064515cbee1c23549acd9c0fccd77328d063954fa825249c5bae4adf9209763fd1cfaa9bc87045
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0
4
+
5
+ - Update version spec to Sidekiq 5
6
+ - redis gem implments `call` for something else since 3.3.0, which was confusing duck sniffing.
7
+
3
8
  ## 0.12.0
4
9
 
5
10
  - Rewrite ThreadServer use a singleton monitor thread; it was incorrectly creating one per middleware instance, which was per-job
@@ -38,7 +38,8 @@ module Autoscaler
38
38
  end
39
39
 
40
40
  def redis(&block)
41
- if @redis.respond_to?(:call)
41
+ # Redis implements call for something else
42
+ if @redis.respond_to?(:call) && !@redis.kind_of?(Redis)
42
43
  @redis.call(&block)
43
44
  elsif @redis.respond_to?(:with)
44
45
  @redis.with(&block)
@@ -49,7 +49,8 @@ module Autoscaler
49
49
  end
50
50
 
51
51
  def redis(&block)
52
- if @redis.respond_to?(:call)
52
+ # Redis implements call for something else
53
+ if @redis.respond_to?(:call) && !@redis.kind_of?(Redis)
53
54
  @redis.call(&block)
54
55
  elsif @redis.respond_to?(:with)
55
56
  @redis.with(&block)
@@ -1,4 +1,4 @@
1
1
  module Autoscaler
2
2
  # version number
3
- VERSION = "0.12.0"
3
+ VERSION = "0.13.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoscaler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Love
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-06 00:00:00.000000000 Z
12
+ date: 2017-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq
@@ -17,112 +17,112 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '4.0'
20
+ version: '5.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '4.0'
27
+ version: '5.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: heroku-api
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: '0.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: '0.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: platform-api
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '2.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '2.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: '1.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: '1.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: '3.0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '0'
83
+ version: '3.0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rspec-its
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: '1.0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: '1.0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: guard-rspec
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">="
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0'
104
+ version: '4.0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0'
111
+ version: '4.0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: guard-process
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '0'
118
+ version: '1.0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ">="
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '0'
125
+ version: '1.0'
126
126
  description: Currently provides a Sidekiq middleware that does 0/1 scaling of Heroku
127
127
  processes
128
128
  email:
@@ -172,7 +172,8 @@ files:
172
172
  - spec/spec_helper.rb
173
173
  - spec/test_system.rb
174
174
  homepage: https://github.com/JustinLove/autoscaler
175
- licenses: []
175
+ licenses:
176
+ - MIT
176
177
  metadata: {}
177
178
  post_install_message:
178
179
  rdoc_options: []
@@ -190,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
191
  version: '0'
191
192
  requirements: []
192
193
  rubyforge_project: autoscaler
193
- rubygems_version: 2.4.8
194
+ rubygems_version: 2.6.12
194
195
  signing_key:
195
196
  specification_version: 4
196
197
  summary: Start/stop Sidekiq workers on Heroku