rapporteur 3.3.0 → 3.4.0

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: 1c09441f5790264d6bac686e7995dfd8de5e5eec
4
- data.tar.gz: 0271da9fe733c0114ef50aecedfce99b72c7ed94
3
+ metadata.gz: 28ac116e491d1f943f1da89d5a5f953d890b6742
4
+ data.tar.gz: 88ce0b43d51db0547a08ff8b06f768df29d51985
5
5
  SHA512:
6
- metadata.gz: 1428b9ee37335136b8751cf828c8de25837b4a903fe875c5b33d1540125b8f42b754d9716391d74218a780d7b6cd99550756747c24ff90fe65d40f240f6d3887
7
- data.tar.gz: 8900d3c79a3787acdbaeb997af7f05cfcd3e516c5967d1bae3f90aa0bdf287137bd31bb8e02aa1df0e9fc0b286ba4dc0fe82fedd71b5b5f48ff12c38a7a3e7fb
6
+ metadata.gz: 9cf0b6b7e12e1d49502b069e922963c1619733143c55447d55f80016b838969127d35c8a6a3116bd3ac78a9de09a9df2e518c8a6f106e4f4906cfa8209595bb0
7
+ data.tar.gz: 1a2c4eef857511251bd58980e015211d7a9339e667947caecc1ffb0680e91cf2d927da8fa88cc94d37bbf6732d78c4a75adad118cac4d3beb2260f542862259f
data/.travis.yml CHANGED
@@ -1,10 +1,9 @@
1
1
  language: ruby
2
- cache:
3
- directories:
4
- - vendor/bundle
2
+ sudo: false
3
+ cache: bundler
5
4
  rvm:
6
5
  - 1.9.3
7
- - 2.1.5
6
+ - 2.2.0
8
7
  - jruby-19mode
9
8
  gemfile:
10
9
  - gemfiles/rails3.2.gemfile
data/Appraisals CHANGED
@@ -1,5 +1,6 @@
1
1
  appraise "rails3.2" do
2
2
  gem "railties", "~> 3.2.0"
3
+ gem "test-unit", "~> 3.0"
3
4
  end
4
5
 
5
6
  appraise "rails4.x" do
data/CHANGELOG.md CHANGED
@@ -6,11 +6,16 @@
6
6
  [![Dependency Status](https://gemnasium.com/codeschool/rapporteur.svg)](https://gemnasium.com/codeschool/rapporteur)
7
7
  [![Inline docs](http://inch-ci.org/github/codeschool/rapporteur.svg?branch=master)](http://inch-ci.org/github/codeschool/rapporteur)
8
8
 
9
- ## [HEAD][unreleased] / unreleased
9
+ ## [HEAD][] / unreleased
10
10
 
11
11
  * No significant changes.
12
12
 
13
- ## [3.3.0][v3.3.0] / 2015-02-03
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][v3.2.0] / 2015-02-02
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][v3.1.0] / 2014-07-03
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][v3.0.2] / 2014-05-17
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][v3.0.1] / 2013-08-23
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][v3.0.0] / 2013-08-23
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][v2.1.0] / 2013-06-28
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][v2.0.1] / 2013-05-31
81
+ ## [2.0.1][] / 2013-05-31
77
82
 
78
83
  * Fix NoMethodError in CheckerDeprecations#clear.
79
84
 
80
- ## [2.0.0][v2.0.0] / 2013-05-31
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][v1.1.0] / 2013-05-30
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][v1.0.1] / 2013-05-20
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
- [unreleased]: https://github.com/codeschool/rapporteur/compare/v3.3.0...master
120
- [v3.3.0]: https://github.com/codeschool/rapporteur/compare/v3.2.0...v3.3.0
121
- [v3.2.0]: https://github.com/codeschool/rapporteur/compare/v3.1.0...v3.2.0
122
- [v3.1.0]: https://github.com/codeschool/rapporteur/compare/v3.0.2...v3.1.0
123
- [v3.0.2]: https://github.com/codeschool/rapporteur/compare/v3.0.1...v3.0.2
124
- [v3.0.1]: https://github.com/codeschool/rapporteur/compare/v3.0.0...v3.0.1
125
- [v3.0.0]: https://github.com/codeschool/rapporteur/compare/v2.1.0...v3.0.0
126
- [v2.1.0]: https://github.com/codeschool/rapporteur/compare/v2.0.1...v2.1.0
127
- [v2.0.1]: https://github.com/codeschool/rapporteur/compare/v2.0.0...v2.0.1
128
- [v2.0.0]: https://github.com/codeschool/rapporteur/compare/v1.1.0...v2.0.0
129
- [v1.1.0]: https://github.com/codeschool/rapporteur/compare/v1.0.1...v1.1.0
130
- [v1.0.1]: https://github.com/codeschool/rapporteur/compare/v1.0.0...v1.0.1
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
@@ -59,8 +59,7 @@ Supported Ruby versions:
59
59
 
60
60
  Supported Rails versions:
61
61
 
62
- * Rails 4.1.x.
63
- * Rails 4.0.x.
62
+ * Rails 4.x.
64
63
  * Rails 3.2.x.
65
64
 
66
65
  Non-Rails environments are also supported (such as Sinatra), see Usage below
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.routes[:status]
11
+ unless Rails.application.routes.named_routes[:status]
12
12
  mount Rapporteur::Engine => "/"
13
13
  get("/status.:format", {
14
14
  :as => :status,
@@ -5,5 +5,6 @@ source "https://rubygems.org"
5
5
  gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
6
6
  gem "sqlite3", :platforms => :ruby
7
7
  gem "railties", "~> 3.2.0"
8
+ gem "test-unit", "~> 3.0"
8
9
 
9
10
  gemspec :path => "../"
@@ -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::JSON))
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::JSON))
31
+ expect(subject.content_type).to(eq(Mime[:json]))
32
32
  end
33
33
 
34
34
  it 'responds with valid JSON' do
@@ -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::JSON))
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::JSON))
31
+ expect(subject.content_type).to(eq(Mime[:json]))
32
32
  end
33
33
 
34
34
  it 'responds with valid JSON' do
@@ -1,3 +1,3 @@
1
1
  module Rapporteur
2
- VERSION = "3.3.0"
2
+ VERSION = "3.4.0"
3
3
  end
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", "< 4.3"
27
- spec.add_development_dependency "rspec-rails", "~> 3.0"
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
@@ -34,7 +34,7 @@ begin
34
34
  end
35
35
 
36
36
  it 'responds with a JSON content header' do
37
- expect(subject.content_type).to(eq(Mime::JSON))
37
+ expect(subject.content_type).to(eq(Mime[:json]))
38
38
  end
39
39
 
40
40
  it 'responds with valid JSON' do
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.3.0
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: 2015-02-03 00:00:00.000000000 Z
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: '4.3'
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: '4.3'
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.0'
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.0'
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.4.5
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.