nulogy-fitter-happier 1.1.0 → 1.1.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
- SHA1:
3
- metadata.gz: 6f1d6f9f9570964380b06ff6696f92c561d5907d
4
- data.tar.gz: ca5c4d6fe854ad60ee225ed2ccdb357020b79a8c
2
+ SHA256:
3
+ metadata.gz: 8ca2563eb234436cf34b7c02baff5e94d9ee4cec73178607f98e3a8e2a813d1e
4
+ data.tar.gz: 9742918a2b3632d06df26a749961a63a0dcebf2efb07932523b519e88c32d60c
5
5
  SHA512:
6
- metadata.gz: fe1968bbdcb0126a14f7dcac655674045dc6f830f4a21598f464ed1e5396f77a6055a0c49c1f9adc92932bbb25c34b7502c6416998d98378343fe79868e85679
7
- data.tar.gz: 3aeb13ae57376180f60936edf7a9f6262aea65e73ab739524074f81d3bb5272bcf1918d95d59d45f05b147a027ea07280e550b94b3e9d5454391561cf13dde0b
6
+ metadata.gz: c60cadbb42def86d0570bf7a5b9544eefb1cc74ab44b7aa740e6991eed5e5f12fc25bdcf1752fa965e2a7730143543e79dd0b56f457845f673e09506ef3a5ec8
7
+ data.tar.gz: e4d85f6fdfb9106f80a111b347c8d24e037b48d892c2c82819d06e4e584f71b42e6220505a893ce3db76811cca0e2e3aaecaf175e62940d58e6caf3c3c90edad
data/README.md CHANGED
@@ -26,7 +26,7 @@ Add the following to your gemfile
26
26
  Uptime Monitoring
27
27
  =================
28
28
 
29
- See EngineYard's support guide on [uptime monitoring for your rails application](http://www.engineyard.com/support/guides/uptime_monitoring_for_your_rails_application)
29
+ See EngineYard's support guide on [uptime monitoring for your rails application](https://web.archive.org/web/20090222170354/http://www.engineyard.com/support/guides/uptime_monitoring_for_your_rails_application)
30
30
 
31
31
  Monit
32
32
  =====
@@ -80,4 +80,4 @@ You can also do this in a keepalived/LVS setup:
80
80
 
81
81
  # License
82
82
 
83
- [Licensed until MIT](./MIT-LICENSE)
83
+ [Licensed under MIT](./MIT-LICENSE)
@@ -5,27 +5,27 @@ module FitterHappier
5
5
  around_action :process_with_silence
6
6
 
7
7
  def index
8
- render(:plain => "FitterHappier Site Check Passed\n")
8
+ render plain: "FitterHappier Site Check Passed\n"
9
9
  end
10
10
 
11
11
  def site_check
12
12
  time = Time.now.to_formatted_s(:rfc822)
13
- render(:plain => "FitterHappier Site Check Passed @ #{time}\n")
13
+
14
+ render plain: "FitterHappier Site Check Passed @ #{time}\n"
14
15
  end
15
16
 
16
17
  def site_and_database_check
17
18
  version = DatabaseCheck.schema_version
18
19
  time = Time.now.to_formatted_s(:rfc822)
19
- render(:plain => "FitterHappier Site and Database Check Passed @ #{time}\nSchema Version: #{version}\n")
20
+
21
+ render plain: "FitterHappier Site and Database Check Passed @ #{time}\nSchema Version: #{version}\n"
20
22
  end
21
23
 
22
24
  private
23
25
 
24
- def process_with_silence(*args)
26
+ def process_with_silence
25
27
  NewRelicAdapter.ignore_transaction
26
- logger.silence do
27
- yield *args
28
- end
28
+ logger.silence { yield }
29
29
  end
30
30
  end
31
31
  end
@@ -14,3 +14,4 @@ module Dummy
14
14
  end
15
15
  end
16
16
 
