batchy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Batchy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,15 @@
1
+ require 'rails/generators/migration'
2
+ require 'rails/generators/active_record/migration'
3
+
4
+ module Batchy
5
+ class ActiveRecordGenerator
6
+ include Rails::Generators::Migration
7
+ extend ActiveRecord::Generators::Migration
8
+
9
+ self.source_paths << File.join(File.dirname(__FILE__), 'templates')
10
+
11
+ def create_migration_file
12
+ migration_template 'migration.rb', 'db/migrate/create_batches.rb'
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: batchy
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bob Briski
@@ -147,6 +147,7 @@ files:
147
147
  - lib/batchy/configuration.rb
148
148
  - lib/batchy/version.rb
149
149
  - lib/batchy.rb
150
+ - lib/generators/batchy/active_record_generator.rb
150
151
  - lib/generators/batchy/templates/migration.rb
151
152
  - lib/tasks/batchy_tasks.rake
152
153
  - MIT-LICENSE
@@ -165,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
166
  requirements:
166
167
  - - ">="
167
168
  - !ruby/object:Gem::Version
168
- hash: 1244919966576900379
169
+ hash: -3557642558749458522
169
170
  segments:
170
171
  - 0
171
172
  version: "0"
@@ -174,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
175
  requirements:
175
176
  - - ">="
176
177
  - !ruby/object:Gem::Version
177
- hash: 1244919966576900379
178
+ hash: -3557642558749458522
178
179
  segments:
179
180
  - 0
180
181
  version: "0"