paul_revere 3.0.0 → 3.1.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: 9ee6e1c3fa88318afd174f7504c4acdd1b0ad77e4791f372d1829d447dbd4b06
4
- data.tar.gz: 6e5867d327c9c08020b28ceca4472ce2d8f39c5e9355453dd5e60c4ae72eceb5
3
+ metadata.gz: 567dd25a0d58438ee396473ede23fd423f65602f51b0a28fcf86b137b9985edd
4
+ data.tar.gz: 96b828b07d81221b8796a740892d565835817f83ddbab2ef2164c901b98bf1df
5
5
  SHA512:
6
- metadata.gz: 59d02e488c028616dfa774d167405aeff70ee2007f9ea283444c7d9a4578094a96f106c868c09941591d52be548feca09edbfd2d7532b8fae2aa345ec4a56c40
7
- data.tar.gz: cfa49adf66573873aa83e518818691958792a516635f78e58af81ffc061d0d8b143821f152419d805a6649fb02058fe30a7e063b7858c1553236a8280b11c619
6
+ metadata.gz: 7c166b3578d874bd710c1d4e64e631541788309b156e86c03429e6990f26c695f57d0befa89ffe316330514e60dc9ba361d082bebd680dd9f6df798578c1b182
7
+ data.tar.gz: d80ab67d1bd26f04d7cd5492a5c34ce1a2aeeba97ff6e05846378aaeba5af68c2d50d1d1ffa539cb3f8fb5c359ac60d0388d1a1cf82687f2fff6d67348247384
@@ -1,14 +1,23 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
- - 2.3.7
4
- - 2.4.4
5
- - 2.5.1
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
- sudo: false
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
- ["5.2.0", "5.1.0", "5.0.0"].each do |rails_version|
2
- appraise "rails_#{rails_version[0..2]}" do
3
- gem "rails", "~> #{rails_version}"
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
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased:
3
+ ## [3.1.0]
4
4
 
5
- ## 3.0.0:
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
@@ -1,157 +1,173 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paul_revere (3.0.0)
5
- rails (>= 5.0, < 6.0)
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 (5.2.0)
11
- actionpack (= 5.2.0)
10
+ actioncable (6.0.0)
11
+ actionpack (= 6.0.0)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailer (5.2.0)
15
- actionpack (= 5.2.0)
16
- actionview (= 5.2.0)
17
- activejob (= 5.2.0)
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 (5.2.0)
21
- actionview (= 5.2.0)
22
- activesupport (= 5.2.0)
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.2)
27
- actionview (5.2.0)
28
- activesupport (= 5.2.0)
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.0, >= 1.0.3)
33
- activejob (5.2.0)
34
- activesupport (= 5.2.0)
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 (5.2.0)
37
- activesupport (= 5.2.0)
38
- activerecord (5.2.0)
39
- activemodel (= 5.2.0)
40
- activesupport (= 5.2.0)
41
- arel (>= 9.0)
42
- activestorage (5.2.0)
43
- actionpack (= 5.2.0)
44
- activerecord (= 5.2.0)
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 (5.2.0)
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.0.5)
70
+ concurrent-ruby (1.1.5)
58
71
  crass (1.0.4)
59
72
  diff-lcs (1.3)
60
- erubi (1.7.1)
61
- factory_bot (4.8.2)
73
+ erubi (1.8.0)
74
+ factory_bot (4.11.1)
62
75
  activesupport (>= 3.0.0)
63
- factory_bot_rails (4.8.2)
64
- factory_bot (~> 4.8.2)
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.1)
82
+ globalid (0.4.2)
70
83
  activesupport (>= 4.2.0)
71
- i18n (1.0.1)
84
+ i18n (1.6.0)
72
85
  concurrent-ruby (~> 1.0)
73
- jasmine (3.1.0)
74
- jasmine-core (= 3.1.0)
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.1.0)
79
- loofah (2.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.0)
95
+ mail (2.7.1)
83
96
  mini_mime (>= 0.1.1)
84
- marcel (0.3.2)
97
+ marcel (0.3.3)
85
98
  mimemagic (~> 0.3.2)
86
- method_source (0.9.0)
87
- mimemagic (0.3.2)
88
- mini_mime (1.0.0)
89
- mini_portile2 (2.3.0)
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.3.0)
92
- nokogiri (1.8.2)
93
- mini_portile2 (~> 2.3.0)
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.5)
96
- rack-test (1.0.0)
108
+ rack (2.0.7)
109
+ rack-test (1.1.0)
97
110
  rack (>= 1.0, < 3)
98
- rails (5.2.0)
99
- actioncable (= 5.2.0)
100
- actionmailer (= 5.2.0)
101
- actionpack (= 5.2.0)
102
- actionview (= 5.2.0)
103
- activejob (= 5.2.0)
104
- activemodel (= 5.2.0)
105
- activerecord (= 5.2.0)
106
- activestorage (= 5.2.0)
107
- activesupport (= 5.2.0)
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 (= 5.2.0)
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.4)
129
+ rails-html-sanitizer (1.2.0)
115
130
  loofah (~> 2.2, >= 2.2.2)
116
- railties (5.2.0)
117
- actionpack (= 5.2.0)
118
- activesupport (= 5.2.0)
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.18.1, < 2.0)
122
- rake (12.3.1)
123
- rspec-core (3.7.1)
124
- rspec-support (~> 3.7.0)
125
- rspec-expectations (3.7.0)
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.7.0)
128
- rspec-mocks (3.7.0)
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.7.0)
131
- rspec-rails (3.7.2)
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.7.0)
136
- rspec-expectations (~> 3.7.0)
137
- rspec-mocks (~> 3.7.0)
138
- rspec-support (~> 3.7.0)
139
- rspec-support (3.7.1)
140
- sprockets (3.7.1)
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.3.13)
148
- thor (0.20.0)
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.0)
167
+ websocket-driver (0.7.1)
153
168
  websocket-extensions (>= 0.1.0)
154
- websocket-extensions (0.1.3)
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.16.1
185
+ 1.17.3
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 5.0.0"
6
+ gem "sqlite3", "~> 1.3.13"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 5.1.0"
6
+ gem "sqlite3", "~> 1.3.13"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 5.2.0"
6
+ gem "sqlite3", "~> 1.3.13"
6
7
 
7
8
  gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.0"
6
+ gem "sqlite3", "~> 1.4.0"
7
+
8
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module PaulRevere
2
- VERSION = "3.0.0".freeze
2
+ VERSION = "3.1.0".freeze
3
3
  end
@@ -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.0")
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
@@ -1,5 +1,5 @@
1
1
  FactoryBot.define do
2
2
  factory :announcement do
3
- body "Announcement"
3
+ body { "Announcement" }
4
4
  end
5
5
  end
@@ -4,15 +4,21 @@ ENV["RAILS_ENV"] = "test"
4
4
  require "spec_helper"
5
5
 
6
6
  require "rails/all"
7
- require "rspec/rails"
7
+ require "dummy/application"
8
8
 
9
- require "fake_app"
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
- require "factory_bot"
15
- require "factories"
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.0.0
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: 2018-04-30 00:00:00.000000000 Z
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.0'
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.0'
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
- rubyforge_project:
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
@@ -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 }