rapporteur 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/Appraisals +1 -0
- data/CHANGELOG.md +32 -24
- data/README.md +1 -2
- data/config/routes.rb +1 -1
- data/gemfiles/rails3.2.gemfile +1 -0
- data/lib/rapporteur/rspec.rb +2 -2
- data/lib/rapporteur/rspec3.rb +2 -2
- data/lib/rapporteur/version.rb +1 -1
- data/rapporteur.gemspec +2 -2
- data/spec/requests/sinatra_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28ac116e491d1f943f1da89d5a5f953d890b6742
|
|
4
|
+
data.tar.gz: 88ce0b43d51db0547a08ff8b06f768df29d51985
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cf0b6b7e12e1d49502b069e922963c1619733143c55447d55f80016b838969127d35c8a6a3116bd3ac78a9de09a9df2e518c8a6f106e4f4906cfa8209595bb0
|
|
7
|
+
data.tar.gz: 1a2c4eef857511251bd58980e015211d7a9339e667947caecc1ffb0680e91cf2d927da8fa88cc94d37bbf6732d78c4a75adad118cac4d3beb2260f542862259f
|
data/.travis.yml
CHANGED
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -6,11 +6,16 @@
|
|
|
6
6
|
[](https://gemnasium.com/codeschool/rapporteur)
|
|
7
7
|
[](http://inch-ci.org/github/codeschool/rapporteur)
|
|
8
8
|
|
|
9
|
-
## [HEAD][
|
|
9
|
+
## [HEAD][] / unreleased
|
|
10
10
|
|
|
11
11
|
* No significant changes.
|
|
12
12
|
|
|
13
|
-
## [3.
|
|
13
|
+
## [3.4.0][] / 2016-01-06
|
|
14
|
+
|
|
15
|
+
* Update the route generation code to no longer use a `.routes` method that
|
|
16
|
+
becomes private in Rails 5. Thanks to [lsylvester][].
|
|
17
|
+
|
|
18
|
+
## [3.3.0][] / 2015-02-03
|
|
14
19
|
|
|
15
20
|
* Remove the customized Rapporteur::Responder (an ActionController::Responder)
|
|
16
21
|
since responders were removed from Rails core in version 4.2 and inline the
|
|
@@ -21,14 +26,14 @@
|
|
|
21
26
|
to either manually mount the engine or define an application-level named
|
|
22
27
|
route for the status endpoint.
|
|
23
28
|
|
|
24
|
-
## [3.2.0][
|
|
29
|
+
## [3.2.0][] / 2015-02-02
|
|
25
30
|
|
|
26
31
|
* Update the Rails route definition to force (and default) a JSON format. The
|
|
27
32
|
intent is to fix an issue where Rails auto-appended a `(.:format)` segment to
|
|
28
33
|
the fixed route and broke `/status.json` route matching. See
|
|
29
34
|
[codeschool/rapporteur#9](https://github.com/codeschool/rapporteur/issues/9).
|
|
30
35
|
|
|
31
|
-
## [3.1.0][
|
|
36
|
+
## [3.1.0][] / 2014-07-03
|
|
32
37
|
|
|
33
38
|
* Remove the explicit railties dependency (was at `'>= 3.1', '< 4.2'`). This
|
|
34
39
|
allows Rapporteur to be used in Sinatra applications without loading
|
|
@@ -39,16 +44,16 @@
|
|
|
39
44
|
* Removed official support for Rails 3.1.x, as it is no longer supported by the
|
|
40
45
|
Rails core team.
|
|
41
46
|
|
|
42
|
-
## [3.0.2][
|
|
47
|
+
## [3.0.2][] / 2014-05-17
|
|
43
48
|
|
|
44
49
|
* Test for and allow compatibility with railties 4.1.
|
|
45
50
|
|
|
46
|
-
## [3.0.1][
|
|
51
|
+
## [3.0.1][] / 2013-08-23
|
|
47
52
|
|
|
48
53
|
* Add back missing support for I18n interpolated values which was lost with the
|
|
49
54
|
customized message lists.
|
|
50
55
|
|
|
51
|
-
## [3.0.0][
|
|
56
|
+
## [3.0.0][] / 2013-08-23
|
|
52
57
|
|
|
53
58
|
* Fix/add Ruby 1.8 compatibility. Because this library was built to work with
|
|
54
59
|
Rails 3.1 and 3.2 (as well as 4.0), not supporting Ruby 1.8 was dishonest.
|
|
@@ -67,17 +72,17 @@
|
|
|
67
72
|
reporting. This means that there are now, possibly, more than one message per
|
|
68
73
|
key.
|
|
69
74
|
|
|
70
|
-
## [2.1.0][
|
|
75
|
+
## [2.1.0][] / 2013-06-28
|
|
71
76
|
|
|
72
77
|
* Update the gemspec to allow for Rails 4.0 environments.
|
|
73
78
|
* Update the packaged Responder to properly handle Rails 4.0.
|
|
74
79
|
* Fix deprecation notice for Checker.clear.
|
|
75
80
|
|
|
76
|
-
## [2.0.1][
|
|
81
|
+
## [2.0.1][] / 2013-05-31
|
|
77
82
|
|
|
78
83
|
* Fix NoMethodError in CheckerDeprecations#clear.
|
|
79
84
|
|
|
80
|
-
## [2.0.0][
|
|
85
|
+
## [2.0.0][] / 2013-05-31
|
|
81
86
|
|
|
82
87
|
* Removed active_model_serializers dependency.
|
|
83
88
|
* Extracted time and revision checks into Checks::TimeCheck and
|
|
@@ -100,13 +105,13 @@
|
|
|
100
105
|
* Added a facade for all Checker interaction. Clients should not use
|
|
101
106
|
Rapporteur::Checker.add_check et al, in favor of using Rapporteur.add_check.
|
|
102
107
|
|
|
103
|
-
## [1.1.0][
|
|
108
|
+
## [1.1.0][] / 2013-05-30
|
|
104
109
|
|
|
105
110
|
* Add the ability to define custom successful response messages via
|
|
106
111
|
add_message. This allows Check authors to relay automated information forward
|
|
107
112
|
to other external systems.
|
|
108
113
|
|
|
109
|
-
## [1.0.1][
|
|
114
|
+
## [1.0.1][] / 2013-05-20
|
|
110
115
|
|
|
111
116
|
* Improve the gemspec's minimum runtime- and development-dependency version
|
|
112
117
|
accuracies.
|
|
@@ -116,15 +121,18 @@
|
|
|
116
121
|
* Initial public release.
|
|
117
122
|
|
|
118
123
|
|
|
119
|
-
[
|
|
120
|
-
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
[
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[
|
|
124
|
+
[lsylvester]: https://github.com/lsylvester
|
|
125
|
+
|
|
126
|
+
[HEAD]: https://github.com/codeschool/rapporteur/compare/v3.4.0...master
|
|
127
|
+
[3.4.0]: https://github.com/codeschool/rapporteur/compare/v3.3.0...v3.4.0
|
|
128
|
+
[3.3.0]: https://github.com/codeschool/rapporteur/compare/v3.2.0...v3.3.0
|
|
129
|
+
[3.2.0]: https://github.com/codeschool/rapporteur/compare/v3.1.0...v3.2.0
|
|
130
|
+
[3.1.0]: https://github.com/codeschool/rapporteur/compare/v3.0.2...v3.1.0
|
|
131
|
+
[3.0.2]: https://github.com/codeschool/rapporteur/compare/v3.0.1...v3.0.2
|
|
132
|
+
[3.0.1]: https://github.com/codeschool/rapporteur/compare/v3.0.0...v3.0.1
|
|
133
|
+
[3.0.0]: https://github.com/codeschool/rapporteur/compare/v2.1.0...v3.0.0
|
|
134
|
+
[2.1.0]: https://github.com/codeschool/rapporteur/compare/v2.0.1...v2.1.0
|
|
135
|
+
[2.0.1]: https://github.com/codeschool/rapporteur/compare/v2.0.0...v2.0.1
|
|
136
|
+
[2.0.0]: https://github.com/codeschool/rapporteur/compare/v1.1.0...v2.0.0
|
|
137
|
+
[1.1.0]: https://github.com/codeschool/rapporteur/compare/v1.0.1...v1.1.0
|
|
138
|
+
[1.0.1]: https://github.com/codeschool/rapporteur/compare/v1.0.0...v1.0.1
|
data/README.md
CHANGED
data/config/routes.rb
CHANGED
|
@@ -8,7 +8,7 @@ Rapporteur::Engine.routes.draw do
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
Rails.application.routes.draw do
|
|
11
|
-
unless Rails.application.routes.named_routes
|
|
11
|
+
unless Rails.application.routes.named_routes[:status]
|
|
12
12
|
mount Rapporteur::Engine => "/"
|
|
13
13
|
get("/status.:format", {
|
|
14
14
|
:as => :status,
|
data/gemfiles/rails3.2.gemfile
CHANGED
data/lib/rapporteur/rspec.rb
CHANGED
|
@@ -6,7 +6,7 @@ shared_examples_for 'a successful status response' do
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
it 'responds with a JSON content header' do
|
|
9
|
-
expect(subject.content_type).to(eq(Mime
|
|
9
|
+
expect(subject.content_type).to(eq(Mime[:json]))
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
it 'responds with valid JSON' do
|
|
@@ -28,7 +28,7 @@ shared_examples_for 'an erred status response' do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
it 'responds with a JSON content header' do
|
|
31
|
-
expect(subject.content_type).to(eq(Mime
|
|
31
|
+
expect(subject.content_type).to(eq(Mime[:json]))
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'responds with valid JSON' do
|
data/lib/rapporteur/rspec3.rb
CHANGED
|
@@ -6,7 +6,7 @@ shared_examples_for 'a successful status response' do
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
it 'responds with a JSON content header' do
|
|
9
|
-
expect(subject.content_type).to(eq(Mime
|
|
9
|
+
expect(subject.content_type).to(eq(Mime[:json]))
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
it 'responds with valid JSON' do
|
|
@@ -28,7 +28,7 @@ shared_examples_for 'an erred status response' do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
it 'responds with a JSON content header' do
|
|
31
|
-
expect(subject.content_type).to(eq(Mime
|
|
31
|
+
expect(subject.content_type).to(eq(Mime[:json]))
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'responds with valid JSON' do
|
data/lib/rapporteur/version.rb
CHANGED
data/rapporteur.gemspec
CHANGED
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_development_dependency "appraisal", "~> 1.0"
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
|
25
25
|
spec.add_development_dependency "combustion", "~> 0.5", ">= 0.5.1"
|
|
26
|
-
spec.add_development_dependency "rails", ">= 3.1", "<
|
|
27
|
-
spec.add_development_dependency "rspec-rails", "~> 3.
|
|
26
|
+
spec.add_development_dependency "rails", ">= 3.1", "< 6"
|
|
27
|
+
spec.add_development_dependency "rspec-rails", "~> 3.2"
|
|
28
28
|
spec.add_development_dependency "rspec-collection_matchers", "~> 1.0"
|
|
29
29
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -17,3 +17,8 @@ RSpec.configure do |config|
|
|
|
17
17
|
|
|
18
18
|
config.before { Rapporteur.clear_checks }
|
|
19
19
|
end
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# This is a shim to allow for Ruby 1.9.3, Rails 3.2 testing to pass.
|
|
23
|
+
# See https://github.com/rspec/rspec-rails/issues/1171.
|
|
24
|
+
Test::Unit.run = true if defined?(Test::Unit) && Test::Unit.respond_to?(:run=)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rapporteur
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Envy Labs
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: i18n
|
|
@@ -82,7 +82,7 @@ dependencies:
|
|
|
82
82
|
version: '3.1'
|
|
83
83
|
- - "<"
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: '
|
|
85
|
+
version: '6'
|
|
86
86
|
type: :development
|
|
87
87
|
prerelease: false
|
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -92,21 +92,21 @@ dependencies:
|
|
|
92
92
|
version: '3.1'
|
|
93
93
|
- - "<"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: '
|
|
95
|
+
version: '6'
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
97
97
|
name: rspec-rails
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '3.
|
|
102
|
+
version: '3.2'
|
|
103
103
|
type: :development
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '3.
|
|
109
|
+
version: '3.2'
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: rspec-collection_matchers
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
193
193
|
version: '0'
|
|
194
194
|
requirements: []
|
|
195
195
|
rubyforge_project:
|
|
196
|
-
rubygems_version: 2.
|
|
196
|
+
rubygems_version: 2.5.1
|
|
197
197
|
signing_key:
|
|
198
198
|
specification_version: 4
|
|
199
199
|
summary: An engine that provides common status polling endpoint.
|