rapporteur 3.6.4 → 3.7.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
  SHA256:
3
- metadata.gz: cb4afdc76415881f0def9f10d37e5ad82886503325d773736aad1244a33c19ee
4
- data.tar.gz: 8b3fc5902d1ef2b0d31d3149a226be718a29ef43b67fce2fa31d092ba63ae98d
3
+ metadata.gz: 3db69d5d73dbfafab08c22edd81d3820e56fed93d28432b53fa7be3887cc406c
4
+ data.tar.gz: 0aa510c74dafa83f2134ffe676f2890ae3f86c94952511d201a65704fabcadbc
5
5
  SHA512:
6
- metadata.gz: d0130f7543054e2e74dd9c9932aebd72a2c0b346b6b1713acca29d87ef1c475fe908a35edcf7b7e20324dce4433fbe18548f0ee4350a134dda5dacc93e9d1efd
7
- data.tar.gz: 39a74b306b2a73a5b0b0126b346f611735b3825eb88f6fe9efa8fd0393ff64a2e775071be8eb80f3107359366c9e143804d47ec5e26081dc254075dc22e877de
6
+ metadata.gz: af872ea5073a9cb0f80d915e73ba6f36dd5d68acc9c143717a1f7f3d259d974b79852060850e84398c9bfb67e306de97b95702bae0501244974a2b0f54ff66eb
7
+ data.tar.gz: 713bd749716b99c5d1a9eeb53bba570564acffc6b7933adf7006b2f6c20d5671925aeb1be7b8efc6099749d6c5db49942a352a8164878335d2556bcb3f887de0
@@ -1,37 +1,30 @@
1
+ ---
2
+
1
3
  inherit_gem:
2
4
  rubocop-rails_config:
3
5
  - "config/rails.yml"
4
6
 
5
7
  AllCops:
6
- TargetRubyVersion: 2.3
7
8
  Exclude:
8
9
  - 'gemfiles/*'
10
+ - 'gemfiles/**/*'
11
+ - 'vendor/**/*'
12
+ TargetRubyVersion: 2.5
9
13
 
10
14
  Layout/CaseIndentation:
11
- Enabled: true
12
- EnforcedStyle: end
15
+ EnforcedStyle: "end"
16
+
17
+ Layout/EmptyLinesAroundAccessModifier:
18
+ EnforcedStyle: "around"
13
19
 
14
20
  Layout/EndOfLine:
15
21
  EnforcedStyle: "lf"
16
22
 
17
- Layout/IndentHeredoc:
23
+ Layout/HeredocIndentation:
18
24
  EnforcedStyle: "squiggly"
19
25
 
20
26
  Layout/IndentationConsistency:
21
27
  EnforcedStyle: "normal"
22
28
 
23
- Metrics/BlockLength:
24
- Exclude:
25
- - 'Rakefile'
26
- - '**/*.rake'
27
- - 'spec/**/*.rb'
28
-
29
- Metrics/ModuleLength:
30
- Exclude:
31
- - 'spec/**/*.rb'
32
-
33
- Style/SafeNavigation:
34
- Enabled: false
35
-
36
29
  Style/StringLiterals:
37
30
  EnforcedStyle: "single_quotes"
@@ -1,55 +1,58 @@
1
+ ---
2
+
1
3
  before_install:
2
- - gem install bundler -v 2.0.1
4
+ - "gem install bundler -v 2.1.3"
5
+ install:
6
+ - "bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}"
3
7
  branches:
4
8
  only:
5
- - master
6
- - /^v\d+\.\d+\.\d+/
9
+ - "master"
10
+ - '/^v\d+\.\d+\.\d+/'
7
11
  cache:
8
12
  bundler: true
9
- dist: xenial
13
+ dist: "xenial"
10
14
  jobs:
11
15
  fail_fast: true
12
16
  include:
13
- - stage: "Test"
14
- script: bundle exec rake
15
- rvm: 2.6.2
17
+ - rvm: "2.7.0"
18
+ stage: "Test"
16
19
 
17
- - stage: "Latest Rails Release"
18
- env: BUNDLE_GEMFILE=$PWD/gemfiles/rails_latest.gemfile
19
- rvm: 2.6.2
20
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails_latest.gemfile
21
- rvm: 2.5.5
22
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails_latest.gemfile
23
- rvm: 2.4.5
20
+ - gemfile: "gemfiles/rails_latest.gemfile"
21
+ rvm: "2.7.0"
22
+ stage: "Latest Rails Release"
23
+ - gemfile: "gemfiles/rails_latest.gemfile"
24
+ rvm: "2.6.5"
25
+ - gemfile: "gemfiles/rails_latest.gemfile"
26
+ rvm: "2.5.7"
24
27
 
