actionmailer 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionmailer might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *1.2.2* (June 27th, 2006)
2
+
3
+ * Depend on Action Pack 1.12.2
4
+
5
+
1
6
  *1.2.1* (April 6th, 2005)
2
7
 
3
8
  * Be part of Rails 1.1.1
@@ -0,0 +1,95 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+ require 'rake/rdoctask'
5
+ require 'rake/packagetask'
6
+ require 'rake/gempackagetask'
7
+ require 'rake/contrib/rubyforgepublisher'
8
+ require File.join(File.dirname(__FILE__), 'lib', 'action_mailer', 'version')
9
+
10
+ PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
11
+ PKG_NAME = 'actionmailer'
12
+ PKG_VERSION = ActionMailer::VERSION::STRING + PKG_BUILD
13
+ PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14
+
15
+ RELEASE_NAME = "REL #{PKG_VERSION}"
16
+
17
+ RUBY_FORGE_PROJECT = "actionmailer"
18
+ RUBY_FORGE_USER = "webster132"
19
+
20
+ desc "Default Task"
21
+ task :default => [ :test ]
22
+
23
+ # Run the unit tests
24
+ Rake::TestTask.new { |t|
25
+ t.libs << "test"
26
+ t.pattern = 'test/*_test.rb'
27
+ t.verbose = true
28
+ t.warning = false
29
+ }
30
+
31
+
32
+ # Genereate the RDoc documentation
33
+ Rake::RDocTask.new { |rdoc|
34
+ rdoc.rdoc_dir = 'doc'
35
+ rdoc.title = "Action Mailer -- Easy email delivery and testing"
36
+ rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
37
+ rdoc.template = "#{ENV['template']}.rb" if ENV['template']
38
+ rdoc.rdoc_files.include('README', 'CHANGELOG')
39
+ rdoc.rdoc_files.include('lib/action_mailer.rb')
40
+ rdoc.rdoc_files.include('lib/action_mailer/*.rb')
41
+ }
42
+
43
+
44
+ # Create compressed packages
45
+ spec = Gem::Specification.new do |s|
46
+ s.platform = Gem::Platform::RUBY
47
+ s.name = PKG_NAME
48
+ s.summary = "Service layer for easy email delivery and testing."
49
+ s.description = %q{Makes it trivial to test and deliver emails sent from a single service layer.}
50
+ s.version = PKG_VERSION
51
+
52
+ s.author = "David Heinemeier Hansson"
53
+ s.email = "david@loudthinking.com"
54
+ s.rubyforge_project = "actionmailer"
55
+ s.homepage = "http://www.rubyonrails.org"
56
+
57
+ s.add_dependency('actionpack', '= 1.12.2' + PKG_BUILD)
58
+
59
+ s.has_rdoc = true
60
+ s.requirements << 'none'
61
+ s.require_path = 'lib'
62
+ s.autorequire = 'action_mailer'
63
+
64
+ s.files = [ "Rakefile", "install.rb", "README", "CHANGELOG", "MIT-LICENSE" ]
65
+ s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
66
+ s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
67
+ end
68
+
69
+ Rake::GemPackageTask.new(spec) do |p|
70
+ p.gem_spec = spec
71
+ p.need_tar = true
72
+ p.need_zip = true
73
+ end
74
+
75
+
76
+ desc "Publish the API documentation"
77
+ task :pgem => [:package] do
78
+ Rake::SshFilePublisher.new("davidhh@wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
79
+ end
80
+
81
+ desc "Publish the API documentation"
82
+ task :pdoc => [:rdoc] do
83
+ Rake::SshDirPublisher.new("davidhh@wrath.rubyonrails.org", "public_html/am", "doc").upload
84
+ end
85
+
86
+ desc "Publish the release files to RubyForge."
87
+ task :release => [ :package ] do
88
+ `rubyforge login`
89
+
90
+ for ext in %w( gem tgz zip )
91
+ release_command = "rubyforge add_release #{PKG_NAME} #{PKG_NAME} 'REL #{PKG_VERSION}' pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}"
92
+ puts release_command
93
+ system(release_command)
94
+ end
95
+ end
@@ -2,7 +2,7 @@ module ActionMailer
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: actionmailer
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.1
7
- date: 2006-04-06 00:00:00 -05:00
6
+ version: 1.2.2
7
+ date: 2006-06-27 00:00:00 -05:00
8
8
  summary: Service layer for easy email delivery and testing.
9
9
  require_paths:
10
10
  - lib
@@ -28,7 +28,7 @@ cert_chain:
28
28
  authors:
29
29
  - David Heinemeier Hansson
30
30
  files:
31
- - rakefile
31
+ - Rakefile
32
32
  - install.rb
33
33
  - README
34
34
  - CHANGELOG
@@ -128,5 +128,5 @@ dependencies:
128
128
  requirements:
129
129
  - - "="
130
130
  - !ruby/object:Gem::Version
131
- version: 1.12.1
131
+ version: 1.12.2
132
132
  version:
data/rakefile DELETED
@@ -1,199 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/packagetask'
6
- require 'rake/gempackagetask'
7
- require 'rake/contrib/rubyforgepublisher'
8
- require File.join(File.dirname(__FILE__), 'lib', 'action_mailer', 'version')
9
-
10
- PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
11
- PKG_NAME = 'actionmailer'
12
- PKG_VERSION = ActionMailer::VERSION::STRING + PKG_BUILD
13
- PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14
-
15
- RELEASE_NAME = "REL #{PKG_VERSION}"
16
-
17
- RUBY_FORGE_PROJECT = "actionmailer"
18
- RUBY_FORGE_USER = "webster132"
19
-
20
- desc "Default Task"
21
- task :default => [ :test ]
22
-
23
- # Run the unit tests
24
- Rake::TestTask.new { |t|
25
- t.libs << "test"
26
- t.pattern = 'test/*_test.rb'
27
- t.verbose = true
28
- t.warning = false
29
- }
30
-
31
-
32
- # Genereate the RDoc documentation
33
- Rake::RDocTask.new { |rdoc|
34
- rdoc.rdoc_dir = 'doc'
35
- rdoc.title = "Action Mailer -- Easy email delivery and testing"
36
- rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
37
- rdoc.template = "#{ENV['template']}.rb" if ENV['template']
38
- rdoc.rdoc_files.include('README', 'CHANGELOG')
39
- rdoc.rdoc_files.include('lib/action_mailer.rb')
40
- rdoc.rdoc_files.include('lib/action_mailer/*.rb')
41
- }
42
-
43
-
44
- # Create compressed packages
45
- spec = Gem::Specification.new do |s|
46
- s.platform = Gem::Platform::RUBY
47
- s.name = PKG_NAME
48
- s.summary = "Service layer for easy email delivery and testing."
49
- s.description = %q{Makes it trivial to test and deliver emails sent from a single service layer.}
50
- s.version = PKG_VERSION
51
-
52
- s.author = "David Heinemeier Hansson"
53
- s.email = "david@loudthinking.com"
54
- s.rubyforge_project = "actionmailer"
55
- s.homepage = "http://www.rubyonrails.org"
56
-
57
- s.add_dependency('actionpack', '= 1.12.1' + PKG_BUILD)
58
-
59
- s.has_rdoc = true
60
- s.requirements << 'none'
61
- s.require_path = 'lib'
62
- s.autorequire = 'action_mailer'
63
-
64
- s.files = [ "rakefile", "install.rb", "README", "CHANGELOG", "MIT-LICENSE" ]
65
- s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
66
- s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
67
- end
68
-
69
- Rake::GemPackageTask.new(spec) do |p|
70
- p.gem_spec = spec
71
- p.need_tar = true
72
- p.need_zip = true
73
- end
74
-
75
-
76
- desc "Publish the API documentation"
77
- task :pgem => [:package] do
78
- Rake::SshFilePublisher.new("davidhh@wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
79
- end
80
-
81
- desc "Publish the API documentation"
82
- task :pdoc => [:rdoc] do
83
- Rake::SshDirPublisher.new("davidhh@wrath.rubyonrails.org", "public_html/am", "doc").upload
84
- end
85
-
86
- desc "Publish the release files to RubyForge."
87
- task :release => [:package] do
88
- files = ["gem", "tgz", "zip"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" }
89
-
90
- if RUBY_FORGE_PROJECT then
91
- require 'net/http'
92
- require 'open-uri'
93
-
94
- project_uri = "http://rubyforge.org/projects/#{RUBY_FORGE_PROJECT}/"
95
- project_data = open(project_uri) { |data| data.read }
96
- group_id = project_data[/[?&]group_id=(\d+)/, 1]
97
- raise "Couldn't get group id" unless group_id
98
-
99
- # This echos password to shell which is a bit sucky
100
- if ENV["RUBY_FORGE_PASSWORD"]
101
- password = ENV["RUBY_FORGE_PASSWORD"]
102
- else
103
- print "#{RUBY_FORGE_USER}@rubyforge.org's password: "
104
- password = STDIN.gets.chomp
105
- end
106
-
107
- login_response = Net::HTTP.start("rubyforge.org", 80) do |http|
108
- data = [
109
- "login=1",
110
- "form_loginname=#{RUBY_FORGE_USER}",
111
- "form_pw=#{password}"
112
- ].join("&")
113
- http.post("/account/login.php", data)
114
- end
115
-
116
- cookie = login_response["set-cookie"]
117
- raise "Login failed" unless cookie
118
- headers = { "Cookie" => cookie }
119
-
120
- release_uri = "http://rubyforge.org/frs/admin/?group_id=#{group_id}"
121
- release_data = open(release_uri, headers) { |data| data.read }
122
- package_id = release_data[/[?&]package_id=(\d+)/, 1]
123
- raise "Couldn't get package id" unless package_id
124
-
125
- first_file = true
126
- release_id = ""
127
-
128
- files.each do |filename|
129
- basename = File.basename(filename)
130
- file_ext = File.extname(filename)
131
- file_data = File.open(filename, "rb") { |file| file.read }
132
-
133
- puts "Releasing #{basename}..."
134
-
135
- release_response = Net::HTTP.start("rubyforge.org", 80) do |http|
136
- release_date = Time.now.strftime("%Y-%m-%d %H:%M")
137
- type_map = {
138
- ".zip" => "3000",
139
- ".tgz" => "3110",
140
- ".gz" => "3110",
141
- ".gem" => "1400"
142
- }; type_map.default = "9999"
143
- type = type_map[file_ext]
144
- boundary = "rubyqMY6QN9bp6e4kS21H4y0zxcvoor"
145
-
146
- query_hash = if first_file then
147
- {
148
- "group_id" => group_id,
149
- "package_id" => package_id,
150
- "release_name" => RELEASE_NAME,
151
- "release_date" => release_date,
152
- "type_id" => type,
153
- "processor_id" => "8000", # Any
154
- "release_notes" => "",
155
- "release_changes" => "",
156
- "preformatted" => "1",
157
- "submit" => "1"
158
- }
159
- else
160
- {
161
- "group_id" => group_id,
162
- "release_id" => release_id,
163
- "package_id" => package_id,
164
- "step2" => "1",
165
- "type_id" => type,
166
- "processor_id" => "8000", # Any
167
- "submit" => "Add This File"
168
- }
169
- end
170
-
171
- query = "?" + query_hash.map do |(name, value)|
172
- [name, URI.encode(value)].join("=")
173
- end.join("&")
174
-
175
- data = [
176
- "--" + boundary,
177
- "Content-Disposition: form-data; name=\"userfile\"; filename=\"#{basename}\"",
178
- "Content-Type: application/octet-stream",
179
- "Content-Transfer-Encoding: binary",
180
- "", file_data, ""
181
- ].join("\x0D\x0A")
182
-
183
- release_headers = headers.merge(
184
- "Content-Type" => "multipart/form-data; boundary=#{boundary}"
185
- )
186
-
187
- target = first_file ? "/frs/admin/qrs.php" : "/frs/admin/editrelease.php"
188
- http.post(target + query, data, release_headers)
189
- end
190
-
191
- if first_file then
192
- release_id = release_response.body[/release_id=(\d+)/, 1]
193
- raise("Couldn't get release id") unless release_id
194
- end
195
-
196
- first_file = false
197
- end
198
- end
199
- end