batchy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -9,7 +9,16 @@ be caught by batchy and logged. Callbacks can be defined for success, failure o
9
9
 
10
10
  == Installation
11
11
 
12
- gem install batchy
12
+ $ gem install batchy
13
+
14
+ Or if you're using bundler add <code>batchy</code> to your Gemfile and
15
+
16
+ $ bundle install
17
+
18
+ If you're using Rails, you can generate a migration with
19
+
20
+ $ rails generate batchy:active_record
21
+ $ rake db:migrate
13
22
 
14
23
  == Examples
15
24
 
@@ -1,3 +1,3 @@
1
1
  module Batchy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,8 +1,9 @@
1
+ require 'rails/generators'
1
2
  require 'rails/generators/migration'
2
3
  require 'rails/generators/active_record/migration'
3
4
 
4
5
  module Batchy
5
- class ActiveRecordGenerator
6
+ class ActiveRecordGenerator < Rails::Generators::Base
6
7
  include Rails::Generators::Migration
7
8
  extend ActiveRecord::Generators::Migration
8
9
 
@@ -1,4 +1,4 @@
1
- class CreateBatchy < ActiveRecord::Migration
1
+ class CreateBatches < ActiveRecord::Migration
2
2
  def self.up
3
3
  create_table :batchy_batches, :force => true do |table|
4
4
  table.datetime :started_at # When the batch started
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: batchy
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bob Briski
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- hash: -3557642558749458522
169
+ hash: 3460782034431426009
170
170
  segments:
171
171
  - 0
172
172
  version: "0"
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - ">="
177
177
  - !ruby/object:Gem::Version
178
- hash: -3557642558749458522
178
+ hash: 3460782034431426009
179
179
  segments:
180
180
  - 0
181
181
  version: "0"