adzap-ar_mailer 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ ar_mailer_gemspec = Gem::Specification.new do |s|
17
17
  s.email = %q{adam.meehan@gmail.com}
18
18
  s.executables = ["ar_sendmail"]
19
19
  s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
20
- s.files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "bin/ar_sendmail", "lib/action_mailer/ar_mailer.rb", "lib/action_mailer/ar_sendmail.rb", "lib/smtp_tls.rb", "share/bsd/ar_sendmail", "share/linux/ar_sendmail", "share/linux/ar_sendmail.conf", "test/action_mailer.rb", "test/test_armailer.rb", "test/test_arsendmail.rb"]
20
+ s.files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "bin/ar_sendmail", "generators/ar_mailer/ar_mailer_generator.rb", "generators/ar_mailer/templates/migration.rb", "generators/ar_mailer/templates/model.rb", "lib/action_mailer/ar_mailer.rb", "lib/action_mailer/ar_sendmail.rb", "lib/smtp_tls.rb", "share/bsd/ar_sendmail", "share/linux/ar_sendmail", "share/linux/ar_sendmail.conf", "test/action_mailer.rb", "test/test_armailer.rb", "test/test_arsendmail.rb"]
21
21
  s.has_rdoc = true
22
22
  s.homepage = %q{http://github.com/adzap/ar_mailer}
23
23
  s.rdoc_options = ["--main", "README.rdoc"]
@@ -0,0 +1,25 @@
1
+ class ArMailerGenerator < Rails::Generator::NamedBase
2
+
3
+ def initialize(runtime_args, runtime_options = {})
4
+ runtime_args.unshift('Email') if runtime_args.empty?
5
+ super
6
+ end
7
+
8
+ def manifest
9
+ record do |m|
10
+ m.class_collisions class_name
11
+
12
+ m.template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
13
+
14
+ m.migration_template 'migration.rb', 'db/migrate', :assigns => {
15
+ :migration_name => "Create#{class_name.pluralize.gsub(/::/, '')}"
16
+ }, :migration_file_name => "create_#{file_path.gsub(/\//, '_').pluralize}"
17
+ end
18
+ end
19
+
20
+ protected
21
+ def banner
22
+ "Usage: #{$0} #{spec.name} EmailModelName (default: Email)"
23
+ end
24
+
25
+ end
@@ -0,0 +1,15 @@
1
+ class <%= migration_name %> < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :<%= table_name %> do |t|
4
+ t.column :from, :string
5
+ t.column :to, :string
6
+ t.column :last_send_attempt, :integer, :default => 0
7
+ t.column :mail, :text
8
+ t.column :created_on, :datetime
9
+ end
10
+ end
11
+
12
+ def self.down
13
+ drop_table :<%= table_name %>
14
+ end
15
+ end
@@ -0,0 +1,2 @@
1
+ class <%= class_name %> < ActiveRecord::Base
2
+ end
@@ -43,7 +43,7 @@ class ActionMailer::ARSendmail
43
43
  ##
44
44
  # The version of ActionMailer::ARSendmail you are running.
45
45
 
46
- VERSION = '2.1.0'
46
+ VERSION = '2.1.1'
47
47
 
48
48
  ##
49
49
  # Maximum number of times authentication will be consecutively retried
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adzap-ar_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-23 00:00:00 -07:00
13
+ date: 2009-06-29 00:00:00 -07:00
14
14
  default_executable: ar_sendmail
15
15
  dependencies: []
16
16
 
@@ -32,6 +32,9 @@ files:
32
32
  - README.rdoc
33
33
  - Rakefile
34
34
  - bin/ar_sendmail
35
+ - generators/ar_mailer/ar_mailer_generator.rb
36
+ - generators/ar_mailer/templates/migration.rb
37
+ - generators/ar_mailer/templates/model.rb
35
38
  - lib/action_mailer/ar_mailer.rb
36
39
  - lib/action_mailer/ar_sendmail.rb
37
40
  - lib/smtp_tls.rb
@@ -41,7 +44,7 @@ files:
41
44
  - test/action_mailer.rb
42
45
  - test/test_armailer.rb
43
46
  - test/test_arsendmail.rb
44
- has_rdoc: true
47
+ has_rdoc: false
45
48
  homepage: http://github.com/adzap/ar_mailer
46
49
  post_install_message:
47
50
  rdoc_options: