roo_on_rails 1.3.0 → 1.3.1

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: 8f0cf22be3d0412ce55d496e5bbb8bb9f79db969
4
- data.tar.gz: a84b3635f83120868e711a40bb891a977d27afaa
3
+ metadata.gz: a1d4400e60ae4f708cadcb1ce5cb17190a646b31
4
+ data.tar.gz: caf7aa09a3d41c9fa0472a7677b7841b1dc00723
5
5
  SHA512:
6
- metadata.gz: 34ffa0d2d2da72f352cf30a988e390c5aca2013bd492f006d64b6ca8470612822b046084f3d6094af197abbec52b33ca159aa075c5660599588e12ec685890bb
7
- data.tar.gz: fc11d895cd22c56458d2a03c95639a79c55ae20a02168db587efd6ecbfd90e8136e08a0507b32cc025406f5f5d10bb0c030e41c8bf0390059562b7a1aacd9c60
6
+ metadata.gz: 462640e0444ef91fe4e4c32b4fba32242bccd5ea3314c27fe2fcba076158c66928a729af87fb9d0f7a6069a3109933a4515e098ab7987f02578c8a3a32a9d7bc
7
+ data.tar.gz: 5caa0d4cbff6756a322bb2063a852c332edd4a5203911f394efe27d712d3a36be7de7e04c8580cce78f5082724a90ef79e29635c07ca30b96f67cc9ad6ba6fd3
data/.travis.yml CHANGED
@@ -9,6 +9,7 @@ gemfile:
9
9
  - gemfiles/rails_3.gemfile
10
10
  - gemfiles/rails_4.gemfile
11
11
  - gemfiles/rails_5.gemfile
12
+ - gemfiles/rails_5_1.gemfile
12
13
  install:
13
14
  - bundle install --jobs=3 --retry=3 --path=vendor/bundle
14
15
  cache:
data/Appraisals CHANGED
@@ -15,3 +15,9 @@ appraise 'rails-5' do
15
15
  gem 'sqlite3'
16
16
  gem 'pg'
17
17
  end
