ops 1.0.0.pre → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -7
  3. data/lib/ops.rb +2 -3
  4. data/lib/ops/config.rb +8 -8
  5. data/lib/ops/heartbeat.rb +4 -7
  6. data/lib/ops/revision.rb +89 -31
  7. data/lib/ops/server.rb +22 -12
  8. data/lib/ops/server/helpers.rb +6 -14
  9. data/lib/ops/server/views/{env.html.erb → env.erb} +0 -0
  10. data/lib/ops/server/views/{layout.html.erb → layout.erb} +0 -0
  11. data/lib/ops/server/views/version.erb +76 -0
  12. data/lib/ops/version.rb +1 -1
  13. metadata +25 -73
  14. data/.gitignore +0 -18
  15. data/.rspec +0 -2
  16. data/Gemfile +0 -16
  17. data/Gemfile.lock +0 -129
  18. data/LICENSE +0 -7
  19. data/Rakefile +0 -28
  20. data/examples/rails3/.gitignore +0 -15
  21. data/examples/rails3/.rspec +0 -3
  22. data/examples/rails3/Gemfile +0 -5
  23. data/examples/rails3/Gemfile.lock +0 -130
  24. data/examples/rails3/Rakefile +0 -13
  25. data/examples/rails3/config.ru +0 -4
  26. data/examples/rails3/config/application.rb +0 -37
  27. data/examples/rails3/config/boot.rb +0 -6
  28. data/examples/rails3/config/environment.rb +0 -5
  29. data/examples/rails3/config/initializers/secret_token.rb +0 -1
  30. data/examples/rails3/config/locales/en.yml +0 -5
  31. data/examples/rails3/config/routes.rb +0 -3
  32. data/examples/rails3/public/404.html +0 -26
  33. data/examples/rails3/public/422.html +0 -26
  34. data/examples/rails3/public/500.html +0 -25
  35. data/examples/rails3/public/favicon.ico +0 -0
  36. data/examples/rails3/public/index.html +0 -14
  37. data/examples/rails3/public/robots.txt +0 -5
  38. data/examples/rails3/script/rails +0 -6
  39. data/examples/rails3/spec/functional/ops_routes_spec.rb +0 -69
  40. data/examples/rails3/spec/spec_helper.rb +0 -5
  41. data/examples/sample_deploys/1234/REVISION +0 -1
  42. data/examples/sample_deploys/1234/VERSION +0 -1
  43. data/examples/sample_deploys/2341/REVISION +0 -1
  44. data/examples/sample_deploys/2341/VERSION +0 -1
  45. data/examples/sample_deploys/3412/REVISION +0 -1
  46. data/examples/sample_deploys/3412/VERSION +0 -1
  47. data/examples/sample_deploys/4123/REVISION +0 -1
  48. data/examples/sample_deploys/4123/VERSION +0 -1
  49. data/examples/sinatra/.rspec +0 -3
  50. data/examples/sinatra/Rakefile +0 -15
  51. data/examples/sinatra/app.rb +0 -14
  52. data/examples/sinatra/config.ru +0 -20
  53. data/examples/sinatra/spec/functional/ops_routes_spec.rb +0 -69
  54. data/examples/sinatra/spec/spec_helper.rb +0 -3
  55. data/lib/ops/server/views/version.html.erb +0 -53
  56. data/ops.gemspec +0 -22
  57. data/spec/functional/ops_routes_spec.rb +0 -69
  58. data/spec/ops/config_spec.rb +0 -0
  59. data/spec/ops/heartbeat_spec.rb +0 -49
  60. data/spec/ops/revision_spec.rb +0 -42
  61. data/spec/ops/server_spec.rb +0 -66
  62. data/spec/ops/version_spec.rb +0 -7
  63. data/spec/ops_spec.rb +0 -9
  64. data/spec/spec_helper.rb +0 -11
data/lib/ops/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ops
2
- VERSION = '1.0.0.pre'
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,117 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Pelz-Sherman
8
8
  - Colin Rymer
9
9
  - Luke Fender
