postmark-rails 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ coverage
4
4
  rdoc
5
5
  pkg
6
6
  .rake_tasks
7
+ .bundle
data/Gemfile CHANGED
@@ -1,11 +1,10 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "actionmailer"
4
- gem "postmark", ">= 0.9.0"
5
- gem "rake"
3
+ gemspec
6
4
 
7
5
  group :test do
8
- gem "ruby-debug"
6
+ gem "ruby-debug", :platforms => [:ruby_18]
7
+ gem "ruby-debug19", :platforms => [:ruby_19]
9
8
  gem "rspec"
10
9
  gem "jeweler"
11
- end
10
+ end
data/Gemfile.lock CHANGED
@@ -1,72 +1,48 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ postmark-rails (0.4.0)
5
+
1
6
  GEM
2
7
  remote: http://rubygems.org/
3
8
  specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.0)
6
- actionpack (= 3.0.0)
7
- mail (~> 2.2.5)
8
- actionpack (3.0.0)
9
- activemodel (= 3.0.0)
10
- activesupport (= 3.0.0)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.4.1)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.12)
16
- rack-test (~> 0.5.4)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.0)
19
- activesupport (= 3.0.0)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.4.1)
22
- activesupport (3.0.0)
23
- builder (2.1.2)
9
+ archive-tar-minitar (0.5.2)
24
10
  columnize (0.3.1)
25
- erubis (2.6.6)
26
- abstract (>= 1.0.0)
27
11
  gemcutter (0.6.1)
28
12
  git (1.2.5)
29
- i18n (0.4.1)
30
13
  jeweler (1.4.0)
31
14
  gemcutter (>= 0.1.0)
32
15
  git (>= 1.2.5)
33
16
  rubyforge (>= 2.0.0)
34
17
  json_pure (1.4.6)
35
18
  linecache (0.43)
36
- mail (2.2.6.1)
37
- activesupport (>= 2.3.6)
38
- mime-types
39
- treetop (>= 1.4.5)
40
- mime-types (1.16)
41
- polyglot (0.3.1)
42
- postmark (0.7.1)
43
- tmail
44
- rack (1.2.1)
45
- rack-mount (0.6.13)
46
- rack (>= 1.0.0)
47
- rack-test (0.5.4)
48
- rack (>= 1.0)
49
- rake (0.8.7)
19
+ linecache19 (0.5.11)
20
+ ruby_core_source (>= 0.1.4)
50
21
  rspec (1.3.0)
51
22
  ruby-debug (0.10.3)
52
23
  columnize (>= 0.1)
53
24
  ruby-debug-base (~> 0.10.3.0)
54
25
  ruby-debug-base (0.10.3)
55
26
  linecache (>= 0.3)
27
+ ruby-debug-base19 (0.11.24)
28
+ columnize (>= 0.3.1)
29
+ linecache19 (>= 0.5.11)
30
+ ruby_core_source (>= 0.1.4)
31
+ ruby-debug19 (0.11.6)
32
+ columnize (>= 0.3.1)
33
+ linecache19 (>= 0.5.11)
34
+ ruby-debug-base19 (>= 0.11.19)
35
+ ruby_core_source (0.1.4)
36
+ archive-tar-minitar (>= 0.5.2)
56
37
  rubyforge (2.0.4)
57
38
  json_pure (>= 1.1.7)
58
- tmail (1.2.7.1)
59
- treetop (1.4.8)
60
- polyglot (>= 0.3.1)
61
- tzinfo (0.3.23)
62
39
 
63
40
  PLATFORMS
64
41
  ruby
65
42
 
66
43
  DEPENDENCIES
67
- actionmailer
68
44
  jeweler
69
- postmark
70
- rake
45
+ postmark-rails!
71
46
  rspec
72
47
  ruby-debug
48
+ ruby-debug19
data/README.rdoc CHANGED
@@ -10,7 +10,6 @@ The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via
10
10
 
11
11
  == Install
12
12
 
13
- sudo gem install postmark
14
13
  sudo gem install postmark-rails
15
14
 
16
15
  == Requirements
@@ -24,7 +23,6 @@ The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via
24
23
 
25
24
  Add this to your Gemfile: (change version numbers if needed)
26
25
 
27
- gem 'postmark', '0.9.0'
28
26
  gem 'postmark-rails', '0.4.0'
29
27
 
30
28
  Don't forget to run "bundle install" command every time you change something in the Gemfile.
@@ -42,7 +40,6 @@ Add this to config/environment.rb:
42
40
 
43
41
  ...
44
42
 
45
- config.gem 'postmark'
46
43
  config.gem 'postmark-rails'
47
44
  require 'postmark-rails'
48
45
 
@@ -146,6 +143,7 @@ You can pass either an array of File objects or a single object. Postmark will d
146
143
  * Hristo Deshev
147
144
  * Randy Schmidt
148
145
  * Chris Williams
146
+ * Nicolás Sanguinetti
149
147
 