25
- - stage: "Additinal Rails Tests"
26
- env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.2.gemfile
27
- rvm: 2.6.2
28
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.2.gemfile
29
- rvm: 2.5.5
30
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.2.gemfile
31
- rvm: 2.4.5
32
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.1.gemfile
33
- rvm: 2.6.2
34
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.1.gemfile
35
- rvm: 2.5.5
36
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.1.gemfile
37
- rvm: 2.4.5
38
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.0.gemfile
39
- rvm: 2.6.2
40
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.0.gemfile
41
- rvm: 2.5.5
42
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/rails5.0.gemfile
43
- rvm: 2.4.5
28
+ - gemfile: "gemfiles/rails6.0.gemfile"
29
+ rvm: "2.7.0"
30
+ stage: "Additinal Rails Tests"
31
+ - gemfile: "gemfiles/rails6.0.gemfile"
32
+ rvm: "2.6.5"
33
+ - gemfile: "gemfiles/rails6.0.gemfile"
34
+ rvm: "2.5.7"
35
+ - gemfile: "gemfiles/rails5.2.gemfile"
36
+ rvm: "2.7.0"
37
+ - gemfile: "gemfiles/rails5.2.gemfile"
38
+ rvm: "2.6.5"
39
+ - gemfile: "gemfiles/rails5.2.gemfile"
40
+ rvm: "2.5.7"
41
+ - gemfile: "gemfiles/rails5.2.gemfile"
42
+ rvm: "2.4.9"
44
43
 
45
- - stage: "Sinatra 2.x Release"
46
- env: BUNDLE_GEMFILE=$PWD/gemfiles/sinatra2.x.gemfile
47
- rvm: 2.6.2
48
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/sinatra2.x.gemfile
49
- rvm: 2.5.5
50
- - env: BUNDLE_GEMFILE=$PWD/gemfiles/sinatra2.x.gemfile
51
- rvm: 2.4.5
52
- language: ruby
44
+ - gemfile: "gemfiles/sinatra2.x.gemfile"
45
+ rvm: "2.7.0"
46
+ stage: "Sinatra 2.x Release"
47
+ - gemfile: "gemfiles/sinatra2.x.gemfile"
48
+ rvm: "2.6.5"
49
+ - gemfile: "gemfiles/sinatra2.x.gemfile"
50
+ rvm: "2.5.7"
51
+ - gemfile: "gemfiles/sinatra2.x.gemfile"
52
+ rvm: "2.4.9"
53
+ language: "ruby"
53
54
  notifications:
54
55
  email: false
55
- sudo: false
56
+ script:
57
+ - "bundle exec rubocop -fs"
58
+ - "bundle exec rake"
@@ -0,0 +1,7 @@
1
+ ---
2
+
3
+ extends: default
4
+
5
+ rules:
6
+ key-ordering: "enable"
7
+ quoted-strings: "enable"
data/Appraisals CHANGED
@@ -1,20 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails5.0' do
4
- gem 'rails', '~> 5.0.0'
5
- gem 'sqlite3', '< 1.4', platforms: :ruby
6
- end
7
-
8
- appraise 'rails5.1' do
9
- gem 'rails', '~> 5.1.0'
10
- gem 'sqlite3', '< 1.4', platforms: :ruby
11
- end
12
-
13
3
  appraise 'rails5.2' do
14
4
  gem 'rails', '~> 5.2.0'
15
5
  gem 'sqlite3', '< 1.4', platforms: :ruby
16
6
  end
17
7
 
8
+ appraise 'rails6.0' do
9
+ gem 'rails', '~> 6.0.0'
10
+ end
11
+
18
12
  appraise 'rails-latest' do
19
13
  gem 'rails'
20
14
  end
@@ -9,6 +9,11 @@
9
9
 
10
10
  * No significant changes.
11
11
 
12
+ ## [3.7.0][] / 2020-01-02
13
+
14
+ * Add and test support for Rails 6.0. This also drops explicit testing of Rails
15
+ 5.0 and 5.1 as they are no longer officially maintained.
16
+
12
17
  ## [3.6.4][] / 2019-04-04
13
18
 
14
19
  * Maintenance release, no functional changes.
@@ -187,4 +192,5 @@
187
192
  [3.6.2]: https://github.com/envylabs/rapporteur/compare/v3.6.1...v3.6.2
188
193
  [3.6.3]: https://github.com/envylabs/rapporteur/compare/v3.6.2...v3.6.3
189
194
  [3.6.4]: https://github.com/envylabs/rapporteur/compare/v3.6.3...v3.6.4