17
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
File without changes
@@ -0,0 +1,56 @@
1
+  (0.0ms) begin transaction
2
+  (0.1ms) rollback transaction
3
+  (0.1ms) begin transaction
4
+ Started GET "/fitter_happier" for 127.0.0.1 at 2019-01-12 13:38:25 -0500
5
+ Processing by FitterHappier::HeartbeatController#index as HTML
6
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
7
+ Started GET "/fitter_happier/site_check" for 127.0.0.1 at 2019-01-12 13:38:25 -0500
8
+ Processing by FitterHappier::HeartbeatController#site_check as HTML
9
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
10
+ Started GET "/fitter_happier/site_and_database_check" for 127.0.0.1 at 2019-01-12 13:38:25 -0500
11
+ Processing by FitterHappier::HeartbeatController#site_and_database_check as HTML
12
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
13
+  (0.1ms) rollback transaction
14
+  (0.1ms) begin transaction
15
+ Started GET "/fitter_happier/site_and_database_check" for 127.0.0.1 at 2019-01-12 13:38:25 -0500
16
+ Processing by FitterHappier::HeartbeatController#site_and_database_check as HTML
17
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
18
+  (0.0ms) rollback transaction
19
+  (0.0ms) begin transaction
20
+ Started GET "/fitter_happier/site_check" for 127.0.0.1 at 2019-01-12 13:38:25 -0500
21
+ Processing by FitterHappier::HeartbeatController#site_check as HTML
22
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
23
+  (0.0ms) rollback transaction
24
+  (0.0ms) begin transaction
25
+ Started GET "/fitter_happier" for 127.0.0.1 at 2019-01-12 13:38:25 -0500
26
+ Processing by FitterHappier::HeartbeatController#index as HTML
27
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
28
+  (0.1ms) rollback transaction
29
+  (0.0ms) begin transaction
30
+ Started GET "/fitter_happier/site_check" for 127.0.0.1 at 2019-01-15 22:26:02 -0500
31
+ Processing by FitterHappier::HeartbeatController#site_check as HTML
32
+ Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 0.0ms)
33
+  (0.1ms) rollback transaction
34
+  (0.0ms) begin transaction
35
+ Started GET "/fitter_happier" for 127.0.0.1 at 2019-01-15 22:26:02 -0500
36
+ Processing by FitterHappier::HeartbeatController#index as HTML
37
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
38
+  (0.0ms) rollback transaction
39
+  (0.0ms) begin transaction
40
+ Started GET "/fitter_happier/site_and_database_check" for 127.0.0.1 at 2019-01-15 22:26:02 -0500
41
+ Processing by FitterHappier::HeartbeatController#site_and_database_check as HTML
42
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
43
+  (0.0ms) rollback transaction
44
+  (0.0ms) begin transaction
45
+ Started GET "/fitter_happier" for 127.0.0.1 at 2019-01-15 22:26:02 -0500
46
+ Processing by FitterHappier::HeartbeatController#index as HTML
47
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
48
+ Started GET "/fitter_happier/site_check" for 127.0.0.1 at 2019-01-15 22:26:02 -0500
49
+ Processing by FitterHappier::HeartbeatController#site_check as HTML
50
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
51
+ Started GET "/fitter_happier/site_and_database_check" for 127.0.0.1 at 2019-01-15 22:26:02 -0500
52
+ Processing by FitterHappier::HeartbeatController#site_and_database_check as HTML
53
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
54
+  (0.1ms) rollback transaction
55
+  (0.0ms) begin transaction
56
+  (0.0ms) rollback transaction
@@ -1,8 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  module FitterHappier
4
- RSpec.describe "FitterHappierRequestSpec", type: :request do
5
-
4
+ RSpec.describe "FitterHappier request spec", type: :request do
6
5
  before do
7
6
  allow(DatabaseCheck).to receive(:schema_version)
8
7
  end
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  # NOTE: May not be supported on Rails 3 and require Rails 4+
4
4
  module FitterHappier
5
- RSpec.describe "FitterHappierRoutingSpec", type: :routing do
5
+ RSpec.describe "FitterHappier routing spec", type: :routing do
6
6
  routes { FitterHappier::Engine.routes }
7
7
 
8
8
  it "tests routing" do
metadata CHANGED
@@ -1,61 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nulogy-fitter-happier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nulogy Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: 3.1.0
22
+ version: '5.0'
23
+ - - "<"
24
+ - !ruby/object:Gem::Version
25
+ version: '6.0'
20
26
  type: :runtime
21
27
  prerelease: false
22
28
  version_requirements: !ruby/object:Gem::Requirement
23
29
  requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
24
33
  - - ">="
25
34
  - !ruby/object:Gem::Version
26
- version: 3.1.0
35
+ version: '5.0'
36
+ - - "<"
37
+ - !ruby/object:Gem::Version
38
+ version: '6.0'
27
39
  - !ruby/object:Gem::Dependency
28
40
  name: activerecord
29
41
  requirement: !ruby/object:Gem::Requirement
30
42
  requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '5.0'
31
46
  - - ">="
32
47
  - !ruby/object:Gem::Version
33
- version: 3.1.0
48
+ version: '5.0'
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '6.0'
34
52
  type: :runtime
35
53
  prerelease: false
36
54
  version_requirements: !ruby/object:Gem::Requirement
37
55
  requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '5.0'
38
59
  - - ">="
39
60
  - !ruby/object:Gem::Version
40
- version: 3.1.0
61
+ version: '5.0'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '6.0'
41
65
  - !ruby/object:Gem::Dependency
