smailer 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ For Rails 3 projects, update your Gemfile and add:
14
14
 
15
15
  gem 'smailer'
16
16
 
17
- Then run `bundle install`. For Rails 2.x projects which do not use Bundler, add `gem 'smailer'` to your `environment.rb` file and then run `rake gems:install` in your project's root.
17
+ Then run `bundle install`. For Rails 2.x projects which do not use Bundler, add `config.gem 'smailer'` to your `environment.rb` file and then run `rake gems:install` in your project's root.
18
18
 
19
19
  ### Generate and run the migration
20
20
 
@@ -0,0 +1,13 @@
1
+ class SmailerMigrationGenerator < Rails::Generators::Base
2
+ desc "Create a migration file with definitions of the tables needed to run Smailer."
3
+
4
+ def manifest
5
+ file_name = 'create_smailer_tables'
6
+ @migration_name = file_name.camelize
7
+ template_path = File.expand_path('../../lib/generators/smailer/templates/migration.rb.erb', File.dirname(__FILE__))
8
+
9
+ record do |m|
10
+ m.migration_template template_path, File.join('db', 'migrate'), :migration_file_name => file_name
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Smailer
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smailer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dimitar Dimitrov
@@ -48,7 +48,7 @@ files:
48
48
  - Gemfile
49
49
  - README.md
50
50
  - Rakefile
51
- - generators/smailer/migration/migration_generator.rb
51
+ - generators/smailer/migration_generator.rb
52
52
  - lib/generators/smailer/migration_generator.rb
53
53
  - lib/generators/smailer/templates/migration.rb.erb
54
54
  - lib/smailer.rb
@@ -1,15 +0,0 @@
1
- module Smailer
2
- class MigrationGenerator < Rails::Generators::Base
3
- desc "Create a migration file with definitions of the tables needed to run Smailer."
4
-
5
- def manifest
6
- file_name = 'create_smailer_tables'
7
- @migration_name = file_name.camelize
8
- template_path = File.expand_path('../../lib/generators/smailer/templates/migration.rb.erb', File.dirname(__FILE__))
9
-
10
- record do |m|
11
- m.migration_template template_path, File.join('db', 'migrate'), :migration_file_name => file_name
12
- end
13
- end
14
- end
15
- end