190
- [HEAD]: https://github.com/envylabs/rapporteur/compare/v3.6.4...master
195
+ [3.7.0]: https://github.com/envylabs/rapporteur/compare/v3.6.4...v3.7.0
196
+ [HEAD]: https://github.com/envylabs/rapporteur/compare/v3.7.0...master
@@ -1,82 +1,94 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rapporteur (3.6.4)
4
+ rapporteur (3.7.0)
5
5
  i18n (>= 0.6, < 2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.2.3)
11
- actionpack (= 5.2.3)
10
+ actioncable (6.0.2.1)
11
+ actionpack (= 6.0.2.1)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailer (5.2.3)
15
- actionpack (= 5.2.3)
16
- actionview (= 5.2.3)
17
- activejob (= 5.2.3)
14
+ actionmailbox (6.0.2.1)
15
+ actionpack (= 6.0.2.1)
16
+ activejob (= 6.0.2.1)
17
+ activerecord (= 6.0.2.1)
18
+ activestorage (= 6.0.2.1)
19
+ activesupport (= 6.0.2.1)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.0.2.1)
22
+ actionpack (= 6.0.2.1)
23
+ actionview (= 6.0.2.1)
24
+ activejob (= 6.0.2.1)
18
25
  mail (~> 2.5, >= 2.5.4)
19
26
  rails-dom-testing (~> 2.0)
20
- actionpack (5.2.3)
21
- actionview (= 5.2.3)
22
- activesupport (= 5.2.3)
23
- rack (~> 2.0)
27
+ actionpack (6.0.2.1)
28
+ actionview (= 6.0.2.1)
29
+ activesupport (= 6.0.2.1)
30
+ rack (~> 2.0, >= 2.0.8)
24
31
  rack-test (>= 0.6.3)
25
32
  rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.2.3)
28
- activesupport (= 5.2.3)
33
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
+ actiontext (6.0.2.1)
35
+ actionpack (= 6.0.2.1)
36
+ activerecord (= 6.0.2.1)
37
+ activestorage (= 6.0.2.1)
38
+ activesupport (= 6.0.2.1)
39
+ nokogiri (>= 1.8.5)
40
+ actionview (6.0.2.1)
41
+ activesupport (= 6.0.2.1)
29
42
  builder (~> 3.1)
30
43
  erubi (~> 1.4)
31
44
  rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.2.3)
34
- activesupport (= 5.2.3)
45
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
+ activejob (6.0.2.1)
47
+ activesupport (= 6.0.2.1)
35
48
  globalid (>= 0.3.6)
36
- activemodel (5.2.3)
37
- activesupport (= 5.2.3)
38
- activerecord (5.2.3)
39
- activemodel (= 5.2.3)
40
- activesupport (= 5.2.3)
41
- arel (>= 9.0)
42
- activerecord-jdbc-adapter (52.1-java)
43
- activerecord (~> 5.2.0)
44
- activerecord-jdbcsqlite3-adapter (52.1-java)
45
- activerecord-jdbc-adapter (= 52.1)
49
+ activemodel (6.0.2.1)
50
+ activesupport (= 6.0.2.1)
51
+ activerecord (6.0.2.1)
52
+ activemodel (= 6.0.2.1)
53
+ activesupport (= 6.0.2.1)
54
+ activerecord-jdbc-adapter (60.1-java)
55
+ activerecord (~> 6.0.0)
56
+ activerecord-jdbcsqlite3-adapter (60.1-java)
57
+ activerecord-jdbc-adapter (= 60.1)
46
58
  jdbc-sqlite3 (~> 3.8, < 3.30)
47
- activestorage (5.2.3)
48
- actionpack (= 5.2.3)
49
- activerecord (= 5.2.3)
59
+ activestorage (6.0.2.1)
60
+ actionpack (= 6.0.2.1)
61
+ activejob (= 6.0.2.1)
62
+ activerecord (= 6.0.2.1)
50
63
  marcel (~> 0.3.1)
51
- activesupport (5.2.3)
64
+ activesupport (6.0.2.1)
52
65
  concurrent-ruby (~> 1.0, >= 1.0.2)
53
66
  i18n (>= 0.7, < 2)
54
67
  minitest (~> 5.1)
55
68
  tzinfo (~> 1.1)
69
+ zeitwerk (~> 2.2)
56
70
  appraisal (2.2.0)
57
71
  bundler
58
72
  rake
59
73
  thor (>= 0.14.0)
60
- arel (9.0.0)
61
74
  ast (2.4.0)
