fixture_generator 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -11,14 +11,14 @@ Installation
11
11
  Usage
12
12
  -----
13
13
 
14
- class MyFixtureGenerator < FixtureGenerator
15
- def populate
16
- # Create your records here and add them to the fixture set by calling
17
- # 'add_record(record_name, record_object)'. That's it!
14
+ class MyFixtureGenerator < FixtureGenerator
15
+ def populate
16
+ # Create your records here and add them to the fixture set by calling
17
+ # 'add_record(record_name, record_object)'. That's it!
18
+ end
18
19
  end
19
- end
20
20
 
21
- rake fixtures:generate GENERATOR="MyFixtureGenerator"
21
+ rake fixtures:generate GENERATOR="MyFixtureGenerator"
22
22
 
23
23
  Author
24
24
  ------
data/Rakefile CHANGED
@@ -6,6 +6,8 @@ namespace :fixtures do
6
6
  # Work with test db.
7
7
  RAILS_ENV = ENV['RAILS_ENV'] = "test"
8
8
 
9
+ require Rails.root + "/lib/" + ENV['GENERATOR'].underscore
10
+
9
11
  # Clean the database first.
10
12
  puts "*** FixturePopulator :: Cleaning the database"
11
13
  Rake::Task["cleandbtest"].invoke
@@ -1,3 +1,3 @@
1
- module FixtureGenerator
2
- VERSION = "0.0.1"
1
+ class FixtureGenerator
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Satyaram B V