paul_revere 3.0.0 → 3.1.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 +13 -4
- data/Appraisals +16 -3
- data/CHANGELOG.md +23 -9
- data/Gemfile.lock +101 -85
- data/gemfiles/rails_5.0.gemfile +1 -0
- data/gemfiles/rails_5.1.gemfile +1 -0
- data/gemfiles/rails_5.2.gemfile +1 -0
- data/gemfiles/rails_6.0.gemfile +8 -0
- data/lib/paul_revere/version.rb +1 -1
- data/paul_revere.gemspec +1 -1
- data/spec/dummy/application.rb +23 -0
- data/spec/factories.rb +1 -1
- data/spec/rails_helper.rb +10 -4
- metadata +8 -8
- data/spec/fake_app.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 567dd25a0d58438ee396473ede23fd423f65602f51b0a28fcf86b137b9985edd
|
4
|
+
data.tar.gz: 96b828b07d81221b8796a740892d565835817f83ddbab2ef2164c901b98bf1df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c166b3578d874bd710c1d4e64e631541788309b156e86c03429e6990f26c695f57d0befa89ffe316330514e60dc9ba361d082bebd680dd9f6df798578c1b182
|
7
|
+
data.tar.gz: d80ab67d1bd26f04d7cd5492a5c34ce1a2aeeba97ff6e05846378aaeba5af68c2d50d1d1ffa539cb3f8fb5c359ac60d0388d1a1cf82687f2fff6d67348247384
|
data/.travis.yml
CHANGED
@@ -1,14 +1,23 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.
|
4
|
+
- 2.4.6
|
5
|
+
- 2.5.5
|
6
|
+
- 2.6.3
|
7
|
+
|
6
8
|
gemfile:
|
9
|
+
- gemfiles/rails_6.0.gemfile
|
7
10
|
- gemfiles/rails_5.2.gemfile
|
8
11
|
- gemfiles/rails_5.1.gemfile
|
9
12
|
- gemfiles/rails_5.0.gemfile
|
13
|
+
|
10
14
|
install:
|
11
15
|
- 'travis_retry bundle install'
|
16
|
+
|
12
17
|
notifications:
|
13
18
|
email: false
|
14
|
-
|
19
|
+
|
20
|
+
matrix:
|
21
|
+
allow_failures:
|
22
|
+
- gemfile: gemfiles/rails_6.0.gemfile
|
23
|
+
rvm: 2.4.6
|
data/Appraisals
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
rails_versions = %w(
|
2
|
+
5.0
|
3
|
+
5.1
|
4
|
+
5.2
|
5
|
+
6.0
|
6
|
+
)
|
7
|
+
|
8
|
+
rails_versions.each do |version|
|
9
|
+
appraise "rails_#{version}" do
|
10
|
+
gem "rails", "~> #{version}.0"
|
11
|
+
|
12
|
+
if Gem::Version.new(version) >= Gem::Version.new("6.0")
|
13
|
+
gem "sqlite3", "~> 1.4.0"
|
14
|
+
else
|
15
|
+
gem "sqlite3", "~> 1.3.13"
|
16
|
+
end
|
4
17
|
end
|
5
18
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## [3.1.0]
|
4
4
|
|
5
|
-
|
5
|
+
### Added
|
6
|
+
|
7
|
+
- Add support for Rails version 6.0.0
|
8
|
+
|
9
|
+
## [3.0.0]
|
6
10
|
|
7
11
|
### Added
|
8
12
|
|
@@ -13,7 +17,7 @@
|
|
13
17
|
- Drop explicit support for ruby versions under 2.3.x
|
14
18
|
- Drop support for Rails versions under 5.0.x
|
15
19
|
|
16
|
-
## 2.1.0
|
20
|
+
## [2.1.0]
|
17
21
|
|
18
22
|
### Added
|
19
23
|
|
@@ -24,7 +28,7 @@
|
|
24
28
|
- Drop explicit support for ruby versions under 2.1.0
|
25
29
|
- Drop support for Rails versions prior to 4.1.0
|
26
30
|
|
27
|
-
## 2.0.0
|
31
|
+
## [2.0.0]
|
28
32
|
|
29
33
|
### Added
|
30
34
|
|
@@ -37,7 +41,7 @@
|
|
37
41
|
- Clean up the README and installation instructions
|
38
42
|
- Rename helper methods and view partials
|
39
43
|
|
40
|
-
## 1.4
|
44
|
+
## [1.4]
|
41
45
|
|
42
46
|
### Removed
|
43
47
|
|
@@ -50,19 +54,19 @@
|
|
50
54
|
- Update migration to avoid Rails deprecation warning about timestamps `null :false`
|
51
55
|
- Use ISO 8601 format when creating the Announcement cookie name
|
52
56
|
|
53
|
-
## 1.3
|
57
|
+
## [1.3]
|
54
58
|
|
55
59
|
### Fixed
|
56
60
|
|
57
61
|
- Fix for ActiveRecord migration/generator error on Rails 4+.
|
58
62
|
|
59
|
-
## 1.2
|
63
|
+
## [1.2]
|
60
64
|
|
61
65
|
### Added
|
62
66
|
|
63
67
|
- Rails 4 support.
|
64
68
|
|
65
|
-
## 1.1
|
69
|
+
## [1.1]
|
66
70
|
|
67
71
|
### Added
|
68
72
|
|
@@ -70,7 +74,7 @@
|
|
70
74
|
- More clear installation instructions for both newer and older Rails.
|
71
75
|
- The Announcement body is attr_accessible.
|
72
76
|
|
73
|
-
## 1.0
|
77
|
+
## [1.0]
|
74
78
|
|
75
79
|
### Added
|
76
80
|
|
@@ -80,3 +84,13 @@
|
|
80
84
|
### Fixed
|
81
85
|
|
82
86
|
- Fix the JavaScript that hides the announcements to work out of the box.
|
87
|
+
|
88
|
+
[3.1.0]: https://github.com/thoughtbot/paul_revere/compare/v3.0.0...v3.1.0
|
89
|
+
[3.0.0]: https://github.com/thoughtbot/paul_revere/compare/v2.1.0...v3.0.0
|
90
|
+
[2.1.0]: https://github.com/thoughtbot/paul_revere/compare/v2.0.0...v2.1.0
|
91
|
+
[2.0.0]: https://github.com/thoughtbot/paul_revere/compare/v1.4...v2.0.0
|
92
|
+
[1.4]: https://github.com/thoughtbot/paul_revere/compare/v1.3...v1.4
|
93
|
+
[1.3]: https://github.com/thoughtbot/paul_revere/compare/v1.2...v1.3
|
94
|
+
[1.2]: https://github.com/thoughtbot/paul_revere/compare/v1.1...v1.2
|
95
|
+
[1.1]: https://github.com/thoughtbot/paul_revere/compare/v1.0...v1.1
|
96
|
+
[1.0]: https://github.com/thoughtbot/paul_revere/compare/v0.2.1...v1.0
|
data/Gemfile.lock
CHANGED
@@ -1,157 +1,173 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
paul_revere (3.
|
5
|
-
rails (>= 5.0, < 6.
|
4
|
+
paul_revere (3.1.0)
|
5
|
+
rails (>= 5.0, < 6.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (
|
11
|
-
actionpack (=
|
10
|
+
actioncable (6.0.0)
|
11
|
+
actionpack (= 6.0.0)
|
12
12
|
nio4r (~> 2.0)
|
13
13
|
websocket-driver (>= 0.6.1)
|
14
|
-
|
15
|
-
actionpack (=
|
16
|
-
|
17
|
-
|
14
|
+
actionmailbox (6.0.0)
|
15
|
+
actionpack (= 6.0.0)
|
16
|
+
activejob (= 6.0.0)
|
17
|
+
activerecord (= 6.0.0)
|
18
|
+
activestorage (= 6.0.0)
|
19
|
+
activesupport (= 6.0.0)
|
20
|
+
mail (>= 2.7.1)
|
21
|
+
actionmailer (6.0.0)
|
22
|
+
actionpack (= 6.0.0)
|
23
|
+
actionview (= 6.0.0)
|
24
|
+
activejob (= 6.0.0)
|
18
25
|
mail (~> 2.5, >= 2.5.4)
|
19
26
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (
|
21
|
-
actionview (=
|
22
|
-
activesupport (=
|
27
|
+
actionpack (6.0.0)
|
28
|
+
actionview (= 6.0.0)
|
29
|
+
activesupport (= 6.0.0)
|
23
30
|
rack (~> 2.0)
|
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.0)
|
35
|
+
actionpack (= 6.0.0)
|
36
|
+
activerecord (= 6.0.0)
|
37
|
+
activestorage (= 6.0.0)
|
38
|
+
activesupport (= 6.0.0)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
actionview (6.0.0)
|
41
|
+
activesupport (= 6.0.0)
|
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.0)
|
47
|
+
activesupport (= 6.0.0)
|
35
48
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (
|
37
|
-
activesupport (=
|
38
|
-
activerecord (
|
39
|
-
activemodel (=
|
40
|
-
activesupport (=
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
activerecord (=
|
49
|
+
activemodel (6.0.0)
|
50
|
+
activesupport (= 6.0.0)
|
51
|
+
activerecord (6.0.0)
|
52
|
+
activemodel (= 6.0.0)
|
53
|
+
activesupport (= 6.0.0)
|
54
|
+
activestorage (6.0.0)
|
55
|
+
actionpack (= 6.0.0)
|
56
|
+
activejob (= 6.0.0)
|
57
|
+
activerecord (= 6.0.0)
|
45
58
|
marcel (~> 0.3.1)
|
46
|
-
activesupport (
|
59
|
+
activesupport (6.0.0)
|
47
60
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
48
61
|
i18n (>= 0.7, < 2)
|
49
62
|
minitest (~> 5.1)
|
50
63
|
tzinfo (~> 1.1)
|
64
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
51
65
|
appraisal (2.2.0)
|
52
66
|
bundler
|
53
67
|
rake
|
54
68
|
thor (>= 0.14.0)
|
55
|
-
arel (9.0.0)
|
56
69
|
builder (3.2.3)
|
57
|
-
concurrent-ruby (1.
|
70
|
+
concurrent-ruby (1.1.5)
|
58
71
|
crass (1.0.4)
|
59
72
|
diff-lcs (1.3)
|
60
|
-
erubi (1.
|
61
|
-
factory_bot (4.
|
73
|
+
erubi (1.8.0)
|
74
|
+
factory_bot (4.11.1)
|
62
75
|
activesupport (>= 3.0.0)
|
63
|
-
factory_bot_rails (4.
|
64
|
-
factory_bot (~> 4.
|
76
|
+
factory_bot_rails (4.11.1)
|
77
|
+
factory_bot (~> 4.11.1)
|
65
78
|
railties (>= 3.0.0)
|
66
79
|
generator_spec (0.9.4)
|
67
80
|
activesupport (>= 3.0.0)
|
68
81
|
railties (>= 3.0.0)
|
69
|
-
globalid (0.4.
|
82
|
+
globalid (0.4.2)
|
70
83
|
activesupport (>= 4.2.0)
|
71
|
-
i18n (1.0
|
84
|
+
i18n (1.6.0)
|
72
85
|
concurrent-ruby (~> 1.0)
|
73
|
-
jasmine (3.
|
74
|
-
jasmine-core (
|
86
|
+
jasmine (3.4.0)
|
87
|
+
jasmine-core (~> 3.4.0)
|
75
88
|
phantomjs
|
76
89
|
rack (>= 1.2.1)
|
77
90
|
rake
|
78
|
-
jasmine-core (3.
|
79
|
-
loofah (2.2.
|
91
|
+
jasmine-core (3.4.0)
|
92
|
+
loofah (2.2.3)
|
80
93
|
crass (~> 1.0.2)
|
81
94
|
nokogiri (>= 1.5.9)
|
82
|
-
mail (2.7.
|
95
|
+
mail (2.7.1)
|
83
96
|
mini_mime (>= 0.1.1)
|
84
|
-
marcel (0.3.
|
97
|
+
marcel (0.3.3)
|
85
98
|
mimemagic (~> 0.3.2)
|
86
|
-
method_source (0.9.
|
87
|
-
mimemagic (0.3.
|
88
|
-
mini_mime (1.0.
|
89
|
-
mini_portile2 (2.
|
99
|
+
method_source (0.9.2)
|
100
|
+
mimemagic (0.3.3)
|
101
|
+
mini_mime (1.0.2)
|
102
|
+
mini_portile2 (2.4.0)
|
90
103
|
minitest (5.11.3)
|
91
|
-
nio4r (2.
|
92
|
-
nokogiri (1.
|
93
|
-
mini_portile2 (~> 2.
|
104
|
+
nio4r (2.5.1)
|
105
|
+
nokogiri (1.10.4)
|
106
|
+
mini_portile2 (~> 2.4.0)
|
94
107
|
phantomjs (2.1.1.0)
|
95
|
-
rack (2.0.
|
96
|
-
rack-test (1.
|
108
|
+
rack (2.0.7)
|
109
|
+
rack-test (1.1.0)
|
97
110
|
rack (>= 1.0, < 3)
|
98
|
-
rails (
|
99
|
-
actioncable (=
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
111
|
+
rails (6.0.0)
|
112
|
+
actioncable (= 6.0.0)
|
113
|
+
actionmailbox (= 6.0.0)
|
114
|
+
actionmailer (= 6.0.0)
|
115
|
+
actionpack (= 6.0.0)
|
116
|
+
actiontext (= 6.0.0)
|
117
|
+
actionview (= 6.0.0)
|
118
|
+
activejob (= 6.0.0)
|
119
|
+
activemodel (= 6.0.0)
|
120
|
+
activerecord (= 6.0.0)
|
121
|
+
activestorage (= 6.0.0)
|
122
|
+
activesupport (= 6.0.0)
|
108
123
|
bundler (>= 1.3.0)
|
109
|
-
railties (=
|
124
|
+
railties (= 6.0.0)
|
110
125
|
sprockets-rails (>= 2.0.0)
|
111
126
|
rails-dom-testing (2.0.3)
|
112
127
|
activesupport (>= 4.2.0)
|
113
128
|
nokogiri (>= 1.6)
|
114
|
-
rails-html-sanitizer (1.0
|
129
|
+
rails-html-sanitizer (1.2.0)
|
115
130
|
loofah (~> 2.2, >= 2.2.2)
|
116
|
-
railties (
|
117
|
-
actionpack (=
|
118
|
-
activesupport (=
|
131
|
+
railties (6.0.0)
|
132
|
+
actionpack (= 6.0.0)
|
133
|
+
activesupport (= 6.0.0)
|
119
134
|
method_source
|
120
135
|
rake (>= 0.8.7)
|
121
|
-
thor (>= 0.
|
122
|
-
rake (12.3.
|
123
|
-
rspec-core (3.
|
124
|
-
rspec-support (~> 3.
|
125
|
-
rspec-expectations (3.
|
136
|
+
thor (>= 0.20.3, < 2.0)
|
137
|
+
rake (12.3.3)
|
138
|
+
rspec-core (3.8.2)
|
139
|
+
rspec-support (~> 3.8.0)
|
140
|
+
rspec-expectations (3.8.4)
|
126
141
|
diff-lcs (>= 1.2.0, < 2.0)
|
127
|
-
rspec-support (~> 3.
|
128
|
-
rspec-mocks (3.
|
142
|
+
rspec-support (~> 3.8.0)
|
143
|
+
rspec-mocks (3.8.1)
|
129
144
|
diff-lcs (>= 1.2.0, < 2.0)
|
130
|
-
rspec-support (~> 3.
|
131
|
-
rspec-rails (3.
|
145
|
+
rspec-support (~> 3.8.0)
|
146
|
+
rspec-rails (3.8.2)
|
132
147
|
actionpack (>= 3.0)
|
133
148
|
activesupport (>= 3.0)
|
134
149
|
railties (>= 3.0)
|
135
|
-
rspec-core (~> 3.
|
136
|
-
rspec-expectations (~> 3.
|
137
|
-
rspec-mocks (~> 3.
|
138
|
-
rspec-support (~> 3.
|
139
|
-
rspec-support (3.
|
140
|
-
sprockets (3.7.
|
150
|
+
rspec-core (~> 3.8.0)
|
151
|
+
rspec-expectations (~> 3.8.0)
|
152
|
+
rspec-mocks (~> 3.8.0)
|
153
|
+
rspec-support (~> 3.8.0)
|
154
|
+
rspec-support (3.8.2)
|
155
|
+
sprockets (3.7.2)
|
141
156
|
concurrent-ruby (~> 1.0)
|
142
157
|
rack (> 1, < 3)
|
143
158
|
sprockets-rails (3.2.1)
|
144
159
|
actionpack (>= 4.0)
|
145
160
|
activesupport (>= 4.0)
|
146
161
|
sprockets (>= 3.0.0)
|
147
|
-
sqlite3 (1.
|
148
|
-
thor (0.20.
|
162
|
+
sqlite3 (1.4.1)
|
163
|
+
thor (0.20.3)
|
149
164
|
thread_safe (0.3.6)
|
150
165
|
tzinfo (1.2.5)
|
151
166
|
thread_safe (~> 0.1)
|
152
|
-
websocket-driver (0.7.
|
167
|
+
websocket-driver (0.7.1)
|
153
168
|
websocket-extensions (>= 0.1.0)
|
154
|
-
websocket-extensions (0.1.
|
169
|
+
websocket-extensions (0.1.4)
|
170
|
+
zeitwerk (2.1.9)
|
155
171
|
|
156
172
|
PLATFORMS
|
157
173
|
ruby
|
@@ -166,4 +182,4 @@ DEPENDENCIES
|
|
166
182
|
sqlite3 (~> 1.3)
|
167
183
|
|
168
184
|
BUNDLED WITH
|
169
|
-
1.
|
185
|
+
1.17.3
|
data/gemfiles/rails_5.0.gemfile
CHANGED
data/gemfiles/rails_5.1.gemfile
CHANGED
data/gemfiles/rails_5.2.gemfile
CHANGED
data/lib/paul_revere/version.rb
CHANGED
data/paul_revere.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
33
33
|
s.require_paths = ["lib"]
|
34
34
|
|
35
|
-
s.add_dependency("rails", ">= 5.0", "< 6.
|
35
|
+
s.add_dependency("rails", ">= 5.0", "< 6.1")
|
36
36
|
|
37
37
|
s.add_development_dependency("appraisal", "~> 2.1")
|
38
38
|
s.add_development_dependency("factory_bot_rails", "~> 4.8")
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Used by specs
|
2
|
+
module ApplicationHelper
|
3
|
+
def current_user; raise; end
|
4
|
+
end
|
5
|
+
|
6
|
+
# Used by specs
|
7
|
+
class User; end
|
8
|
+
|
9
|
+
# Minimal Rails application for specs
|
10
|
+
module Dummy
|
11
|
+
class Application < Rails::Application
|
12
|
+
config.secret_key_base = "test"
|
13
|
+
config.paths["config/database"] = ["spec/support/database.yml"]
|
14
|
+
config.cache_classes = true
|
15
|
+
config.eager_load = false
|
16
|
+
|
17
|
+
if config.active_record.sqlite3.respond_to?(:represent_boolean_as_integer)
|
18
|
+
if Rails.gem_version < Gem::Version.new("6.0")
|
19
|
+
config.active_record.sqlite3.represent_boolean_as_integer = true
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/spec/factories.rb
CHANGED
data/spec/rails_helper.rb
CHANGED
@@ -4,15 +4,21 @@ ENV["RAILS_ENV"] = "test"
|
|
4
4
|
require "spec_helper"
|
5
5
|
|
6
6
|
require "rails/all"
|
7
|
-
require "
|
7
|
+
require "dummy/application"
|
8
8
|
|
9
|
-
require "
|
9
|
+
require "rspec/rails"
|
10
|
+
require "factory_bot"
|
11
|
+
require "factories"
|
10
12
|
|
11
13
|
# Load support files
|
12
14
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
+
# Initialize fake app
|
17
|
+
Dummy::Application.initialize!
|
18
|
+
|
19
|
+
# Run migrations
|
20
|
+
require_relative "../lib/generators/paul_revere/templates/migration"
|
21
|
+
CreateAnnouncements.suppress_messages { CreateAnnouncements.new.change }
|
16
22
|
|
17
23
|
RSpec.configure do |config|
|
18
24
|
config.include FactoryBot::Syntax::Methods
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paul_revere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Jankowski
|
@@ -21,7 +21,7 @@ authors:
|
|
21
21
|
autorequire:
|
22
22
|
bindir: bin
|
23
23
|
cert_chain: []
|
24
|
-
date:
|
24
|
+
date: 2019-09-03 00:00:00.000000000 Z
|
25
25
|
dependencies:
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rails
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '5.0'
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '6.
|
35
|
+
version: '6.1'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
version: '5.0'
|
43
43
|
- - "<"
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: '6.
|
45
|
+
version: '6.1'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: appraisal
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,14 +152,15 @@ files:
|
|
152
152
|
- gemfiles/rails_5.0.gemfile
|
153
153
|
- gemfiles/rails_5.1.gemfile
|
154
154
|
- gemfiles/rails_5.2.gemfile
|
155
|
+
- gemfiles/rails_6.0.gemfile
|
155
156
|
- lib/generators/paul_revere/paul_revere_generator.rb
|
156
157
|
- lib/generators/paul_revere/templates/migration.rb
|
157
158
|
- lib/generators/paul_revere/views_generator.rb
|
158
159
|
- lib/paul_revere.rb
|
159
160
|
- lib/paul_revere/version.rb
|
160
161
|
- paul_revere.gemspec
|
162
|
+
- spec/dummy/application.rb
|
161
163
|
- spec/factories.rb
|
162
|
-
- spec/fake_app.rb
|
163
164
|
- spec/helpers/announcements_helper_spec.rb
|
164
165
|
- spec/javascripts/announcements_spec.js
|
165
166
|
- spec/javascripts/helpers/.gitkeep
|
@@ -193,15 +194,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
194
|
- !ruby/object:Gem::Version
|
194
195
|
version: '0'
|
195
196
|
requirements: []
|
196
|
-
|
197
|
-
rubygems_version: 2.7.6
|
197
|
+
rubygems_version: 3.0.3
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Simple announcement plugin to include `one off` style announcements in Rails
|
201
201
|
web apps.
|
202
202
|
test_files:
|
203
|
+
- spec/dummy/application.rb
|
203
204
|
- spec/factories.rb
|
204
|
-
- spec/fake_app.rb
|
205
205
|
- spec/helpers/announcements_helper_spec.rb
|
206
206
|
- spec/javascripts/announcements_spec.js
|
207
207
|
- spec/javascripts/helpers/.gitkeep
|
data/spec/fake_app.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Classes required for the tests
|
2
|
-
class User; end
|
3
|
-
module ApplicationHelper; def current_user; raise; end; end
|
4
|
-
|
5
|
-
# Create a rails app
|
6
|
-
module PaulRevere
|
7
|
-
class Application < Rails::Application
|
8
|
-
config.secret_key_base = "test"
|
9
|
-
config.paths["config/database"] = ["spec/support/database.yml"]
|
10
|
-
config.eager_load = false
|
11
|
-
if Rails.gem_version >= Gem::Version.new("5.2")
|
12
|
-
config.active_record.sqlite3.represent_boolean_as_integer = true
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
PaulRevere::Application.initialize!
|
17
|
-
|
18
|
-
# Run migrations
|
19
|
-
require_relative "../lib/generators/paul_revere/templates/migration"
|
20
|
-
CreateAnnouncements.suppress_messages { CreateAnnouncements.new.change }
|