62
- builder (3.2.3)
63
- combustion (1.1.0)
75
+ builder (3.2.4)
76
+ combustion (1.1.2)
64
77
  activesupport (>= 3.0.0)
65
78
  railties (>= 3.0.0)
66
79
  thor (>= 0.14.6)
67
80
  concurrent-ruby (1.1.5)
68
- crass (1.0.4)
81
+ crass (1.0.5)
69
82
  diff-lcs (1.3)
70
- erubi (1.8.0)
83
+ erubi (1.9.0)
71
84
  globalid (0.4.2)
72
85
  activesupport (>= 4.2.0)
73
- i18n (1.6.0)
86
+ i18n (1.7.0)
74
87
  concurrent-ruby (~> 1.0)
75
- jar-dependencies (0.4.0)
76
- jaro_winkler (1.5.2)
77
- jaro_winkler (1.5.2-java)
78
- jdbc-sqlite3 (3.20.1)
79
- loofah (2.2.3)
88
+ jaro_winkler (1.5.4)
89
+ jaro_winkler (1.5.4-java)
90
+ jdbc-sqlite3 (3.28.0)
91
+ loofah (2.4.0)
80
92
  crass (~> 1.0.2)
81
93
  nokogiri (>= 1.5.9)
82
94
  mail (2.7.1)
@@ -85,99 +97,105 @@ GEM
85
97
  mimemagic (~> 0.3.2)
86
98
  method_source (0.9.2)
87
99
  mimemagic (0.3.3)
88
- mini_mime (1.0.1)
100
+ mini_mime (1.0.2)
89
101
  mini_portile2 (2.4.0)
90
- minitest (5.11.3)
91
- nio4r (2.3.1)
92
- nio4r (2.3.1-java)
93
- nokogiri (1.10.2)
102
+ minitest (5.13.0)
103
+ nio4r (2.5.2)
104
+ nio4r (2.5.2-java)
105
+ nokogiri (1.10.7)
94
106
  mini_portile2 (~> 2.4.0)
95
- nokogiri (1.10.2-java)
96
- parallel (1.17.0)
97
- parser (2.6.2.0)
107
+ nokogiri (1.10.7-java)
108
+ parallel (1.19.1)
109
+ parser (2.7.0.1)
98
110
  ast (~> 2.4.0)
99
- psych (3.1.0)
100
- psych (3.1.0-java)
101
- jar-dependencies (>= 0.1.7)
102
- rack (2.0.7)
111
+ rack (2.0.8)
103
112
  rack-test (1.1.0)
104
113
  rack (>= 1.0, < 3)
105
- rails (5.2.3)
106
- actioncable (= 5.2.3)
107
- actionmailer (= 5.2.3)
108
- actionpack (= 5.2.3)
109
- actionview (= 5.2.3)
110
- activejob (= 5.2.3)
111
- activemodel (= 5.2.3)
112
- activerecord (= 5.2.3)
113
- activestorage (= 5.2.3)
114
- activesupport (= 5.2.3)
114
+ rails (6.0.2.1)
115
+ actioncable (= 6.0.2.1)
116
+ actionmailbox (= 6.0.2.1)
117
+ actionmailer (= 6.0.2.1)
118
+ actionpack (= 6.0.2.1)
119
+ actiontext (= 6.0.2.1)
120
+ actionview (= 6.0.2.1)
121
+ activejob (= 6.0.2.1)
122
+ activemodel (= 6.0.2.1)
123
+ activerecord (= 6.0.2.1)
124
+ activestorage (= 6.0.2.1)
125
+ activesupport (= 6.0.2.1)
115
126
  bundler (>= 1.3.0)
116
- railties (= 5.2.3)
127
+ railties (= 6.0.2.1)
117
128
  sprockets-rails (>= 2.0.0)
118
129
  rails-dom-testing (2.0.3)
119
130
  activesupport (>= 4.2.0)
120
131
  nokogiri (>= 1.6)
121
- rails-html-sanitizer (1.0.4)
122
- loofah (~> 2.2, >= 2.2.2)
123
- railties (5.2.3)
124
- actionpack (= 5.2.3)
125
- activesupport (= 5.2.3)
132
+ rails-html-sanitizer (1.3.0)
133
+ loofah (~> 2.3)
134
+ railties (6.0.2.1)
135
+ actionpack (= 6.0.2.1)
136
+ activesupport (= 6.0.2.1)
126
137
  method_source
127
138
  rake (>= 0.8.7)
128
- thor (>= 0.19.0, < 2.0)
139
+ thor (>= 0.20.3, < 2.0)
129
140
  rainbow (3.0.0)