10
- - RentPath Team
10
+ - Pasha Lifshiz
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-29 00:00:00.000000000 Z
14
+ date: 2017-08-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: sinatra
17
+ name: json
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.2.0
22
+ version: '1.8'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2.0
29
+ version: '1.8'
30
30
  - !ruby/object:Gem::Dependency
31
- name: sinatra-respond_to
31
+ name: sinatra
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.7.0
36
+ version: 1.2.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.7.0
44
- description: This gem provides standardized support for obtaining version and heartbeat
45
- information from Sinatra or Rails-based web applications.
43
+ version: 1.2.0
44
+ description: |2
45
+ This gem provides standardized support for obtaining version and heartbeat information.
46
+ Works with Sinatra or Rails-based web applications.
46
47
  email:
47
48
  - mpelzsherman@gmail.com
48
49
  - colin.rymer@gmail.com
49
50
  - lfender6445@gmail.com
51
+ - plifshiz@gmail.com
50
52
  executables: []
51
53
  extensions: []
52
54
  extra_rdoc_files: []
53
55
  files:
54
- - .gitignore
55
- - .rspec
56
- - Gemfile
57
- - Gemfile.lock
58
- - LICENSE
59
56
  - README.md
60
- - Rakefile
61
- - examples/rails3/.gitignore
62
- - examples/rails3/.rspec
63
- - examples/rails3/Gemfile
64
- - examples/rails3/Gemfile.lock
65
- - examples/rails3/Rakefile
66
- - examples/rails3/config.ru
67
- - examples/rails3/config/application.rb
68
- - examples/rails3/config/boot.rb
69
- - examples/rails3/config/environment.rb
70
- - examples/rails3/config/initializers/secret_token.rb
71
- - examples/rails3/config/locales/en.yml
72
- - examples/rails3/config/routes.rb
73
- - examples/rails3/public/404.html
74
- - examples/rails3/public/422.html
75
- - examples/rails3/public/500.html
76
- - examples/rails3/public/favicon.ico
77
- - examples/rails3/public/index.html
78
- - examples/rails3/public/robots.txt
79
- - examples/rails3/script/rails
80
- - examples/rails3/spec/functional/ops_routes_spec.rb
81
- - examples/rails3/spec/spec_helper.rb
82
- - examples/sample_deploys/1234/REVISION
83
- - examples/sample_deploys/1234/VERSION
84
- - examples/sample_deploys/2341/REVISION
85
- - examples/sample_deploys/2341/VERSION
86
- - examples/sample_deploys/3412/REVISION
87
- - examples/sample_deploys/3412/VERSION
88
- - examples/sample_deploys/4123/REVISION
89
- - examples/sample_deploys/4123/VERSION
90
- - examples/sinatra/.rspec
91
- - examples/sinatra/Rakefile
92
- - examples/sinatra/app.rb
93
- - examples/sinatra/config.ru
94
- - examples/sinatra/spec/functional/ops_routes_spec.rb
95
- - examples/sinatra/spec/spec_helper.rb
96
57
  - lib/ops.rb
97
58
  - lib/ops/config.rb
98
59
  - lib/ops/heartbeat.rb
99
60
  - lib/ops/revision.rb
100
61
  - lib/ops/server.rb
101
62
  - lib/ops/server/helpers.rb
102
- - lib/ops/server/views/env.html.erb
103
- - lib/ops/server/views/layout.html.erb
104
- - lib/ops/server/views/version.html.erb
63
+ - lib/ops/server/views/env.erb
64
+ - lib/ops/server/views/layout.erb
65
+ - lib/ops/server/views/version.erb
105
66
  - lib/ops/version.rb
106
- - ops.gemspec
107
- - spec/functional/ops_routes_spec.rb
108
- - spec/ops/config_spec.rb
109
- - spec/ops/heartbeat_spec.rb
110
- - spec/ops/revision_spec.rb
111
- - spec/ops/server_spec.rb
112
- - spec/ops/version_spec.rb
113
- - spec/ops_spec.rb
114
- - spec/spec_helper.rb
115
67
  homepage: http://rentpath.github.io/ops/
