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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28d318ac379029a18ee985f3fc50b44bd698f5d4
4
- data.tar.gz: 1240293acf5718df78c46d988e568862f4222293
3
+ metadata.gz: ba36fc9da764d196d589ccd4fb72823e5ec51cba
4
+ data.tar.gz: 6431ccbdf97fc5753f0d066c308d6968fdb93482
5
5
  SHA512:
6
- metadata.gz: ba94cd4ebcf243d34d7971968e088eb478a53ea948586051a953f10f60c6d3b2ec161396072e9d9b2d67509617dacf31094b7050b5de8297fb859176a5d22ee8
7
- data.tar.gz: b66ce52778b6b8d6a3a4a6f78b2f4f9861cb647bece12f9fd36c5cf0f810af951128fe427dee5a8b0953bcaf0e2f671374eec79e9a2abfacceff73179dd0071c
6
+ metadata.gz: ccdec238e8ac1e598643d3762e77f0340e8afa01e1991747d1f32a7e08ec395525dd5cad424c08af20e46788a99d946d68a68fba76b1f1fc7dc3dd71b97a0ba7
7
+ data.tar.gz: 074cf4a5486906b27c5cdfdb327b44ca66254db49175c475401204b6620b2dc072d9f14f4e9d6ff3b5812503eefd07929883bd59ddeeb6f6a072b0c036a95cbc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## ContactUs 1.0.0 (Jan 15th 2015)
2
+
3
+ * Fix Rails 4.2 deliver_later deprecation.
4
+ * Require Ruby 2+
5
+
1
6
  ## ContactUs 0.5.4 (Jun 25th 2014)
2
7
 
3
8
  * Added Greek locale.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in contact_us.gemspec
4
4
  gemspec
@@ -18,7 +18,7 @@ class ContactUs::Contact
18
18
 
19
19
  def save
20
20
  if self.valid?
21
- ContactUs::ContactMailer.contact_email(self).deliver
21
+ ContactUs::ContactMailer.contact_email(self).deliver_now
22
22
  return true
23
23
  end
24
24
  return false
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 = '>= 1.9.3'
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.13"
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.0.0"
30
+ s.add_runtime_dependency "rails", ">= 4.2.0"
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module ContactUs
2
- VERSION = "0.5.4"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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).deliver }.should_not raise_error
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).deliver }.should change(ActionMailer::Base.deliveries,:size).by(1)
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(:deliver).and_return(true)
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.5.4
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: 2014-06-25 00:00:00.000000000 Z
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.13'
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.13'
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.0.0
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.0.0
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: 1.9.3
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.2.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.