130
- rake (12.3.2)
131
- rspec-collection_matchers (1.1.3)
141
+ rake (13.0.1)
142
+ rspec-collection_matchers (1.2.0)
132
143
  rspec-expectations (>= 2.99.0.beta1)
133
- rspec-core (3.8.0)
134
- rspec-support (~> 3.8.0)
135
- rspec-expectations (3.8.2)
144
+ rspec-core (3.9.1)
145
+ rspec-support (~> 3.9.1)
146
+ rspec-expectations (3.9.0)
136
147
  diff-lcs (>= 1.2.0, < 2.0)
137
- rspec-support (~> 3.8.0)
138
- rspec-mocks (3.8.0)
148
+ rspec-support (~> 3.9.0)
149
+ rspec-mocks (3.9.1)
139
150
  diff-lcs (>= 1.2.0, < 2.0)
140
- rspec-support (~> 3.8.0)
141
- rspec-rails (3.8.2)
151
+ rspec-support (~> 3.9.0)
152
+ rspec-rails (3.9.0)
142
153
  actionpack (>= 3.0)
143
154
  activesupport (>= 3.0)
144
155
  railties (>= 3.0)
145
- rspec-core (~> 3.8.0)
146
- rspec-expectations (~> 3.8.0)
147
- rspec-mocks (~> 3.8.0)
148
- rspec-support (~> 3.8.0)
149
- rspec-support (3.8.0)
150
- rubocop (0.66.0)
156
+ rspec-core (~> 3.9.0)
157
+ rspec-expectations (~> 3.9.0)
158
+ rspec-mocks (~> 3.9.0)
159
+ rspec-support (~> 3.9.0)
160
+ rspec-support (3.9.2)
161
+ rubocop (0.78.0)
151
162
  jaro_winkler (~> 1.5.1)
152
163
  parallel (~> 1.10)
153
- parser (>= 2.5, != 2.5.1.1)
154
- psych (>= 3.1.0)
164
+ parser (>= 2.6)
155
165
  rainbow (>= 2.2.2, < 4.0)
156
166
  ruby-progressbar (~> 1.7)
157
- unicode-display_width (>= 1.4.0, < 1.6)
158
- rubocop-rails_config (0.5.0)
167
+ unicode-display_width (>= 1.4.0, < 1.7)
168
+ rubocop-performance (1.5.2)
169
+ rubocop (>= 0.71.0)
170
+ rubocop-rails (2.4.1)
171
+ rack (>= 1.1)
172
+ rubocop (>= 0.72.0)
173
+ rubocop-rails_config (0.9.0)
159
174
  railties (>= 3.0)
160
- rubocop (~> 0.60)
161
- ruby-progressbar (1.10.0)
162
- sprockets (3.7.2)
175
+ rubocop (~> 0.77)
176
+ rubocop-performance (~> 1.3)
177
+ rubocop-rails (~> 2.0)
178
+ ruby-progressbar (1.10.1)
179
+ sprockets (4.0.0)
163
180
  concurrent-ruby (~> 1.0)
164
181
  rack (> 1, < 3)
165
182
  sprockets-rails (3.2.1)
166
183
  actionpack (>= 4.0)
167
184
  activesupport (>= 4.0)
168
185
  sprockets (>= 3.0.0)
169
- sqlite3 (1.4.0)
170
- thor (0.20.3)
186
+ sqlite3 (1.4.2)
187
+ thor (1.0.1)
171
188
  thread_safe (0.3.6)
172
189
  thread_safe (0.3.6-java)
173
- tzinfo (1.2.5)
190
+ tzinfo (1.2.6)
174
191
  thread_safe (~> 0.1)
175
- unicode-display_width (1.5.0)
176
- websocket-driver (0.7.0)
192
+ unicode-display_width (1.6.0)
193
+ websocket-driver (0.7.1)
177
194
  websocket-extensions (>= 0.1.0)
178
- websocket-driver (0.7.0-java)
195
+ websocket-driver (0.7.1-java)
179
196
  websocket-extensions (>= 0.1.0)
180
- websocket-extensions (0.1.3)
197
+ websocket-extensions (0.1.4)
198
+ zeitwerk (2.2.2)
181
199
 
182
200
  PLATFORMS
183
201
  java
@@ -188,14 +206,14 @@ DEPENDENCIES
188
206
  appraisal (~> 2.1)
189
207
  bundler (~> 2.0)
190
208
  combustion (~> 1.0)
191
- rails (>= 3.1, < 6)
192
- rake (~> 12.0)
209
+ rails (>= 3.1, < 7)
210
+ rake (~> 13.0)
193
211
  rapporteur!
194
212
  rspec-collection_matchers (~> 1.0)
195
213
  rspec-rails (~> 3.2)
