ops 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +15 -15
- data/README.md +9 -2
- data/lib/ops/server/views/version.json.rabl +0 -3
- data/lib/ops/server.rb +0 -3
- data/lib/ops/version.rb +1 -1
- data/lib/ops.rb +6 -0
- data/ops.gemspec +7 -7
- data/spec/spec_helper.rb +1 -5
- metadata +36 -46
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTFiNmQ3OGNjMzM2ODdmNGYyYzE4YmQ3MDM3MzMyOGQ0YTVkM2MxYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OGIyYWJiZWZjMDMyNmI0NTQ3MjMzNjUyZjk4NjIyNjc4ZmY1NWIwZg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OWNjN2Q0NWYxZDkxMTZiMGUwZGUyMjkyZDk2YzljMzRkNDgyYzg2MmM0ZGYx
|
10
|
+
ZWRhYTA2YTYyOThiY2NkM2E0ZDAxN2UzNjUyNzA1NzcwOGU5YzM1ZmYzMWU2
|
11
|
+
NGY0NmFmM2NkZTA0YWQ1MDVmMmM5MWE0YWYzMjg4MjNhMDE3MTE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Yzk0NDI3MDM1ZDAzYmJmZGYzMDFlMzE4NzM2MzRlMjQ3OTk1MTEzZjdjMjBi
|
14
|
+
YTE1MDg2NGMwNjEwYzU3NmM1NTBjOGY1NTQwY2M2YzAwNjMzNGYyZDQyNzVh
|
15
|
+
ZTQ3ZjNiYzNmMmM0ZjYzODI0NDA4YmQ0OWYxYzRiNzE0YWE3Yjc=
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ops (0.0.
|
5
|
-
oj (~> 1.4)
|
6
|
-
rabl (~> 0.7)
|
7
|
-
sinatra (~> 1.3)
|
8
|
-
sinatra-respond_to (~> 0.8)
|
9
|
-
slim (~> 1.2)
|
4
|
+
ops (0.0.1)
|
5
|
+
oj (~> 1.4.5)
|
6
|
+
rabl (~> 0.7.6)
|
7
|
+
sinatra (~> 1.3.3)
|
8
|
+
sinatra-respond_to (~> 0.8.0)
|
9
|
+
slim (~> 1.2.0)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: http://rubygems.org/
|
@@ -51,16 +51,16 @@ GEM
|
|
51
51
|
mime-types (~> 1.16)
|
52
52
|
treetop (~> 1.4.8)
|
53
53
|
mime-types (1.19)
|
54
|
-
multi_json (1.
|
55
|
-
oj (1.4.
|
54
|
+
multi_json (1.3.7)
|
55
|
+
oj (1.4.5)
|
56
56
|
polyglot (0.3.3)
|
57
|
-
rabl (0.7.
|
57
|
+
rabl (0.7.7)
|
58
58
|
activesupport (>= 2.3.14)
|
59
59
|
multi_json (~> 1.0)
|
60
60
|
rack (1.4.1)
|
61
61
|
rack-cache (1.2)
|
62
62
|
rack (>= 0.4)
|
63
|
-
rack-protection (1.
|
63
|
+
rack-protection (1.2.0)
|
64
64
|
rack
|
65
65
|
rack-ssl (1.3.2)
|
66
66
|
rack
|
@@ -92,7 +92,7 @@ GEM
|
|
92
92
|
rspec-core (~> 2.12.0)
|
93
93
|
rspec-expectations (~> 2.12.0)
|
94
94
|
rspec-mocks (~> 2.12.0)
|
95
|
-
rspec-core (2.12.
|
95
|
+
rspec-core (2.12.0)
|
96
96
|
rspec-expectations (2.12.0)
|
97
97
|
diff-lcs (~> 1.1.3)
|
98
98
|
rspec-mocks (2.12.0)
|
@@ -106,15 +106,15 @@ GEM
|
|
106
106
|
tilt (~> 1.3, >= 1.3.3)
|
107
107
|
sinatra-respond_to (0.8.0)
|
108
108
|
sinatra (~> 1.3)
|
109
|
-
slim (1.
|
110
|
-
temple (~> 0.
|
109
|
+
slim (1.2.2)
|
110
|
+
temple (~> 0.4.0)
|
111
111
|
tilt (~> 1.3.3)
|
112
|
-
sprockets (2.2.
|
112
|
+
sprockets (2.2.1)
|
113
113
|
hike (~> 1.2)
|
114
114
|
multi_json (~> 1.0)
|
115
115
|
rack (~> 1.0)
|
116
116
|
tilt (~> 1.1, != 1.3.0)
|
117
|
-
temple (0.
|
117
|
+
temple (0.4.1)
|
118
118
|
thor (0.16.0)
|
119
119
|
tilt (1.3.3)
|
120
120
|
treetop (1.4.12)
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Ops
|
2
2
|
===
|
3
3
|
|
4
|
-
[![Code Climate](https://codeclimate.com/
|
4
|
+
[![Code Climate](https://codeclimate.com/github/primedia/ops.png)](https://codeclimate.com/github/primedia/ops)
|
5
5
|
|
6
6
|
This gem provides standardized support for obtaining version and heartbeat information from Sinatra or Rails-based web applications.
|
7
7
|
|
@@ -65,7 +65,14 @@ Installation
|
|
65
65
|
"/ops" => Ops.new
|
66
66
|
```
|
67
67
|
|
68
|
-
|
68
|
+
```ruby
|
69
|
+
# Implementation within rack cascade:
|
70
|
+
run Rack::Cascade.new([
|
71
|
+
NewHomeGuide,
|
72
|
+
ListingSearch::App,
|
73
|
+
Ops.rack_app('/ops')
|
74
|
+
])
|
75
|
+
```
|
69
76
|
|
70
77
|
Adding Custom Heartbeats
|
71
78
|
------------------------
|
data/lib/ops/server.rb
CHANGED
@@ -3,16 +3,13 @@ require 'sinatra/respond_to'
|
|
3
3
|
require 'ops/server/helpers'
|
4
4
|
require 'rabl'
|
5
5
|
require 'slim'
|
6
|
-
require 'oj'
|
7
6
|
|
8
7
|
module Ops
|
9
8
|
class Server < Sinatra::Base
|
10
9
|
Rabl.register!
|
11
|
-
Oj.default_options = { time_format: :ruby }
|
12
10
|
Server.register Sinatra::RespondTo
|
13
11
|
dir = File.dirname(File.expand_path(__FILE__))
|
14
12
|
set :views, "#{dir}/server/views"
|
15
|
-
Slim::Engine.set_default_options shortcut: { '#' => 'id', '.' => 'class' }
|
16
13
|
|
17
14
|
helpers Ops::Helpers
|
18
15
|
|
data/lib/ops/version.rb
CHANGED
data/lib/ops.rb
CHANGED
data/ops.gemspec
CHANGED
@@ -3,8 +3,8 @@ require File.expand_path('../lib/ops/version', __FILE__)
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
|
-
gem.authors = ["Michael Pelz-Sherman", "Colin Rymer", "Primedia Team"]
|
7
|
-
gem.email = ["mpelzsherman@gmail.com", "colin.rymer@gmail.com"]
|
6
|
+
gem.authors = ["Michael Pelz-Sherman", "Colin Rymer", "Luke Fender", "Primedia Team"]
|
7
|
+
gem.email = ["mpelzsherman@gmail.com", "colin.rymer@gmail.com", "lfender6445@gmail.com"]
|
8
8
|
gem.description = 'This gem provides standardized support for obtaining version and heartbeat information from Sinatra or Rails-based web applications.'
|
9
9
|
gem.summary = "Provide ops info endpoints."
|
10
10
|
gem.date = Date.today.to_s
|
@@ -17,9 +17,9 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
gem.version = Ops::VERSION
|
19
19
|
gem.required_ruby_version = '>= 1.9'
|
20
|
-
gem.add_dependency 'oj', '~> 1.4'
|
21
|
-
gem.add_dependency 'rabl', '~> 0.7'
|
22
|
-
gem.add_dependency 'slim', '~>
|
23
|
-
gem.add_dependency 'sinatra'
|
24
|
-
gem.add_dependency 'sinatra-respond_to'
|
20
|
+
gem.add_dependency 'oj', '~> 1.4.5'
|
21
|
+
gem.add_dependency 'rabl', '~> 0.7.6'
|
22
|
+
gem.add_dependency 'slim', '~> 2.0.0'
|
23
|
+
gem.add_dependency 'sinatra'
|
24
|
+
gem.add_dependency 'sinatra-respond_to'
|
25
25
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -8,8 +8,4 @@ require 'ops'
|
|
8
8
|
|
9
9
|
# Requires supporting files with custom matchers and macros, etc,
|
10
10
|
# in ./support/ and its subdirectories.
|
11
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
12
|
-
|
13
|
-
RSpec.configure do |config|
|
14
|
-
|
15
|
-
end
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
metadata
CHANGED
@@ -1,103 +1,94 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.1.0
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Pelz-Sherman
|
9
8
|
- Colin Rymer
|
9
|
+
- Luke Fender
|
10
10
|
- Primedia Team
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
|
17
|
+
name: oj
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
18
19
|
requirements:
|
19
20
|
- - ~>
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
none: false
|
23
|
-
name: oj
|
22
|
+
version: 1.4.5
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
26
|
requirements:
|
28
27
|
- - ~>
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
-
none: false
|
29
|
+
version: 1.4.5
|
32
30
|
- !ruby/object:Gem::Dependency
|
33
|
-
|
31
|
+
name: rabl
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
34
33
|
requirements:
|
35
34
|
- - ~>
|
36
35
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
38
|
-
none: false
|
39
|
-
name: rabl
|
36
|
+
version: 0.7.6
|
40
37
|
type: :runtime
|
41
38
|
prerelease: false
|
42
|
-
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
40
|
requirements:
|
44
41
|
- - ~>
|
45
42
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
none: false
|
43
|
+
version: 0.7.6
|
48
44
|
- !ruby/object:Gem::Dependency
|
49
|
-
|
45
|
+
name: slim
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
50
47
|
requirements:
|
51
48
|
- - ~>
|
52
49
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
54
|
-
none: false
|
55
|
-
name: slim
|
50
|
+
version: 2.0.0
|
56
51
|
type: :runtime
|
57
52
|
prerelease: false
|
58
|
-
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
54
|
requirements:
|
60
55
|
- - ~>
|
61
56
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
63
|
-
none: false
|
57
|
+
version: 2.0.0
|
64
58
|
- !ruby/object:Gem::Dependency
|
65
|
-
|
59
|
+
name: sinatra
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
66
61
|
requirements:
|
67
|
-
- -
|
62
|
+
- - ! '>='
|
68
63
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
70
|
-
none: false
|
71
|
-
name: sinatra
|
64
|
+
version: '0'
|
72
65
|
type: :runtime
|
73
66
|
prerelease: false
|
74
|
-
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
75
68
|
requirements:
|
76
|
-
- -
|
69
|
+
- - ! '>='
|
77
70
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
79
|
-
none: false
|
71
|
+
version: '0'
|
80
72
|
- !ruby/object:Gem::Dependency
|
81
|
-
|
73
|
+
name: sinatra-respond_to
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
82
75
|
requirements:
|
83
|
-
- -
|
76
|
+
- - ! '>='
|
84
77
|
- !ruby/object:Gem::Version
|
85
|
-
version: '0
|
86
|
-
none: false
|
87
|
-
name: sinatra-respond_to
|
78
|
+
version: '0'
|
88
79
|
type: :runtime
|
89
80
|
prerelease: false
|
90
|
-
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
82
|
requirements:
|
92
|
-
- -
|
83
|
+
- - ! '>='
|
93
84
|
- !ruby/object:Gem::Version
|
94
|
-
version: '0
|
95
|
-
none: false
|
85
|
+
version: '0'
|
96
86
|
description: This gem provides standardized support for obtaining version and heartbeat
|
97
87
|
information from Sinatra or Rails-based web applications.
|
98
88
|
email:
|
99
89
|
- mpelzsherman@gmail.com
|
100
90
|
- colin.rymer@gmail.com
|
91
|
+
- lfender6445@gmail.com
|
101
92
|
executables: []
|
102
93
|
extensions: []
|
103
94
|
extra_rdoc_files: []
|
@@ -166,6 +157,7 @@ files:
|
|
166
157
|
homepage: http://github.com/primedia/ops
|
167
158
|
licenses:
|
168
159
|
- MIT
|
160
|
+
metadata: {}
|
169
161
|
post_install_message:
|
170
162
|
rdoc_options: []
|
171
163
|
require_paths:
|
@@ -175,17 +167,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
167
|
- - ! '>='
|
176
168
|
- !ruby/object:Gem::Version
|
177
169
|
version: '1.9'
|
178
|
-
none: false
|
179
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
171
|
requirements:
|
181
172
|
- - ! '>='
|
182
173
|
- !ruby/object:Gem::Version
|
183
174
|
version: '0'
|
184
|
-
none: false
|
185
175
|
requirements: []
|
186
176
|
rubyforge_project:
|
187
|
-
rubygems_version:
|
177
|
+
rubygems_version: 2.0.4
|
188
178
|
signing_key:
|
189
|
-
specification_version:
|
179
|
+
specification_version: 4
|
190
180
|
summary: Provide ops info endpoints.
|
191
181
|
test_files: []
|