150
148
  == Copyright
151
149
 
data/Rakefile CHANGED
@@ -11,6 +11,10 @@ begin
11
11
  gem.homepage = "http://postmarkapp.com"
12
12
  gem.authors = ["Petyo Ivanov", "Ilya Sabanin"]
13
13
 
14
+ gem.add_dependency "actionmailer"
15
+ gem.add_dependency "postmark", ">= 0.9.0"
16
+ gem.add_dependency "rake"
17
+
14
18
  gem.post_install_message = %q[
15
19
  ==================
16
20
  Thanks for installing the postmark-rails gem. If you don't have an account, please sign up at http://postmarkapp.com/.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -32,7 +32,7 @@ module PostmarkDeliveryMethod
32
32
  end
33
33
 
34
34
  def create_mail_with_postmark_extras
35
- returning create_mail_without_postmark_extras do |mail|
35
+ create_mail_without_postmark_extras.tap do |mail|
36
36
  mail.tag = @tag if @tag
37
37
  mail.postmark_attachments = @attachments if @attachments
38
38
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postmark-rails}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Petyo Ivanov", "Ilya Sabanin"]
12
- s.date = %q{2010-09-17}
12
+ s.date = %q{2010-11-22}
13
13
  s.description = %q{Use this plugin in your rails applications to send emails through the Postmark API}
14
14
  s.email = %q{ilya@wildbit.com}
15
15
  s.extra_rdoc_files = [
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
47
47
  }
48
48
  s.rdoc_options = ["--charset=UTF-8"]
49
49
  s.require_paths = ["lib"]
50
- s.rubygems_version = %q{1.3.6}
50
+ s.rubygems_version = %q{1.3.7}
51
51
  s.summary = %q{Postmark adapter for ActionMailer}
52
52
  s.test_files = [
53
53
  "spec/fixtures/models/test_mailer.rb",
@@ -59,10 +59,19 @@ Gem::Specification.new do |s|
59
59
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
60
60
  s.specification_version = 3
61
61
 
62
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
62
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
+ s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
64
+ s.add_runtime_dependency(%q<postmark>, [">= 0.9.0"])
65
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
63
66
  else
67
+ s.add_dependency(%q<actionmailer>, [">= 0"])
68
+ s.add_dependency(%q<postmark>, [">= 0.9.0"])
69
+ s.add_dependency(%q<rake>, [">= 0"])
64
70
  end
65
71
  else
72
+ s.add_dependency(%q<actionmailer>, [">= 0"])
73
+ s.add_dependency(%q<postmark>, [">= 0.9.0"])
74
+ s.add_dependency(%q<rake>, [">= 0"])
66
75
  end
67
76
  end
68
77
 
data/spec/spec_helper.rb CHANGED
@@ -3,11 +3,11 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
 
4
4
  require 'rubygems'
5
5
  require 'postmark'
6
- require 'lib/postmark-rails'
6
+ require 'postmark-rails'
7
7
  require 'spec'
8
8
  require 'spec/autorun'
9
9
 
10
10
  ActionMailer::Base.delivery_method = :postmark
11
11
  ActionMailer::Base.prepend_view_path(File.join(File.dirname(__FILE__), "fixtures", "views"))
12
12
 
13
- Dir["#{File.dirname(__FILE__)}/fixtures/models/*.rb"].each { |f| require f }
13
+ Dir["#{File.dirname(__FILE__)}/fixtures/models/*.rb"].each { |f| require f }
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark-rails
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 13
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 4
8
- - 0
9
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Petyo Ivanov
@@ -15,10 +16,53 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-17 00:00:00 +02:00
19
+ date: 2010-11-22 00:00:00 +07:00
19
20
  default_executable:
20
- dependencies: []
21
-
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: actionmailer
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: postmark
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 59
45
+ segments:
46
+ - 0
47
+ - 9
48
+ - 0
49
+ version: 0.9.0
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rake
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :runtime
65
+ version_requirements: *id003
22
66
  description: Use this plugin in your rails applications to send emails through the Postmark API
23
67
  email: ilya@wildbit.com
24
68
  executables: []
@@ -59,23 +103,27 @@ rdoc_options:
59
103
  require_paths:
60
104
  - lib
61
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
62
107
  requirements:
63
108
  - - ">="
64
109
  - !ruby/object:Gem::Version
110
+ hash: 3
65
111
  segments:
66
112
  - 0
67
113
  version: "0"
68
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
69
116
  requirements:
70
117
  - - ">="
71
118
  - !ruby/object:Gem::Version
119
+ hash: 3
72
120
  segments:
73
121
  - 0
74
122
  version: "0"
75
123
  requirements: []
76
124
 
77
125
  rubyforge_project:
78
- rubygems_version: 1.3.6
126
+ rubygems_version: 1.3.7
79
127
  signing_key:
80
128
  specification_version: 3
81
129
  summary: Postmark adapter for ActionMailer