196
- rubocop (~> 0.66.0)
197
- rubocop-rails_config (~> 0.5.0)
214
+ rubocop (~> 0.78.0)
215
+ rubocop-rails_config (~> 0.9.0)
198
216
  sqlite3
199
217
 
200
218
  BUNDLED WITH
201
- 2.0.1
219
+ 2.1.3
data/README.md CHANGED
@@ -50,14 +50,15 @@ $ bundle install
50
50
 
51
51
  Supported Ruby versions:
52
52
 
53
+ * MRI 2.7
53
54
  * MRI 2.6
54
55
  * MRI 2.5
55
56
  * MRI 2.4
56
57
 
57
58
  Supported frameworks:
58
59
 
59
- * Rails 5.x.
60
- * Rails 4.2+.
60
+ * Rails 6.0.
61
+ * Rails 5.2.
61
62
  * Sinatra 2.x.
62
63
  * Sinatra 1.x.
63
64
 
@@ -1,3 +1,5 @@
1
+ ---
2
+
1
3
  en:
2
4
  rapporteur:
3
5
  errors:
@@ -4,8 +4,12 @@ Rapporteur::Engine.routes.draw do
4
4
  get '/(.:format)', to: 'statuses#show', as: :status
5
5
  end
6
6
 
7
- unless Rails.application.routes.routes.any? { |r| (Rapporteur::Engine == r.app) || (r.app.respond_to?(:app) && Rapporteur::Engine == r.app.app) }
8
- ActiveSupport::Deprecation.warn('Rapporteur was not explicitly mounted in your application. Please add an explicit mount call to your /config/routes.rb. Automatically mounted Rapporteur::Engine to /status for backward compatibility. This will be no longer automatically mount in Rapporteur 4.')
7
+ explicitly_mounted = Rails.application.routes.routes.any? { |r|
8
+ (Rapporteur::Engine == r.app) || (r.app.respond_to?(:app) && Rapporteur::Engine == r.app.app)
9
+ }
10
+
11
+ unless explicitly_mounted
12
+ ActiveSupport::Deprecation.warn('Rapporteur was not explicitly mounted in your application. Please add an explicit mount call to your /config/routes.rb. Automatically mounted Rapporteur::Engine to /status for backward compatibility. This will be no longer automatically mount in Rapporteur 4.') # rubocop:disable Layout/LineLength
9
13
  Rails.application.routes.draw do
10
14
  mount Rapporteur::Engine, at: '/status'
11
15
  end
@@ -3,7 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "activerecord-jdbcsqlite3-adapter", platforms: :jruby
6
- gem "sqlite3", "< 1.4", platforms: :ruby
7
- gem "rails", "~> 5.0.0"
6
+ gem "sqlite3", platforms: :ruby
7
+ gem "rails", "~> 6.0.0"
8
8
 
9
9
  gemspec path: "../"
@@ -5,7 +5,7 @@ module Rapporteur
5
5
  class ActiveRecordCheck
6
6
  def self.call(checker)
7
7
  ActiveRecord::Base.connection.select_value('SELECT current_time AS time')
8
- rescue
8
+ rescue StandardError
9
9
  checker.add_error(:database, :unavailable)
10
10
  end
11
11
  end
@@ -75,9 +75,9 @@ module Rapporteur
75
75
  # Returns an Array containing Strings of messages.
76
76
  #
77
77
  def full_messages
78
- @messages.map do |attribute, attribute_messages|
79
- attribute_messages.collect { |message| "#{attribute} #{message}" }
80
- end.flatten
78
+ @messages.map { |attribute, attribute_messages|
79
+ attribute_messages.map { |message| "#{attribute} #{message}" }
80
+ }.flatten
81
81
  end
82
82
 
83
83
  # Public: Returns the added attributes and their messages as a Hash, keyed
@@ -109,8 +109,9 @@ module Rapporteur
109
109
  private
110
110
 
111
111
  def generate_message(key, type, i18n_options)
112
- I18n.translate(type, i18n_options.merge(default: [type, type.to_s],
113
- scope: [:rapporteur, @list_type, key]))
112
+ I18n.translate(type,
113
+ i18n_options.merge(default: [type, type.to_s],
114
+ scope: [:rapporteur, @list_type, key]))
114
115
  end
115
116
 
116
117
  def normalize_message(attribute, message, i18n_options)
@@ -36,7 +36,7 @@ module Rapporteur
36
36
  #
37
37
  def self.default_revision_source
38
38
  `git rev-parse HEAD 2>/dev/null`.strip
39
- rescue
39
+ rescue StandardError
40
40
  end
41
41
 
