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 +4 -4
- data/.rubocop.yml +10 -17
- data/.travis.yml +45 -42
- data/.yamllint +7 -0
- data/Appraisals +4 -10
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +123 -105
- data/README.md +3 -2
- data/config/locales/en.yml +2 -0
- data/config/routes.rb +6 -2
- data/gemfiles/{rails5.0.gemfile → rails6.0.gemfile} +2 -2
- data/lib/rapporteur/checks/active_record_check.rb +1 -1
- data/lib/rapporteur/message_list.rb +6 -5
- data/lib/rapporteur/revision.rb +1 -1
- data/lib/rapporteur/rspec.rb +3 -3
- data/lib/rapporteur/rspec3.rb +3 -3
- data/lib/rapporteur/version.rb +1 -1
- data/rapporteur.gemspec +8 -10
- metadata +14 -15
- data/gemfiles/rails5.1.gemfile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3db69d5d73dbfafab08c22edd81d3820e56fed93d28432b53fa7be3887cc406c
|
4
|
+
data.tar.gz: 0aa510c74dafa83f2134ffe676f2890ae3f86c94952511d201a65704fabcadbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af872ea5073a9cb0f80d915e73ba6f36dd5d68acc9c143717a1f7f3d259d974b79852060850e84398c9bfb67e306de97b95702bae0501244974a2b0f54ff66eb
|
7
|
+
data.tar.gz: 713bd749716b99c5d1a9eeb53bba570564acffc6b7933adf7006b2f6c20d5671925aeb1be7b8efc6099749d6c5db49942a352a8164878335d2556bcb3f887de0
|
data/.rubocop.yml
CHANGED
@@ -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
|
-
|
12
|
-
|
15
|
+
EnforcedStyle: "end"
|
16
|
+
|
17
|
+
Layout/EmptyLinesAroundAccessModifier:
|
18
|
+
EnforcedStyle: "around"
|
13
19
|
|
14
20
|
Layout/EndOfLine:
|
15
21
|
EnforcedStyle: "lf"
|
16
22
|
|
17
|
-
Layout/
|
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"
|
data/.travis.yml
CHANGED
@@ -1,55 +1,58 @@
|
|
1
|
+
---
|
2
|
+
|
1
3
|
before_install:
|
2
|
-
- gem install bundler -v 2.
|
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
|
-
-
|
14
|
-
|
15
|
-
rvm: 2.6.2
|
17
|
+
- rvm: "2.7.0"
|
18
|
+
stage: "Test"
|
16
19
|
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
-
|
21
|
-
rvm: 2.
|
22
|
-
-
|
23
|
-
rvm: 2.
|
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
|
-
-
|
26
|
-
|
27
|
-
|
28
|
-
-
|
29
|
-
rvm: 2.
|
30
|
-
-
|
31
|
-
rvm: 2.
|
32
|
-
-
|
33
|
-
rvm: 2.
|
34
|
-
-
|
35
|
-
rvm: 2.
|
36
|
-
-
|
37
|
-
rvm: 2.
|
38
|
-
-
|
39
|
-
rvm: 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
|
-
-
|
46
|
-
|
47
|
-
|
48
|
-
-
|
49
|
-
rvm: 2.
|
50
|
-
-
|
51
|
-
rvm: 2.
|
52
|
-
|
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
|
-
|
56
|
+
script:
|
57
|
+
- "bundle exec rubocop -fs"
|
58
|
+
- "bundle exec rake"
|
data/.yamllint
ADDED
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
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
[
|
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
|
data/Gemfile.lock
CHANGED
@@ -1,82 +1,94 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rapporteur (3.
|
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 (
|
11
|
-
actionpack (=
|
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
|
-
|
15
|
-
actionpack (=
|
16
|
-
|
17
|
-
|
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 (
|
21
|
-
actionview (=
|
22
|
-
activesupport (=
|
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
|
27
|
-
|
28
|
-
|
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.
|
33
|
-
activejob (
|
34
|
-
activesupport (=
|
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 (
|
37
|
-
activesupport (=
|
38
|
-
activerecord (
|
39
|
-
activemodel (=
|
40
|
-
activesupport (=
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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 (
|
48
|
-
actionpack (=
|
49
|
-
|
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 (
|
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.
|
63
|
-
combustion (1.1.
|
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.
|
81
|
+
crass (1.0.5)
|
69
82
|
diff-lcs (1.3)
|
70
|
-
erubi (1.
|
83
|
+
erubi (1.9.0)
|
71
84
|
globalid (0.4.2)
|
72
85
|
activesupport (>= 4.2.0)
|
73
|
-
i18n (1.
|
86
|
+
i18n (1.7.0)
|
74
87
|
concurrent-ruby (~> 1.0)
|
75
|
-
|
76
|
-
jaro_winkler (1.5.
|
77
|
-
|
78
|
-
|
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.
|
100
|
+
mini_mime (1.0.2)
|
89
101
|
mini_portile2 (2.4.0)
|
90
|
-
minitest (5.
|
91
|
-
nio4r (2.
|
92
|
-
nio4r (2.
|
93
|
-
nokogiri (1.10.
|
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.
|
96
|
-
parallel (1.
|
97
|
-
parser (2.
|
107
|
+
nokogiri (1.10.7-java)
|
108
|
+
parallel (1.19.1)
|
109
|
+
parser (2.7.0.1)
|
98
110
|
ast (~> 2.4.0)
|
99
|
-
|
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 (
|
106
|
-
actioncable (=
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
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 (=
|
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
|
122
|
-
loofah (~> 2.
|
123
|
-
railties (
|
124
|
-
actionpack (=
|
125
|
-
activesupport (=
|
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.
|
139
|
+
thor (>= 0.20.3, < 2.0)
|
129
140
|
rainbow (3.0.0)
|
130
|
-
rake (
|
131
|
-
rspec-collection_matchers (1.
|
141
|
+
rake (13.0.1)
|
142
|
+
rspec-collection_matchers (1.2.0)
|
132
143
|
rspec-expectations (>= 2.99.0.beta1)
|
133
|
-
rspec-core (3.
|
134
|
-
rspec-support (~> 3.
|
135
|
-
rspec-expectations (3.
|
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.
|
138
|
-
rspec-mocks (3.
|
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.
|
141
|
-
rspec-rails (3.
|
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.
|
146
|
-
rspec-expectations (~> 3.
|
147
|
-
rspec-mocks (~> 3.
|
148
|
-
rspec-support (~> 3.
|
149
|
-
rspec-support (3.
|
150
|
-
rubocop (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.
|
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.
|
158
|
-
rubocop-
|
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.
|
161
|
-
|
162
|
-
|
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.
|
170
|
-
thor (0.
|
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.
|
190
|
+
tzinfo (1.2.6)
|
174
191
|
thread_safe (~> 0.1)
|
175
|
-
unicode-display_width (1.
|
176
|
-
websocket-driver (0.7.
|
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.
|
195
|
+
websocket-driver (0.7.1-java)
|
179
196
|
websocket-extensions (>= 0.1.0)
|
180
|
-
websocket-extensions (0.1.
|
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, <
|
192
|
-
rake (~>
|
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.
|
197
|
-
rubocop-rails_config (~> 0.
|
214
|
+
rubocop (~> 0.78.0)
|
215
|
+
rubocop-rails_config (~> 0.9.0)
|
198
216
|
sqlite3
|
199
217
|
|
200
218
|
BUNDLED WITH
|
201
|
-
2.
|
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
|
60
|
-
* Rails
|
60
|
+
* Rails 6.0.
|
61
|
+
* Rails 5.2.
|
61
62
|
* Sinatra 2.x.
|
62
63
|
* Sinatra 1.x.
|
63
64
|
|
data/config/routes.rb
CHANGED
@@ -4,8 +4,12 @@ Rapporteur::Engine.routes.draw do
|
|
4
4
|
get '/(.:format)', to: 'statuses#show', as: :status
|
5
5
|
end
|
6
6
|
|
7
|
-
|
8
|
-
|
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
|
@@ -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
|
79
|
-
attribute_messages.
|
80
|
-
|
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,
|
113
|
-
|
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)
|
data/lib/rapporteur/revision.rb
CHANGED
data/lib/rapporteur/rspec.rb
CHANGED
@@ -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.
|
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.
|
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.
|
80
|
+
@body.has_key?(name) && @body.fetch(name).match(message)
|
81
81
|
end
|
82
82
|
|
83
83
|
failure_message_for_should do |_actual|
|
data/lib/rapporteur/rspec3.rb
CHANGED
@@ -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.
|
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.
|
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.
|
77
|
+
@body.has_key?(name) && @body.fetch(name).match(message)
|
78
78
|
end
|
79
79
|
|
80
80
|
failure_message do |_actual|
|
data/lib/rapporteur/version.rb
CHANGED
data/rapporteur.gemspec
CHANGED
@@ -1,24 +1,22 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
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'
|
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
|
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', '<
|
34
|
-
spec.add_development_dependency 'rake', '~>
|
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.
|
38
|
-
spec.add_development_dependency 'rubocop-rails_config', '~> 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.
|
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:
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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.
|
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.
|
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.
|
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:
|
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.
|
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.
|
data/gemfiles/rails5.1.gemfile
DELETED