paul_revere 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -6
- data/Appraisals +1 -1
- data/Gemfile.lock +68 -48
- data/NEWS.md +8 -0
- data/README.md +1 -1
- data/app/models/announcement.rb +0 -4
- data/app/views/announcements/_announcement_for_all.html.erb +1 -1
- data/gemfiles/{rails_3.0.gemfile → rails_4.0.0.gemfile} +1 -1
- data/gemfiles/{rails_3.1.gemfile → rails_4.1.0.gemfile} +1 -1
- data/gemfiles/{rails_3.2.gemfile → rails_4.2.0.gemfile} +1 -1
- data/lib/generators/paul_revere/paul_revere_generator.rb +1 -1
- data/lib/generators/paul_revere/templates/migration.rb +1 -1
- data/lib/paul_revere/version.rb +1 -1
- data/paul_revere.gemspec +6 -6
- data/spec/fake_app.rb +5 -15
- data/spec/helpers/announcements_helper_spec.rb +0 -3
- data/spec/lib/generators/paul_revere/paul_revere_generator_spec.rb +0 -9
- data/spec/models/announcement_spec.rb +0 -2
- data/spec/rails_helper.rb +1 -0
- data/spec/support/database.yml +3 -0
- data/spec/views/announcements/_announcement.html.erb_spec.rb +29 -0
- data/spec/views/announcements/_announcement_for_all.html.erb_spec.rb +26 -0
- data/spec/views/announcements/_email_announcement.erb_spec.rb +10 -0
- metadata +36 -43
- data/gemfiles/rails_4.0.gemfile +0 -7
- data/gemfiles/rails_4.1.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 355afacefa6cf9309f77b784430797fa11dcf8d3
|
4
|
+
data.tar.gz: 0b6bf869f4f2004f70dea0e5a708ae2f5878848f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6801cbf8cecdb895ff0364d6bd82eb9a97a4c3dec237f4c6eaf8a102768c67e7f3dac968933a42c3480bceba8d757ab2aafc895f40349cff0647dff065852119
|
7
|
+
data.tar.gz: 71100c4a13c779ad10c0a6bffdf022a12ed6d7be502483f26857077cd7b6de1ea289f4b03d3c5ac168f1af9fe09292d17c17d4921449e394236608f506a09ef7
|
data/.travis.yml
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.3
|
4
3
|
- 2.0.0
|
5
4
|
- 2.1.5
|
5
|
+
- 2.2.0
|
6
6
|
gemfile:
|
7
|
-
- gemfiles/rails_4.
|
8
|
-
- gemfiles/rails_4.0.gemfile
|
9
|
-
- gemfiles/
|
10
|
-
|
11
|
-
|
7
|
+
- gemfiles/rails_4.2.0.gemfile
|
8
|
+
- gemfiles/rails_4.1.0.gemfile
|
9
|
+
- gemfiles/rails_4.0.0.gemfile
|
10
|
+
notifications:
|
11
|
+
email: false
|
12
|
+
sudo: false
|
data/Appraisals
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,80 +1,101 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
paul_revere (1.
|
5
|
-
rails (
|
4
|
+
paul_revere (1.4)
|
5
|
+
rails (~> 4.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (4.
|
11
|
-
actionpack (= 4.
|
12
|
-
actionview (= 4.
|
10
|
+
actionmailer (4.2.0)
|
11
|
+
actionpack (= 4.2.0)
|
12
|
+
actionview (= 4.2.0)
|
13
|
+
activejob (= 4.2.0)
|
13
14
|
mail (~> 2.5, >= 2.5.4)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
+
actionpack (4.2.0)
|
17
|
+
actionview (= 4.2.0)
|
18
|
+
activesupport (= 4.2.0)
|
19
|
+
rack (~> 1.6.0)
|
18
20
|
rack-test (~> 0.6.2)
|
19
|
-
|
20
|
-
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
23
|
+
actionview (4.2.0)
|
24
|
+
activesupport (= 4.2.0)
|
21
25
|
builder (~> 3.1)
|
22
26
|
erubis (~> 2.7.0)
|
23
|
-
|
24
|
-
|
27
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
29
|
+
activejob (4.2.0)
|
30
|
+
activesupport (= 4.2.0)
|
31
|
+
globalid (>= 0.3.0)
|
32
|
+
activemodel (4.2.0)
|
33
|
+
activesupport (= 4.2.0)
|
25
34
|
builder (~> 3.1)
|
26
|
-
activerecord (4.
|
27
|
-
activemodel (= 4.
|
28
|
-
activesupport (= 4.
|
29
|
-
arel (~>
|
30
|
-
activesupport (4.
|
31
|
-
i18n (~> 0.
|
35
|
+
activerecord (4.2.0)
|
36
|
+
activemodel (= 4.2.0)
|
37
|
+
activesupport (= 4.2.0)
|
38
|
+
arel (~> 6.0)
|
39
|
+
activesupport (4.2.0)
|
40
|
+
i18n (~> 0.7)
|
32
41
|
json (~> 1.7, >= 1.7.7)
|
33
42
|
minitest (~> 5.1)
|
34
|
-
thread_safe (~> 0.
|
43
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
35
44
|
tzinfo (~> 1.1)
|
36
45
|
appraisal (1.0.2)
|
37
46
|
bundler
|
38
47
|
rake
|
39
48
|
thor (>= 0.14.0)
|
40
|
-
arel (
|
49
|
+
arel (6.0.0)
|
41
50
|
builder (3.2.2)
|
42
51
|
diff-lcs (1.2.5)
|
43
52
|
erubis (2.7.0)
|
44
53
|
generator_spec (0.9.3)
|
45
54
|
activesupport (>= 3.0.0)
|
46
55
|
railties (>= 3.0.0)
|
56
|
+
globalid (0.3.3)
|
57
|
+
activesupport (>= 4.1.0)
|
47
58
|
hike (1.2.3)
|
48
|
-
i18n (0.
|
49
|
-
json (1.8.
|
59
|
+
i18n (0.7.0)
|
60
|
+
json (1.8.2)
|
61
|
+
loofah (2.0.1)
|
62
|
+
nokogiri (>= 1.5.9)
|
50
63
|
mail (2.6.3)
|
51
64
|
mime-types (>= 1.16, < 3)
|
52
65
|
mime-types (2.4.3)
|
53
|
-
|
66
|
+
mini_portile (0.6.2)
|
67
|
+
minitest (5.5.1)
|
54
68
|
multi_json (1.10.1)
|
55
|
-
|
56
|
-
|
69
|
+
nokogiri (1.6.6.2)
|
70
|
+
mini_portile (~> 0.6.0)
|
71
|
+
rack (1.6.0)
|
72
|
+
rack-test (0.6.3)
|
57
73
|
rack (>= 1.0)
|
58
|
-
rails (4.
|
59
|
-
actionmailer (= 4.
|
60
|
-
actionpack (= 4.
|
61
|
-
actionview (= 4.
|
62
|
-
|
63
|
-
|
64
|
-
|
74
|
+
rails (4.2.0)
|
75
|
+
actionmailer (= 4.2.0)
|
76
|
+
actionpack (= 4.2.0)
|
77
|
+
actionview (= 4.2.0)
|
78
|
+
activejob (= 4.2.0)
|
79
|
+
activemodel (= 4.2.0)
|
80
|
+
activerecord (= 4.2.0)
|
81
|
+
activesupport (= 4.2.0)
|
65
82
|
bundler (>= 1.3.0, < 2.0)
|
66
|
-
railties (= 4.
|
67
|
-
sprockets-rails
|
68
|
-
|
69
|
-
|
70
|
-
|
83
|
+
railties (= 4.2.0)
|
84
|
+
sprockets-rails
|
85
|
+
rails-deprecated_sanitizer (1.0.3)
|
86
|
+
activesupport (>= 4.2.0.alpha)
|
87
|
+
rails-dom-testing (1.0.5)
|
88
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
89
|
+
nokogiri (~> 1.6.0)
|
90
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
91
|
+
rails-html-sanitizer (1.0.1)
|
92
|
+
loofah (~> 2.0)
|
93
|
+
railties (4.2.0)
|
94
|
+
actionpack (= 4.2.0)
|
95
|
+
activesupport (= 4.2.0)
|
71
96
|
rake (>= 0.8.7)
|
72
97
|
thor (>= 0.18.1, < 2.0)
|
73
98
|
rake (10.4.2)
|
74
|
-
rspec (3.1.0)
|
75
|
-
rspec-core (~> 3.1.0)
|
76
|
-
rspec-expectations (~> 3.1.0)
|
77
|
-
rspec-mocks (~> 3.1.0)
|
78
99
|
rspec-core (3.1.7)
|
79
100
|
rspec-support (~> 3.1.0)
|
80
101
|
rspec-expectations (3.1.2)
|
@@ -96,7 +117,7 @@ GEM
|
|
96
117
|
multi_json (~> 1.0)
|
97
118
|
rack (~> 1.0)
|
98
119
|
tilt (~> 1.1, != 1.3.0)
|
99
|
-
sprockets-rails (2.2.
|
120
|
+
sprockets-rails (2.2.4)
|
100
121
|
actionpack (>= 3.0)
|
101
122
|
activesupport (>= 3.0)
|
102
123
|
sprockets (>= 2.8, < 4.0)
|
@@ -111,9 +132,8 @@ PLATFORMS
|
|
111
132
|
ruby
|
112
133
|
|
113
134
|
DEPENDENCIES
|
114
|
-
appraisal
|
115
|
-
generator_spec
|
135
|
+
appraisal (~> 1.0)
|
136
|
+
generator_spec (~> 0.9)
|
116
137
|
paul_revere!
|
117
|
-
rspec
|
118
|
-
|
119
|
-
sqlite3
|
138
|
+
rspec-rails (~> 3.1)
|
139
|
+
sqlite3 (~> 1.3)
|
data/NEWS.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
New in 1.4:
|
2
|
+
|
3
|
+
* Reference the MIT license from the gemspec
|
4
|
+
* Update migration to avoid Rails deprecation warning about timestamps `null :false`
|
5
|
+
* Drop support for ruby 1.9.3
|
6
|
+
* Remove deprecated Rails method `link_to_function`
|
7
|
+
* Use ISO 8601 format when creating the Announcement cookie name
|
8
|
+
|
1
9
|
New in 1.3:
|
2
10
|
|
3
11
|
* Fix for ActiveRecord migration/generator error on Rails 4+.
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Paul Revere
|
2
2
|
===========
|
3
3
|
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://travis-ci.org/thoughtbot/paul_revere.svg?branch=master)](https://travis-ci.org/thoughtbot/paul_revere)
|
5
5
|
|
6
6
|
Simple announcement plugin to include "one off" style announcements in Rails web apps.
|
7
7
|
|
data/app/models/announcement.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<div id="announcement">
|
3
3
|
<span><%= current_announcement.body.html_safe %></span>
|
4
4
|
<span class="hide">
|
5
|
-
<%=
|
5
|
+
<%= link_to "hide", "#", onclick: "hideAnnouncement('announcement_#{current_announcement.created_at.iso8601}')" %>
|
6
6
|
</span>
|
7
7
|
</div>
|
8
8
|
<% end %>
|
data/lib/paul_revere/version.rb
CHANGED
data/paul_revere.gemspec
CHANGED
@@ -4,6 +4,7 @@ require 'paul_revere/version'
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'paul_revere'
|
6
6
|
s.version = PaulRevere::VERSION.dup
|
7
|
+
s.licenses = ['MIT']
|
7
8
|
s.platform = Gem::Platform::RUBY
|
8
9
|
s.authors = ['Nick Quaranto', 'Matt Jankowski', 'Joe Ferris', 'Christopher Meiklejohn', 'Tammer Saleh', 'Jason Morrison', 'Gabe Berke-Williams']
|
9
10
|
s.email = 'support@thoughtbot.com'
|
@@ -16,11 +17,10 @@ Gem::Specification.new do |s|
|
|
16
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
18
|
s.require_paths = ['lib']
|
18
19
|
|
19
|
-
s.add_dependency('rails', '
|
20
|
+
s.add_dependency('rails', '~> 4.0')
|
20
21
|
|
21
|
-
s.add_development_dependency('rspec')
|
22
|
-
s.add_development_dependency('
|
23
|
-
s.add_development_dependency('
|
24
|
-
s.add_development_dependency('
|
25
|
-
s.add_development_dependency('generator_spec')
|
22
|
+
s.add_development_dependency('rspec-rails', '~> 3.1')
|
23
|
+
s.add_development_dependency('sqlite3', '~> 1.3')
|
24
|
+
s.add_development_dependency('appraisal', '~> 1.0')
|
25
|
+
s.add_development_dependency('generator_spec', '~> 0.9')
|
26
26
|
end
|
data/spec/fake_app.rb
CHANGED
@@ -1,23 +1,13 @@
|
|
1
1
|
# Create a rails app
|
2
2
|
module PaulRevere
|
3
3
|
class Application < Rails::Application
|
4
|
-
config.secret_key_base =
|
4
|
+
config.secret_key_base = "test"
|
5
|
+
config.paths["config/database"] = ["spec/support/database.yml"]
|
6
|
+
config.eager_load = false
|
5
7
|
end
|
6
8
|
end
|
9
|
+
PaulRevere::Application.initialize!
|
7
10
|
|
8
11
|
# Run migrations
|
9
|
-
|
10
|
-
require File.join project_root, 'lib', 'generators', 'paul_revere', 'templates', 'migration'
|
11
|
-
|
12
|
-
ActiveRecord::Base.establish_connection(
|
13
|
-
:adapter => "sqlite3",
|
14
|
-
:database => ":memory:"
|
15
|
-
)
|
16
|
-
|
17
|
-
if Rails::VERSION::MAJOR < 4
|
18
|
-
ActiveSupport.on_load(:active_record) do
|
19
|
-
attr_accessible(nil)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
12
|
+
require_relative "../lib/generators/paul_revere/templates/migration"
|
23
13
|
CreateAnnouncements.suppress_messages { CreateAnnouncements.up }
|
@@ -1,8 +1,5 @@
|
|
1
1
|
require 'rails_helper'
|
2
2
|
|
3
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'app', 'helpers', 'announcements_helper')
|
4
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'app', 'models', 'announcement')
|
5
|
-
|
6
3
|
describe AnnouncementsHelper do
|
7
4
|
|
8
5
|
it "should return the current announcement when sent current_announcement and cache doesn't exist" do
|
@@ -22,15 +22,6 @@ describe PaulRevereGenerator, type: :generator do
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
25
|
-
if ::Rails.version < '3.1'
|
26
|
-
directory "public" do
|
27
|
-
directory "javascripts" do
|
28
|
-
file "announcements.js" do
|
29
|
-
contains "hideAnnouncement"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
25
|
}
|
35
26
|
end
|
36
27
|
|
@@ -1,7 +1,5 @@
|
|
1
1
|
require 'rails_helper'
|
2
2
|
|
3
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'app', 'models', 'announcement')
|
4
|
-
|
5
3
|
describe Announcement do
|
6
4
|
it "should return the latest announcement when there are several" do
|
7
5
|
old = create_announcement(:body => 'no fun', :created_at => 2.days.ago)
|
data/spec/rails_helper.rb
CHANGED
@@ -12,6 +12,7 @@ require "fake_app"
|
|
12
12
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
13
|
|
14
14
|
RSpec.configure do |config|
|
15
|
+
config.include Rails.application.routes.url_helpers
|
15
16
|
config.infer_spec_type_from_file_location!
|
16
17
|
config.before(:each) do
|
17
18
|
Announcement.delete_all
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
class User; end
|
4
|
+
|
5
|
+
module ApplicationHelper
|
6
|
+
def current_user
|
7
|
+
raise
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "announcements/_announcement" do
|
12
|
+
before(:example) do
|
13
|
+
stub_template "announcements/_announcement_for_all.html.erb" => "Partial"
|
14
|
+
end
|
15
|
+
|
16
|
+
it "renders the all partial when there is a user" do
|
17
|
+
allow(view).to receive(:current_user).and_return(User.new)
|
18
|
+
render
|
19
|
+
|
20
|
+
expect(rendered).to match /Partial/
|
21
|
+
end
|
22
|
+
|
23
|
+
it "does not render the all partial when there is not a user" do
|
24
|
+
allow(view).to receive(:current_user).and_return(nil)
|
25
|
+
render
|
26
|
+
|
27
|
+
expect(rendered).to eq "\n"
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
describe "announcements/_announcement_for_all" do
|
4
|
+
it "renders nothing when announcement does not exist" do
|
5
|
+
expect(Announcement.count).to eq 0
|
6
|
+
render
|
7
|
+
|
8
|
+
expect(rendered).to eq ""
|
9
|
+
end
|
10
|
+
|
11
|
+
it "renders nothing when an Announcement exists but is hidden" do
|
12
|
+
Announcement.create!(body: "Test")
|
13
|
+
allow(view).to receive(:announcement_hidden?).and_return(true)
|
14
|
+
render
|
15
|
+
|
16
|
+
expect(rendered).to eq ""
|
17
|
+
end
|
18
|
+
|
19
|
+
it "renders the announcement when an Announcement exists and is not hidden" do
|
20
|
+
announcement = Announcement.create!(body: "Test")
|
21
|
+
render
|
22
|
+
|
23
|
+
expect(rendered).to match /Test/
|
24
|
+
expect(rendered).to match /announcement_#{announcement.created_at.iso8601}/
|
25
|
+
end
|
26
|
+
end
|
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: '1.
|
4
|
+
version: '1.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Quaranto
|
@@ -14,92 +14,78 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date:
|
17
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
21
21
|
requirement: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
|
-
- - "
|
23
|
+
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '4.0'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- - "
|
30
|
+
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rspec
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
|
-
type: :development
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
32
|
+
version: '4.0'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: rspec-rails
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
|
-
- - "
|
37
|
+
- - "~>"
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
39
|
+
version: '3.1'
|
54
40
|
type: :development
|
55
41
|
prerelease: false
|
56
42
|
version_requirements: !ruby/object:Gem::Requirement
|
57
43
|
requirements:
|
58
|
-
- - "
|
44
|
+
- - "~>"
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
46
|
+
version: '3.1'
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: sqlite3
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
64
50
|
requirements:
|
65
|
-
- - "
|
51
|
+
- - "~>"
|
66
52
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
53
|
+
version: '1.3'
|
68
54
|
type: :development
|
69
55
|
prerelease: false
|
70
56
|
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
requirements:
|
72
|
-
- - "
|
58
|
+
- - "~>"
|
73
59
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
60
|
+
version: '1.3'
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
name: appraisal
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
|
-
- - "
|
65
|
+
- - "~>"
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
67
|
+
version: '1.0'
|
82
68
|
type: :development
|
83
69
|
prerelease: false
|
84
70
|
version_requirements: !ruby/object:Gem::Requirement
|
85
71
|
requirements:
|
86
|
-
- - "
|
72
|
+
- - "~>"
|
87
73
|
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
74
|
+
version: '1.0'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
76
|
name: generator_spec
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
92
78
|
requirements:
|
93
|
-
- - "
|
79
|
+
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
81
|
+
version: '0.9'
|
96
82
|
type: :development
|
97
83
|
prerelease: false
|
98
84
|
version_requirements: !ruby/object:Gem::Requirement
|
99
85
|
requirements:
|
100
|
-
- - "
|
86
|
+
- - "~>"
|
101
87
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
88
|
+
version: '0.9'
|
103
89
|
description: Paul Revere provides a model and helper methods to do one-off style announcements.
|
104
90
|
email: support@thoughtbot.com
|
105
91
|
executables: []
|
@@ -122,11 +108,9 @@ files:
|
|
122
108
|
- app/views/announcements/_announcement.html.erb
|
123
109
|
- app/views/announcements/_announcement_for_all.html.erb
|
124
110
|
- app/views/announcements/_email_announcement.erb
|
125
|
-
- gemfiles/
|
126
|
-
- gemfiles/
|
127
|
-
- gemfiles/
|
128
|
-
- gemfiles/rails_4.0.gemfile
|
129
|
-
- gemfiles/rails_4.1.gemfile
|
111
|
+
- gemfiles/rails_4.0.0.gemfile
|
112
|
+
- gemfiles/rails_4.1.0.gemfile
|
113
|
+
- gemfiles/rails_4.2.0.gemfile
|
130
114
|
- lib/generators/paul_revere/USAGE
|
131
115
|
- lib/generators/paul_revere/paul_revere_generator.rb
|
132
116
|
- lib/generators/paul_revere/templates/migration.rb
|
@@ -141,8 +125,13 @@ files:
|
|
141
125
|
- spec/paul_revere_spec.rb
|
142
126
|
- spec/rails_helper.rb
|
143
127
|
- spec/spec_helper.rb
|
128
|
+
- spec/support/database.yml
|
129
|
+
- spec/views/announcements/_announcement.html.erb_spec.rb
|
130
|
+
- spec/views/announcements/_announcement_for_all.html.erb_spec.rb
|
131
|
+
- spec/views/announcements/_email_announcement.erb_spec.rb
|
144
132
|
homepage: https://github.com/thoughtbot/paul_revere
|
145
|
-
licenses:
|
133
|
+
licenses:
|
134
|
+
- MIT
|
146
135
|
metadata: {}
|
147
136
|
post_install_message:
|
148
137
|
rdoc_options: []
|
@@ -160,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
149
|
version: '0'
|
161
150
|
requirements: []
|
162
151
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.4.5
|
164
153
|
signing_key:
|
165
154
|
specification_version: 4
|
166
155
|
summary: Simple announcement plugin to include `one off` style announcements in Rails
|
@@ -173,3 +162,7 @@ test_files:
|
|
173
162
|
- spec/paul_revere_spec.rb
|
174
163
|
- spec/rails_helper.rb
|
175
164
|
- spec/spec_helper.rb
|
165
|
+
- spec/support/database.yml
|
166
|
+
- spec/views/announcements/_announcement.html.erb_spec.rb
|
167
|
+
- spec/views/announcements/_announcement_for_all.html.erb_spec.rb
|
168
|
+
- spec/views/announcements/_email_announcement.erb_spec.rb
|
data/gemfiles/rails_4.0.gemfile
DELETED