42
42
  # Internal: Calculates the current revision from the configured revision
@@ -11,7 +11,7 @@ shared_examples_for 'a successful status response' do
11
11
 
12
12
  context 'the response headers' do
13
13
  it 'contains a Content-Type JSON header' do
14
- expect(response.content_type).to(eq(Mime[:json]))
14
+ expect(response.media_type).to(eq(Mime[:json]))
15
15
  end
16
16
 
17
17
  it 'does not contain an ETag header' do
@@ -39,7 +39,7 @@ shared_examples_for 'an erred status response' do
39
39
 
40
40
  context 'the response headers' do
41
41
  it 'contains a Content-Type JSON header' do
42
- expect(response.content_type).to(eq(Mime[:json]))
42
+ expect(response.media_type).to(eq(Mime[:json]))
43
43
  end
44
44
 
45
45
  it 'does not contain an ETag header' do
@@ -77,7 +77,7 @@ end
77
77
  RSpec::Matchers.define :include_status_message do |name, message|
78
78
  match do |response|
79
79
  @body = JSON.parse(response.body)
80
- @body.key?(name) && @body.fetch(name).match(message)
80
+ @body.has_key?(name) && @body.fetch(name).match(message)
81
81
  end
82
82
 
83
83
  failure_message_for_should do |_actual|
@@ -11,7 +11,7 @@ shared_examples_for 'a successful status response' do
11
11
 
12
12
  context 'the response headers' do
13
13
  it 'contains a Content-Type JSON header' do
14
- expect(response.content_type).to(eq(Mime[:json]))
14
+ expect(response.media_type).to(eq(Mime[:json]))
15
15
  end
16
16
 
17
17
  it 'does not contain an ETag header' do
@@ -39,7 +39,7 @@ shared_examples_for 'an erred status response' do
39
39
 
40
40
  context 'the response headers' do
41
41
  it 'contains a Content-Type JSON header' do
42
- expect(response.content_type).to(eq(Mime[:json]))
42
+ expect(response.media_type).to(eq(Mime[:json]))
43
43
  end
44
44
 
45
45
  it 'does not contain an ETag header' do
@@ -74,7 +74,7 @@ RSpec::Matchers.define :include_status_message do |name, message|
74
74
  match do |response|
75
75
  @body = JSON.parse(response.body)
76
76
 
77
- @body.key?(name) && @body.fetch(name).match(message)
77
+ @body.has_key?(name) && @body.fetch(name).match(message)
78
78
  end
79
79
 
80
80
  failure_message do |_actual|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rapporteur
4
- VERSION = '3.6.4'
4
+ VERSION = '3.7.0'
5
5
  end
@@ -1,24 +1,22 @@
1
- # coding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
- lib = File.expand_path('../lib', __FILE__)
5
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
- require 'rapporteur/version'
3
+ require_relative 'lib/rapporteur/version'
7
4
 
8
5
  Gem::Specification.new do |spec|
9
6
  spec.name = 'rapporteur'
10
7
  spec.version = Rapporteur::VERSION
11
- spec.authors = ['Envy Labs', 'Code School']
8
+ spec.authors = ['Envy Labs']
12
9
  spec.email = ['']
13
10
  spec.description = 'An engine that provides common status polling endpoint.'
14
11
  spec.summary = 'An engine that provides common status polling endpoint.'
15
12
  spec.homepage = 'https://github.com/envylabs/rapporteur'
16
13
  spec.license = 'MIT'
14
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
17
15
 
18
16
  spec.metadata['source_code_uri'] = 'https://github.com/envylabs/rapporteur'
19
17
  spec.metadata['changelog_uri'] = 'https://github.com/envylabs/rapporteur/blob/master/CHANGELOG.md'
20
18
 
21
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
20
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
21
  end
24
22
  spec.bindir = 'exe'
@@ -30,10 +28,10 @@ Gem::Specification.new do |spec|
30
28
  spec.add_development_dependency 'appraisal', '~> 2.1'
31
29
  spec.add_development_dependency 'bundler', '~> 2.0'
32
30
  spec.add_development_dependency 'combustion', '~> 1.0'
33
- spec.add_development_dependency 'rails', '>= 3.1', '< 6'
34
- spec.add_development_dependency 'rake', '~> 12.0'
31
+ spec.add_development_dependency 'rails', '>= 3.1', '< 7'
32
+ spec.add_development_dependency 'rake', '~> 13.0'
35
33
  spec.add_development_dependency 'rspec-collection_matchers', '~> 1.0'
36
34
  spec.add_development_dependency 'rspec-rails', '~> 3.2'
