modlr 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/modlr/version.rb +1 -1
  2. data/lib/modlr.rb +14 -8
  3. metadata +1 -1
data/lib/modlr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Modlr
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/modlr.rb CHANGED
@@ -1,14 +1,20 @@
1
1
  module Modlr
2
- def self.included(base)
3
- base.extend nil
4
- end
2
+ ##
3
+ # modlr :class, number_of_records, {:field => :type, :field => type}
4
+ #
5
+ # If I have a User class, with fields name (string), and age (int), then
6
+ # `modlr :user, 100, {:name => :name, :age => :age}`
7
+ # will create 100 user records with names and ages which make sense.
8
+ #
9
+ #
10
+ ##
5
11
 
6
- module ClassMethods
7
- def modlr(*args, &block)
12
+ module ModlrSetup
13
+ def modlr(model, number, &args)
14
+ puts model, number, args
8
15
  end
16
+
9
17
  end
10
- end
11
18
 
12
- class ActiveRecord::Base
13
- include Modlr
19
+
14
20
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: modlr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Radford