116
68
  licenses:
117
69
  - MIT
@@ -122,17 +74,17 @@ require_paths:
122
74
  - lib
123
75
  required_ruby_version: !ruby/object:Gem::Requirement
124
76
  requirements:
125
- - - '>='
77
+ - - ">="
126
78
  - !ruby/object:Gem::Version
127
- version: '1.9'
79
+ version: '0'
128
80
  required_rubygems_version: !ruby/object:Gem::Requirement
129
81
  requirements:
130
- - - '>'
82
+ - - ">="
131
83
  - !ruby/object:Gem::Version
132
- version: 1.3.1
84
+ version: '0'
133
85
  requirements: []
134
86
  rubyforge_project:
135
- rubygems_version: 2.0.14
87
+ rubygems_version: 2.4.5.1
136
88
  signing_key:
137
89
  specification_version: 4
138
90
  summary: Provide ops info endpoints.
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- # rcov generated
2
- coverage
3
- coverage.data
4
-
5
- # rdoc generated
6
- rdoc
7
-
8
- *.sublime-project
9
- *.sublime-workspace
10
-
11
- # bundler
12
- .bundle
13
-
14
- .DS_Store
15
- .tags
16
- tags
17
-
18
- *.gem
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- -fn
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development, :test do
6
- gem 'rake'
7
- gem 'rails'
8
- gem 'rails-api'
9
- gem 'rspec'
10
- gem 'rack-test'
11
- gem 'pry'
12
- end
13
-
14
- group :test do
15
- gem "simplecov", require: false
16
- end
data/Gemfile.lock DELETED
@@ -1,129 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ops (1.0.0.pre)
5
- sinatra (>= 1.2.0)
6
- sinatra-respond_to (>= 0.7.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.0.0)
12
- actionpack (= 4.0.0)
13
- mail (~> 2.5.3)
14
- actionpack (4.0.0)
15
- activesupport (= 4.0.0)
16
- builder (~> 3.1.0)
17
- erubis (~> 2.7.0)
18
- rack (~> 1.5.2)
19
- rack-test (~> 0.6.2)
20
- activemodel (4.0.0)
21
- activesupport (= 4.0.0)
22
- builder (~> 3.1.0)
23
- activerecord (4.0.0)
24
- activemodel (= 4.0.0)
25
- activerecord-deprecated_finders (~> 1.0.2)
26
- activesupport (= 4.0.0)
27
- arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.3)
29
- activesupport (4.0.0)
30
- i18n (~> 0.6, >= 0.6.4)
31
- minitest (~> 4.2)
32
- multi_json (~> 1.3)
33
- thread_safe (~> 0.1)
34
- tzinfo (~> 0.3.37)
35
- arel (4.0.0)
36
- atomic (1.1.10)
37
- builder (3.1.4)
38
- coderay (1.1.0)
39
- diff-lcs (1.2.4)
40
- erubis (2.7.0)
41
- hike (1.2.3)
42
- i18n (0.6.4)
43
- mail (2.5.4)
44
- mime-types (~> 1.16)
45
- treetop (~> 1.4.8)
46
- method_source (0.8.2)
47
- mime-types (1.23)
48
- minitest (4.7.5)
49
- multi_json (1.7.7)
50
- polyglot (0.3.3)
51
- pry (0.9.12.6)
52
- coderay (~> 1.0)
53
- method_source (~> 0.8)
54
- slop (~> 3.4)
55
- rack (1.5.2)
56
- rack-protection (1.5.3)
57
- rack
58
- rack-test (0.6.2)
59
- rack (>= 1.0)
60
- rails (4.0.0)
61
- actionmailer (= 4.0.0)
62
- actionpack (= 4.0.0)
63
- activerecord (= 4.0.0)
64
- activesupport (= 4.0.0)
65
- bundler (>= 1.3.0, < 2.0)
66
- railties (= 4.0.0)
67
- sprockets-rails (~> 2.0.0)
68
- rails-api (0.1.0)
69
- actionpack (>= 3.2.11)
70
- railties (>= 3.2.11)
71
- tzinfo (~> 0.3.31)
72
- railties (4.0.0)
73
- actionpack (= 4.0.0)
74
- activesupport (= 4.0.0)
75
- rake (>= 0.8.7)
76
- thor (>= 0.18.1, < 2.0)
77
- rake (10.1.0)
78
- rspec (2.14.1)
79
- rspec-core (~> 2.14.0)
80
- rspec-expectations (~> 2.14.0)
81
- rspec-mocks (~> 2.14.0)
82
- rspec-core (2.14.4)
83
- rspec-expectations (2.14.0)
84
- diff-lcs (>= 1.1.3, < 2.0)
85
- rspec-mocks (2.14.2)
86
- simplecov (0.7.1)
87
- multi_json (~> 1.0)
88
- simplecov-html (~> 0.7.1)
89
- simplecov-html (0.7.1)
90
- sinatra (1.4.7)
91
- rack (~> 1.5)
92
- rack-protection (~> 1.4)
93
- tilt (>= 1.3, < 3)
94
- sinatra-respond_to (0.9.0)
95
- sinatra (~> 1.3)
96
- slop (3.5.0)
97
- sprockets (2.10.0)
98
- hike (~> 1.2)
99
- multi_json (~> 1.0)
100
- rack (~> 1.0)
101
- tilt (~> 1.1, != 1.3.0)
102
- sprockets-rails (2.0.0)
103
- actionpack (>= 3.0)
104
- activesupport (>= 3.0)
105
- sprockets (~> 2.8)
106
- thor (0.18.1)
107
- thread_safe (0.1.2)
108
- atomic
109
- tilt (1.4.1)
110
- treetop (1.4.14)
111
- polyglot
112
- polyglot (>= 0.3.1)
113
- tzinfo (0.3.37)
114
-
115
- PLATFORMS
116
- ruby
117
-
118
- DEPENDENCIES
119
- ops!
120
- pry
121
- rack-test
122
- rails
123
- rails-api
124
- rake
125
- rspec
126
- simplecov
127
-
128
- BUNDLED WITH
129
- 1.11.2
data/LICENSE DELETED
@@ -1,7 +0,0 @@
1
- Copyright (c) 2012 RentPath, Inc.
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,28 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
- require 'bundler/gem_tasks'
14
- require 'rspec/core/rake_task'
15
-
16
- RSpec::Core::RakeTask.new(:spec) do |t|
17
- t.pattern = "spec/ops/**/*_spec.rb"
18
- end
19
-
20
- desc "Executes the example tests"
21
- task "test:examples" do
22
- %w[rails3 sinatra].each do |ex|
23
- puts "\n*** Running tests for #{ex}... ***\n"
24
- puts `cd #{File.join(File.dirname(__FILE__),'examples',ex)}; bundle check; bundle exec rake test:ops`
25
- end
26
- end
27
-
28
- task :default => :spec
@@ -1,15 +0,0 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile ~/.gitignore_global
6
-
7
- # Ignore bundler config
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
-
13
- # Ignore all logfiles and tempfiles.
14
- /log/*.log
15
- /tmp
@@ -1,3 +0,0 @@
1
- --color
2
- -fn
3
- --tty
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '3.2.8'
4
- gem 'rspec'
5
- gem 'ops', path: '../../../ops'
@@ -1,130 +0,0 @@
1
- PATH
2
- remote: ../../../ops
3
- specs:
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.3.4)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- actionmailer (3.2.8)
15
- actionpack (= 3.2.8)
16
- mail (~> 2.4.4)
17
- actionpack (3.2.8)
18
- activemodel (= 3.2.8)
19
- activesupport (= 3.2.8)
20
- builder (~> 3.0.0)
21
- erubis (~> 2.7.0)
22
- journey (~> 1.0.4)
23
- rack (~> 1.4.0)
24
- rack-cache (~> 1.2)
25
- rack-test (~> 0.6.1)
26
- sprockets (~> 2.1.3)
27
- activemodel (3.2.8)
28
- activesupport (= 3.2.8)
29
- builder (~> 3.0.0)
30
- activerecord (3.2.8)
31
- activemodel (= 3.2.8)
32
- activesupport (= 3.2.8)
33
- arel (~> 3.0.2)
34
- tzinfo (~> 0.3.29)
35
- activeresource (3.2.8)
36
- activemodel (= 3.2.8)
37
- activesupport (= 3.2.8)
38
- activesupport (3.2.8)
39
- i18n (~> 0.6)
40
- multi_json (~> 1.0)
41
- arel (3.0.2)
42
- builder (3.0.4)
43
- diff-lcs (1.1.3)
44
- erubis (2.7.0)
45
- hike (1.2.1)
46
- i18n (0.6.1)
47
- journey (1.0.4)
48
- json (1.7.5)
49
- mail (2.4.4)
50
- i18n (>= 0.4.0)
51
- mime-types (~> 1.16)
52
- treetop (~> 1.4.8)
53
- mime-types (1.19)
54
- multi_json (1.3.7)
55
- oj (1.4.5)
56
- polyglot (0.3.3)
57
- rabl (0.7.6)
58
- activesupport (>= 2.3.14)
59
- multi_json (~> 1.0)
60
- rack (1.4.1)
61
- rack-cache (1.2)
62
- rack (>= 0.4)
63
- rack-protection (1.2.0)
64
- rack
65
- rack-ssl (1.3.2)
66
- rack
67
- rack-test (0.6.2)
68
- rack (>= 1.0)
69
- rails (3.2.8)
70
- actionmailer (= 3.2.8)
71
- actionpack (= 3.2.8)
72
- activerecord (= 3.2.8)
73
- activeresource (= 3.2.8)
74
- activesupport (= 3.2.8)
75
- bundler (~> 1.0)
76
- railties (= 3.2.8)
77
- railties (3.2.8)
78
- actionpack (= 3.2.8)
79
- activesupport (= 3.2.8)
80
- rack-ssl (~> 1.3.2)
81
- rake (>= 0.8.7)
82
- rdoc (~> 3.4)
83
- thor (>= 0.14.6, < 2.0)
84
- rake (10.0.2)
85
- rdoc (3.12)
86
- json (~> 1.4)
87
- rspec (2.12.0)
88
- rspec-core (~> 2.12.0)
89
- rspec-expectations (~> 2.12.0)
90
- rspec-mocks (~> 2.12.0)
91
- rspec-core (2.12.0)
92
- rspec-expectations (2.12.0)
93
- diff-lcs (~> 1.1.3)
94
- rspec-mocks (2.12.0)
95
- rspec-rails (2.12.0)
96
- actionpack (>= 3.0)
97
- activesupport (>= 3.0)
98
- railties (>= 3.0)
99
- rspec-core (~> 2.12.0)
100
- rspec-expectations (~> 2.12.0)
101
- rspec-mocks (~> 2.12.0)
102
- sinatra (1.3.3)
103
- rack (~> 1.3, >= 1.3.6)
104
- rack-protection (~> 1.2)
105
- tilt (~> 1.3, >= 1.3.3)
106
- sinatra-respond_to (0.8.0)
107
- sinatra (~> 1.3)
108
- slim (1.3.4)
109
- temple (~> 0.5.5)
110
- tilt (~> 1.3.3)
111
- sprockets (2.1.3)
112
- hike (~> 1.2)
113
- rack (~> 1.0)
114
- tilt (~> 1.1, != 1.3.0)
115
- temple (0.5.5)
116
- thor (0.16.0)
117
- tilt (1.3.3)
118
- treetop (1.4.12)
119
- polyglot
120
- polyglot (>= 0.3.1)
121
- tzinfo (0.3.35)
122
-
123
- PLATFORMS
124
- ruby
125
-
126
- DEPENDENCIES
127
- ops!
128
- rails (= 3.2.8)
129
- rspec
130
- rspec-rails