18
+
19
+ appraise 'rails-5-1' do
20
+ gem 'rails', '~> 5.1'
21
+ gem 'sqlite3'
22
+ gem 'pg'
23
+ end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # v1.3.1 (2017-05-05)
2
+
3
+ Features:
4
+
5
+ - Added Rails 5.1 support (#25)
6
+
7
+ Fixes:
8
+
9
+ - Documentation (#23, #24)
10
+
1
11
  # v1.3.0 (2017-04-28)
2
12
 
3
13
  Features:
data/README.md CHANGED
@@ -60,6 +60,8 @@ We enforce configuration of New Relic.
60
60
  through [environment
61
61
  variables](https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration)
62
62
  is permitted.
63
+ 3. The `NEW_RELIC_APP_NAME` environment variable must be defined
64
+ such that the app will be properly registered in New Relic.
63
65
 
64
66
  No further configuration is required for production apps as the gem configures our standard settings.
65
67
 
@@ -73,6 +75,10 @@ More documentation is available [directly from heroku](https://devcenter.heroku.
73
75
  "description": "The New Relic licence key",
74
76
  "required": true
75
77
  },
78
+ "NEW_RELIC_APP_NAME": {
79
+ "description": "The application name to be registered in New Relic",
80
+ "required": true
81
+ },
76
82
  "SECRET_KEY_BASE": {
77
83
  "description": "A secret basis for the key which verifies the integrity of signed cookies.",
78
84
  "generator": "secret"
@@ -108,7 +114,7 @@ When `SIDEKIQ_ENABLED` is set we'll:
108
114
 
109
115
  - check for the existence of a worker line in your Procfile
110
116
  - add SLA style queues to your worker list
111
- - check for a HIREFIRE_TOKEN and if it's set enable SLA based autoscaling
117
+ - check for a `HIREFIRE_TOKEN` and if it's set enable SLA based autoscaling
112
118
 
113
119
  The following ENV are available:
114
120
 
@@ -116,6 +122,20 @@ The following ENV are available:
116
122
  - `SIDEKIQ_THREADS` (default: 25) - Sets sidekiq concurrency value
117
123
  - `SIDEKIQ_DATABASE_REAPING_FREQUENCY` (default: 10) - For sidekiq processes the amount of time in seconds rails will wait before attempting to find and recover connections from dead threads
118
124
 
125
+ ### HireFire Workers
126
+
127
+ When `HIREFIRE_TOKEN` is set an endpoint will be mounted at /hirefire that reports the required worker count as a function of queue latency. By default we add queue names in the style 'within1day', so if we notice an average latency in that queue of more than an set threshold we'll request one more worker. If we notice less than a threshold we'll request one less worker. These settings can be customised via the following ENV variables
128
+
129
+ - `WORKER_INCREASE_THRESHOLD` (default 0.5)
130
+ - `WORKER_DECREASE_THRESHOLD` (default 0.1)
131
+
132
+ When setting the manager up in the HireFire web ui, the following settings must be used:
133
+
134
+ - name: 'worker'
135
+ - type: 'Worker.HireFire.JobQueue'
136
+ - ratio: 1
137
+ - decrementable: 'true'
138
+
119
139
  ### Logging
120
140
 
121
141
  For clearer and machine-parseable log output, there in an extension to be able to add context to your logs which is output as [logfmt](https://brandur.org/logfmt) key/value pairs after the log message.
@@ -9,4 +9,4 @@ gem "rails", "~> 3.2"
9
9
  gem "sqlite3"
10
10
  gem "sidekiq", "< 5"
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- roo_on_rails (1.3.0)
4
+ roo_on_rails (1.3.1)
5
5
  dotenv-rails (~> 2.1)
6
6
  hashie (~> 3.4)
7
7
  hirefire-resource
@@ -10,7 +10,7 @@ PATH
10
10
  platform-api (~> 0.8)
11
11
  rack-ssl-enforcer
12
12
  rack-timeout
13
- rails (>= 3.2.22, < 5.1)
13
+ rails (>= 3.2.22, < 5.2)
14
14
  sidekiq
15
15
 
16
16
  GEM
@@ -61,10 +61,10 @@ GEM
61
61
  connection_pool (2.2.1)
62
62
  diff-lcs (1.3)
63
63
  docile (1.1.5)
64
- dotenv (2.2.0)
65
- dotenv-rails (2.2.0)
66
- dotenv (= 2.2.0)
67
- railties (>= 3.2, < 5.1)
64
+ dotenv (2.2.1)
65
+ dotenv-rails (2.2.1)
66
+ dotenv (= 2.2.1)
67
+ railties (>= 3.2, < 5.2)
68
68
  erubis (2.7.0)
69
69
  excon (0.55.0)
70
70
  faraday (0.12.1)
@@ -9,4 +9,4 @@ gem "rails", "~> 4.2"
9
9
  gem "sqlite3"
10
10
  gem "pg"
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- roo_on_rails (1.3.0)
4
+ roo_on_rails (1.3.1)
5
5
  dotenv-rails (~> 2.1)
6
6
  hashie (~> 3.4)
7
7
  hirefire-resource
@@ -10,7 +10,7 @@ PATH
10
10
  platform-api (~> 0.8)
11
11
  rack-ssl-enforcer
12
12
  rack-timeout
13
- rails (>= 3.2.22, < 5.1)
13
+ rails (>= 3.2.22, < 5.2)
14
14
  sidekiq
15
15
 
16
16
  GEM
@@ -68,10 +68,10 @@ GEM
68
68
  connection_pool (2.2.1)
69
69
  diff-lcs (1.3)
70
70
  docile (1.1.5)
71
- dotenv (2.2.0)
72
- dotenv-rails (2.2.0)
73
- dotenv (= 2.2.0)
74
- railties (>= 3.2, < 5.1)
71
+ dotenv (2.2.1)
72
+ dotenv-rails (2.2.1)
73
+ dotenv (= 2.2.1)
74
+ railties (>= 3.2, < 5.2)
75
75
  erubis (2.7.0)
76
76
  excon (0.55.0)
77
77
  faraday (0.12.1)
@@ -9,4 +9,4 @@ gem "rails", "~> 5.0"
9
9
  gem "sqlite3"
10
10
  gem "pg"
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- roo_on_rails (1.3.0)
4
+ roo_on_rails (1.3.1)
5
5
  dotenv-rails (~> 2.1)
6
6
  hashie (~> 3.4)
7
7
  hirefire-resource
@@ -10,7 +10,7 @@ PATH
10
10
  platform-api (~> 0.8)
11
11
  rack-ssl-enforcer
12
12
  rack-timeout
13
- rails (>= 3.2.22, < 5.1)
13
+ rails (>= 3.2.22, < 5.2)
14
14
  sidekiq
15
15
 
16
16
  GEM
@@ -71,10 +71,10 @@ GEM
71
71
  connection_pool (2.2.1)
72
72
  diff-lcs (1.3)
73
73
  docile (1.1.5)
74
- dotenv (2.2.0)
75
- dotenv-rails (2.2.0)
76
- dotenv (= 2.2.0)
77
- railties (>= 3.2, < 5.1)
74
+ dotenv (2.2.1)
75
+ dotenv-rails (2.2.1)
76
+ dotenv (= 2.2.1)
77
+ railties (>= 3.2, < 5.2)
78
78
  erubis (2.7.0)
79
79
  excon (0.55.0)
80
80
  faraday (0.12.1)
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "guard"
6
+ gem "guard-rspec"
7
+ gem "appraisal"
8
+ gem "rails", "~> 5.1"
9
+ gem "sqlite3"
10
+ gem "pg"
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,250 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ roo_on_rails (1.3.1)
5
+ dotenv-rails (~> 2.1)
6
+ hashie (~> 3.4)
7
+ hirefire-resource
8
+ newrelic_rpm (~> 3.17)
9
+ octokit
10
+ platform-api (~> 0.8)
11
+ rack-ssl-enforcer
12
+ rack-timeout
13
+ rails (>= 3.2.22, < 5.2)
14
+ sidekiq
15
+
16
+ GEM
17
+ remote: https://rubygems.org/
18
+ specs:
19
+ actioncable (5.1.0)
20
+ actionpack (= 5.1.0)
21
+ nio4r (~> 2.0)
22
+ websocket-driver (~> 0.6.1)
23
+ actionmailer (5.1.0)
24
+ actionpack (= 5.1.0)
25
+ actionview (= 5.1.0)
26
+ activejob (= 5.1.0)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (5.1.0)
30
+ actionview (= 5.1.0)
31
+ activesupport (= 5.1.0)
32
+ rack (~> 2.0)
33
+ rack-test (~> 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
+ actionview (5.1.0)
37
+ activesupport (= 5.1.0)
38
+ builder (~> 3.1)
39
+ erubi (~> 1.4)
40
+ rails-dom-testing (~> 2.0)
41
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
42
+ activejob (5.1.0)
43
+ activesupport (= 5.1.0)
44
+ globalid (>= 0.3.6)
45
+ activemodel (5.1.0)
46
+ activesupport (= 5.1.0)
47
+ activerecord (5.1.0)
48
+ activemodel (= 5.1.0)
49
+ activesupport (= 5.1.0)
50
+ arel (~> 8.0)
51
+ activesupport (5.1.0)
52
+ concurrent-ruby (~> 1.0, >= 1.0.2)
53
+ i18n (~> 0.7)
54
+ minitest (~> 5.1)
55
+ tzinfo (~> 1.1)
56
+ addressable (2.5.1)
57
+ public_suffix (~> 2.0, >= 2.0.2)
58
+ appraisal (2.2.0)
59
+ bundler
60
+ rake
61
+ thor (>= 0.14.0)
62
+ arel (8.0.0)
63
+ builder (3.2.3)
64
+ byebug (9.0.6)
65
+ codecov (0.1.10)
66
+ json
67
+ simplecov
68
+ url
69
+ coderay (1.1.1)
70
+ concurrent-ruby (1.0.5)
71
+ connection_pool (2.2.1)
72
+ diff-lcs (1.3)
73
+ docile (1.1.5)
74
+ dotenv (2.2.1)
75
+ dotenv-rails (2.2.1)
76
+ dotenv (= 2.2.1)
77
+ railties (>= 3.2, < 5.2)
78
+ erubi (1.6.0)
79
+ erubis (2.7.0)
80
+ excon (0.55.0)
81
+ faraday (0.12.1)
82
+ multipart-post (>= 1.2, < 3)
83
+ ffi (1.9.18)
84
+ formatador (0.2.5)
85
+ globalid (0.4.0)
86
+ activesupport (>= 4.2.0)
87
+ guard (2.14.1)
88
+ formatador (>= 0.2.4)
89
+ listen (>= 2.7, < 4.0)
90
+ lumberjack (~> 1.0)
91
+ nenv (~> 0.1)
92
+ notiffany (~> 0.0)
93
+ pry (>= 0.9.12)
94
+ shellany (~> 0.0)
95
+ thor (>= 0.18.1)
96
+ guard-compat (1.2.1)
97
+ guard-rspec (4.7.3)
98
+ guard (~> 2.1)
99
+ guard-compat (~> 1.1)
100
+ rspec (>= 2.99.0, < 4.0)
101
+ hashie (3.5.5)
102
+ heroics (0.0.21)
103
+ erubis (~> 2.0)
104
+ excon
105
+ multi_json (>= 1.9.2)
106
+ hirefire-resource (0.4.0)
107
+ i18n (0.8.1)
108
+ json (2.1.0)
109
+ listen (3.1.5)
110
+ rb-fsevent (~> 0.9, >= 0.9.4)
111
+ rb-inotify (~> 0.9, >= 0.9.7)
112
+ ruby_dep (~> 1.2)
113
+ loofah (2.0.3)
114
+ nokogiri (>= 1.5.9)
115
+ lumberjack (1.0.11)
116
+ mail (2.6.5)
117
+ mime-types (>= 1.16, < 4)
118
+ memfs (1.0.0)
119
+ method_source (0.8.2)
120
+ mime-types (3.1)
121
+ mime-types-data (~> 3.2015)
122
+ mime-types-data (3.2016.0521)
123
+ mini_portile2 (2.1.0)
124
+ minitest (5.10.1)
125
+ multi_json (1.12.1)
126
+ multipart-post (2.0.0)
127
+ nenv (0.3.0)
128
+ newrelic_rpm (3.18.1.330)
129
+ nio4r (2.0.0)
130
+ nokogiri (1.7.1)
131
+ mini_portile2 (~> 2.1.0)
132
+ notiffany (0.1.1)
133
+ nenv (~> 0.1)
134
+ shellany (~> 0.0)
135
+ octokit (4.7.0)
136
+ sawyer (~> 0.8.0, >= 0.5.3)
137
+ pg (0.20.0)
138
+ platform-api (0.8.0)
139
+ heroics (~> 0.0.17)
140
+ pry (0.10.4)
141
+ coderay (~> 1.1.0)
142
+ method_source (~> 0.8.1)
143
+ slop (~> 3.4)
144
+ pry-byebug (3.4.2)
145
+ byebug (~> 9.0)
146
+ pry (~> 0.10)
147
+ public_suffix (2.0.5)
148
+ rack (2.0.1)
149
+ rack-protection (1.5.3)
150
+ rack
151
+ rack-ssl-enforcer (0.2.9)
152
+ rack-test (0.6.3)
153
+ rack (>= 1.0)
154
+ rack-timeout (0.4.2)
155
+ rails (5.1.0)
156
+ actioncable (= 5.1.0)
157
+ actionmailer (= 5.1.0)
158
+ actionpack (= 5.1.0)
159
+ actionview (= 5.1.0)
160
+ activejob (= 5.1.0)
161
+ activemodel (= 5.1.0)
162
+ activerecord (= 5.1.0)
163
+ activesupport (= 5.1.0)
164
+ bundler (>= 1.3.0, < 2.0)
165
+ railties (= 5.1.0)
166
+ sprockets-rails (>= 2.0.0)
167
+ rails-dom-testing (2.0.2)
168
+ activesupport (>= 4.2.0, < 6.0)
169
+ nokogiri (~> 1.6)
170
+ rails-html-sanitizer (1.0.3)
171
+ loofah (~> 2.0)
172
+ railties (5.1.0)
173
+ actionpack (= 5.1.0)
174
+ activesupport (= 5.1.0)
175
+ method_source
176
+ rake (>= 0.8.7)
177
+ thor (>= 0.18.1, < 2.0)
178
+ rake (10.5.0)
179
+ rb-fsevent (0.9.8)
180
+ rb-inotify (0.9.8)
181
+ ffi (>= 0.5.0)
182
+ redis (3.3.3)
183
+ rspec (3.5.0)
184
+ rspec-core (~> 3.5.0)
185
+ rspec-expectations (~> 3.5.0)
186
+ rspec-mocks (~> 3.5.0)
187
+ rspec-core (3.5.4)
188
+ rspec-support (~> 3.5.0)
189
+ rspec-expectations (3.5.0)
190
+ diff-lcs (>= 1.2.0, < 2.0)
191
+ rspec-support (~> 3.5.0)
192
+ rspec-mocks (3.5.0)
193
+ diff-lcs (>= 1.2.0, < 2.0)
194
+ rspec-support (~> 3.5.0)
195
+ rspec-support (3.5.0)
196
+ ruby_dep (1.5.0)
197
+ sawyer (0.8.1)
198
+ addressable (>= 2.3.5, < 2.6)
199
+ faraday (~> 0.8, < 1.0)
200
+ shellany (0.0.1)
201
+ sidekiq (5.0.0)
202
+ concurrent-ruby (~> 1.0)
203
+ connection_pool (~> 2.2, >= 2.2.0)
204
+ rack-protection (>= 1.5.0)
205
+ redis (~> 3.3, >= 3.3.3)
206
+ simplecov (0.14.1)
207
+ docile (~> 1.1.0)
208
+ json (>= 1.8, < 3)
209
+ simplecov-html (~> 0.10.0)
210
+ simplecov-html (0.10.0)
211
+ slop (3.6.0)
212
+ sprockets (3.7.1)
213
+ concurrent-ruby (~> 1.0)
214
+ rack (> 1, < 3)
215
+ sprockets-rails (3.2.0)
216
+ actionpack (>= 4.0)
217
+ activesupport (>= 4.0)
218
+ sprockets (>= 3.0.0)
219
+ sqlite3 (1.3.13)
220
+ thor (0.19.4)
221
+ thread_safe (0.3.6)
222
+ tzinfo (1.2.3)
223
+ thread_safe (~> 0.1)
224
+ url (0.3.2)
225
+ websocket-driver (0.6.5)
226
+ websocket-extensions (>= 0.1.0)
227
+ websocket-extensions (0.1.2)
228
+
229
+ PLATFORMS
230
+ ruby
231
+
232
+ DEPENDENCIES
233
+ appraisal
234
+ bundler (~> 1.13)
235
+ codecov
236
+ guard
237
+ guard-rspec
238
+ memfs
239
+ pg
240
+ pry-byebug
241
+ rails (~> 5.1)
242
+ rake (~> 10.0)
243
+ roo_on_rails!
244
+ rspec (~> 3.0)
245
+ simplecov
246
+ sqlite3
247
+ thor (~> 0.19)
248
+
249
+ BUNDLED WITH
250
+ 1.14.6
@@ -1,3 +1,3 @@
1
1
  module RooOnRails
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
data/roo_on_rails.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_runtime_dependency 'dotenv-rails', '~> 2.1'
25
25
  spec.add_runtime_dependency 'newrelic_rpm', '~> 3.17'
26
- spec.add_runtime_dependency 'rails', '>= 3.2.22', '< 5.1'
26
+ spec.add_runtime_dependency 'rails', '>= 3.2.22', '< 5.2'
27
27
  spec.add_runtime_dependency 'platform-api', '~> 0.8'
28
28
  spec.add_runtime_dependency 'hashie', '~> 3.4'
29
29
  spec.add_runtime_dependency 'rack-timeout'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roo_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-28 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv-rails
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: 3.2.22
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '5.1'
50
+ version: '5.2'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: 3.2.22
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '5.1'
60
+ version: '5.2'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: platform-api
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -299,6 +299,8 @@ files:
299
299
  - gemfiles/rails_4.gemfile.lock
300
300
  - gemfiles/rails_5.gemfile
301
301
  - gemfiles/rails_5.gemfile.lock
302
+ - gemfiles/rails_5_1.gemfile
303
+ - gemfiles/rails_5_1.gemfile.lock
302
304
  - lib/roo_on_rails.rb
303
305
  - lib/roo_on_rails/checks.rb
304
306
  - lib/roo_on_rails/checks/base.rb