37
- spec.add_development_dependency 'rubocop', '~> 0.66.0'
38
- spec.add_development_dependency 'rubocop-rails_config', '~> 0.5.0'
35
+ spec.add_development_dependency 'rubocop', '~> 0.78.0'
36
+ spec.add_development_dependency 'rubocop-rails_config', '~> 0.9.0'
39
37
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapporteur
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.4
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Envy Labs
8
- - Code School
9
8
  autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: i18n
@@ -82,7 +81,7 @@ dependencies:
82
81
  version: '3.1'
83
82
  - - "<"
84
83
  - !ruby/object:Gem::Version
85
- version: '6'
84
+ version: '7'
86
85
  type: :development
87
86
  prerelease: false
88
87
  version_requirements: !ruby/object:Gem::Requirement
@@ -92,21 +91,21 @@ dependencies:
92
91
  version: '3.1'
93
92
  - - "<"
94
93
  - !ruby/object:Gem::Version
95
- version: '6'
94
+ version: '7'
96
95
  - !ruby/object:Gem::Dependency
97
96
  name: rake
98
97
  requirement: !ruby/object:Gem::Requirement
99
98
  requirements:
100
99
  - - "~>"
101
100
  - !ruby/object:Gem::Version
102
- version: '12.0'
101
+ version: '13.0'
103
102
  type: :development
104
103
  prerelease: false
105
104
  version_requirements: !ruby/object:Gem::Requirement
106
105
  requirements:
107
106
  - - "~>"
108
107
  - !ruby/object:Gem::Version
109
- version: '12.0'
108
+ version: '13.0'
110
109
  - !ruby/object:Gem::Dependency
111
110
  name: rspec-collection_matchers
112
111
  requirement: !ruby/object:Gem::Requirement
@@ -141,28 +140,28 @@ dependencies:
141
140
  requirements:
142
141
  - - "~>"
143
142
  - !ruby/object:Gem::Version
144
- version: 0.66.0
143
+ version: 0.78.0
145
144
  type: :development
146
145
  prerelease: false
147
146
  version_requirements: !ruby/object:Gem::Requirement
148
147
  requirements:
149
148
  - - "~>"
150
149
  - !ruby/object:Gem::Version
151
- version: 0.66.0
150
+ version: 0.78.0
152
151
  - !ruby/object:Gem::Dependency
153
152
  name: rubocop-rails_config
154
153
  requirement: !ruby/object:Gem::Requirement
155
154
  requirements:
156
155
  - - "~>"
157
156
  - !ruby/object:Gem::Version
158
- version: 0.5.0
157
+ version: 0.9.0
159
158
  type: :development
160
159
  prerelease: false
161
160
  version_requirements: !ruby/object:Gem::Requirement
162
161
  requirements:
163
162
  - - "~>"
164
163
  - !ruby/object:Gem::Version
165
- version: 0.5.0
164
+ version: 0.9.0
166
165
  description: An engine that provides common status polling endpoint.
167
166
  email:
168
167
  - ''
@@ -174,6 +173,7 @@ files:
174
173
  - ".rspec"
175
174
  - ".rubocop.yml"
176
175
  - ".travis.yml"
176
+ - ".yamllint"
177
177
  - Appraisals
178
178
  - CHANGELOG.md
179
179
  - Gemfile
@@ -188,9 +188,8 @@ files:
188
188
  - config.ru
189
189
  - config/locales/en.yml
190
190
  - config/routes.rb
191
- - gemfiles/rails5.0.gemfile
192
- - gemfiles/rails5.1.gemfile
193
191
  - gemfiles/rails5.2.gemfile
192
+ - gemfiles/rails6.0.gemfile
194
193
  - gemfiles/rails_latest.gemfile
195
194
  - gemfiles/sinatra2.x.gemfile
196
195
  - lib/rapporteur.rb
@@ -220,14 +219,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
219
  requirements:
221
220
  - - ">="
222
221
  - !ruby/object:Gem::Version
223
- version: '0'
222
+ version: 2.3.0
224
223
  required_rubygems_version: !ruby/object:Gem::Requirement
225
224
  requirements:
226
225
  - - ">="
227
226
  - !ruby/object:Gem::Version
228
227
  version: '0'
229
228
  requirements: []
230
- rubygems_version: 3.0.3
229
+ rubygems_version: 3.1.2
231
230
  signing_key:
232
231
  specification_version: 4
233
232
  summary: An engine that provides common status polling endpoint.
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord-jdbcsqlite3-adapter", platforms: :jruby
6
- gem "sqlite3", "< 1.4", platforms: :ruby
7
- gem "rails", "~> 5.1.0"
8
-
9
- gemspec path: "../"