42
66
  name: railties
43
67
  requirement: !ruby/object:Gem::Requirement
44
68
  requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '5.0'
45
72
  - - ">="
46
73
  - !ruby/object:Gem::Version
47
- version: 3.1.0
74
+ version: '5.0'
48
75
  type: :runtime
49
76
  prerelease: false
50
77
  version_requirements: !ruby/object:Gem::Requirement
51
78
  requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '5.0'
52
82
  - - ">="
53
83
  - !ruby/object:Gem::Version
54
- version: 3.1.0
84
+ version: '5.0'
55
85
  - !ruby/object:Gem::Dependency
56
86
  name: newrelic_rpm
57
87
  requirement: !ruby/object:Gem::Requirement
58
88
  requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '4.4'
59
92
  - - ">="
60
93
  - !ruby/object:Gem::Version
61
94
  version: 4.4.0
@@ -63,6 +96,9 @@ dependencies:
63
96
  prerelease: false
64
97
  version_requirements: !ruby/object:Gem::Requirement
65
98
  requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '4.4'
66
102
  - - ">="
67
103
  - !ruby/object:Gem::Version
68
104
  version: 4.4.0
@@ -70,58 +106,62 @@ dependencies:
70
106
  name: rake
71
107
  requirement: !ruby/object:Gem::Requirement
72
108
  requirements:
73
- - - ">="
109
+ - - "~>"
74
110
  - !ruby/object:Gem::Version
75
- version: 0.9.2
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
111
+ version: '12.3'
80
112
  - - ">="
81
113
  - !ruby/object:Gem::Version
82
- version: 0.9.2
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 2.6.0
114
+ version: '12.3'
90
115
  type: :development
91
116
  prerelease: false
92
117
  version_requirements: !ruby/object:Gem::Requirement
93
118
  requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '12.3'
94
122
  - - ">="
95
123
  - !ruby/object:Gem::Version
96
- version: 2.6.0
124
+ version: '12.3'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rspec-rails
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.8'
101
132
  - - ">="
102
133
  - !ruby/object:Gem::Version
103
- version: 2.6.1
134
+ version: '3.8'
104
135
  type: :development
105
136
  prerelease: false
106
137
  version_requirements: !ruby/object:Gem::Requirement
107
138
  requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '3.8'
108
142
  - - ">="
109
143
  - !ruby/object:Gem::Version
110
- version: 2.6.1
144
+ version: '3.8'
111
145
  - !ruby/object:Gem::Dependency
112
146
  name: sqlite3
113
147
  requirement: !ruby/object:Gem::Requirement
114
148
  requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '1.3'
115
152
  - - ">="
116
153
  - !ruby/object:Gem::Version
117
- version: '0'
154
+ version: '1.3'
118
155
  type: :development
119
156
  prerelease: false
120
157
  version_requirements: !ruby/object:Gem::Requirement
121
158
  requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '1.3'
122
162
  - - ">="
123
163
  - !ruby/object:Gem::Version
124
- version: '0'
164
+ version: '1.3'
125
165
  description: send bug reports to http://github.com/nulogy/fitter-happier/
126
166
  email:
127
167
  - engineering@nulogy.com
@@ -150,11 +190,14 @@ files:
150
190
  - spec/dummy/config/environments/test.rb
151
191
  - spec/dummy/config/routes.rb
152
192
  - spec/dummy/config/secrets.yml
193
+ - spec/dummy/db/test.sqlite3
194
+ - spec/dummy/log/test.log
153
195
  - spec/fitter_happier_request_spec.rb
154
196
  - spec/fitter_happier_routing_spec.rb
155
197
  - spec/spec_helper.rb
156
198
  homepage: https://github.com/nulogy/fitter-happier
157
- licenses: []
199
+ licenses:
200
+ - MIT
158
201
  metadata: {}
159
202
  post_install_message:
160
203
  rdoc_options: []
@@ -172,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
215
  version: '0'
173
216
  requirements: []
174
217
  rubyforge_project:
175
- rubygems_version: 2.6.14
218
+ rubygems_version: 2.7.7
176
219
  signing_key:
177
220
  specification_version: 4
178
221
  summary: FitterHappier is a plug-in that provides actions for monitoring site and/or
@@ -191,5 +234,7 @@ test_files:
191
234
  - spec/dummy/config/boot.rb
192
235
  - spec/dummy/config.ru
193
236
  - spec/dummy/Rakefile
237
+ - spec/dummy/db/test.sqlite3
238
+ - spec/dummy/log/test.log
194
239
  - spec/fitter_happier_routing_spec.rb
195
240
  - spec/fitter_happier_request_spec.rb