contact_us 0.5.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/app/models/contact_us/contact.rb +1 -1
- data/contact_us.gemspec +3 -3
- data/lib/contact_us/version.rb +1 -1
- data/spec/mailers/contact_us/contact_mailer_spec.rb +2 -2
- data/spec/models/contact_us/contact_spec.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba36fc9da764d196d589ccd4fb72823e5ec51cba
|
4
|
+
data.tar.gz: 6431ccbdf97fc5753f0d066c308d6968fdb93482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccdec238e8ac1e598643d3762e77f0340e8afa01e1991747d1f32a7e08ec395525dd5cad424c08af20e46788a99d946d68a68fba76b1f1fc7dc3dd71b97a0ba7
|
7
|
+
data.tar.gz: 074cf4a5486906b27c5cdfdb327b44ca66254db49175c475401204b6620b2dc072d9f14f4e9d6ff3b5812503eefd07929883bd59ddeeb6f6a072b0c036a95cbc
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/contact_us.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{Gem providing simple Contact Us functionality with a Rails 3+ Engine.}
|
13
13
|
s.description = %q{A Rails 3+ Engine providing a basic contact form. I used Formtastic to keep things simple, and to hook into your apps custom Formtastic stylesheets.}
|
14
14
|
|
15
|
-
s.required_ruby_version = '>=
|
15
|
+
s.required_ruby_version = '>= 2.0.0'
|
16
16
|
s.rubyforge_project = "contact_us"
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
@@ -20,12 +20,12 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
22
|
s.add_development_dependency "capybara", "~> 2.0"
|
23
|
-
s.add_development_dependency "rspec-rails", "~> 2.
|
23
|
+
s.add_development_dependency "rspec-rails", "~> 2.99"
|
24
24
|
s.add_development_dependency "shoulda-matchers", ">= 1.5.4"
|
25
25
|
s.add_development_dependency "simplecov", "~> 0.7"
|
26
26
|
s.add_development_dependency "sqlite3", "~> 1.3.5"
|
27
27
|
s.add_development_dependency "formtastic", ">= 2.1.0"
|
28
28
|
s.add_development_dependency "simple_form"
|
29
29
|
|
30
|
-
s.add_runtime_dependency "rails", ">= 4.
|
30
|
+
s.add_runtime_dependency "rails", ">= 4.2.0"
|
31
31
|
end
|
data/lib/contact_us/version.rb
CHANGED
@@ -47,13 +47,13 @@ describe ContactUs::ContactMailer do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "should deliver successfully" do
|
50
|
-
lambda { ContactUs::ContactMailer.contact_email(@contact).
|
50
|
+
lambda { ContactUs::ContactMailer.contact_email(@contact).deliver_now }.should_not raise_error
|
51
51
|
end
|
52
52
|
|
53
53
|
describe "and delivered" do
|
54
54
|
|
55
55
|
it "should be added to the delivery queue" do
|
56
|
-
lambda { ContactUs::ContactMailer.contact_email(@contact).
|
56
|
+
lambda { ContactUs::ContactMailer.contact_email(@contact).deliver_now }.should change(ActionMailer::Base.deliveries,:size).by(1)
|
57
57
|
end
|
58
58
|
|
59
59
|
end
|
@@ -48,7 +48,7 @@ describe ContactUs::Contact do
|
|
48
48
|
|
49
49
|
it 'should send email and return true if records valid' do
|
50
50
|
mail = Mail.new(:from=>"Valid@Email.com", :to => "test@test.com")
|
51
|
-
mail.stub(:
|
51
|
+
mail.stub(:deliver_now).and_return(true)
|
52
52
|
contact = ContactUs::Contact.new(:email => "Valid@Email.com", :message => "Test")
|
53
53
|
ContactUs::ContactMailer.should_receive(:contact_email).with(contact).and_return(mail)
|
54
54
|
contact.save.should eql(true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact_us
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dutil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.99'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.99'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: shoulda-matchers
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 4.
|
117
|
+
version: 4.2.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 4.
|
124
|
+
version: 4.2.0
|
125
125
|
description: A Rails 3+ Engine providing a basic contact form. I used Formtastic
|
126
126
|
to keep things simple, and to hook into your apps custom Formtastic stylesheets.
|
127
127
|
email:
|
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
221
|
+
version: 2.0.0
|
222
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
223
|
requirements:
|
224
224
|
- - ">="
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project: contact_us
|
229
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.4.5
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Gem providing simple Contact Us functionality with a Rails 3+ Engine.
|