spawn 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +10 -3
- data/lib/spawn.rb +1 -1
- data/spawn.gemspec +1 -1
- metadata +14 -5
data/README.markdown
CHANGED
@@ -16,6 +16,11 @@ Usage
|
|
16
16
|
In the examples below we are using [Faker](http://faker.rubyforge.org/)
|
17
17
|
to generate random data, but you can use any method.
|
18
18
|
|
19
|
+
Note that the object the spawner block yields is not an instance of
|
20
|
+
User, but an OpenStruct that records the attributes passed and will in
|
21
|
+
turn relay that information when the User is instantiated.
|
22
|
+
|
23
|
+
|
19
24
|
With [ActiveRecord](http://api.rubyonrails.org/classes/ActiveRecord/Base.html):
|
20
25
|
|
21
26
|
class User < ActiveRecord::Base
|
@@ -110,10 +115,12 @@ Installation
|
|
110
115
|
|
111
116
|
$ sudo gem install spawn
|
112
117
|
|
113
|
-
###
|
118
|
+
### Contributors
|
114
119
|
|
115
|
-
Thanks to [Foca](http://github.com/foca)
|
116
|
-
[Pedro](http://github.com/peterpunk)
|
120
|
+
Thanks to [Foca](http://github.com/foca),
|
121
|
+
[Pedro](http://github.com/peterpunk) and
|
122
|
+
[Diego](http://github.com/oboxodo) for the suggestions and improvements
|
123
|
+
to this tiny library.
|
117
124
|
|
118
125
|
License
|
119
126
|
-------
|
data/lib/spawn.rb
CHANGED
data/spawn.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'spawn'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.4'
|
4
4
|
s.summary = %{Simple fixtures replacement for Sequel, ActiveRecord, Ohm and probably many other ORMs}
|
5
5
|
s.description = %{Spawn is a very small library (just 14 lines of code) that can effectively replace fixtures or any other library for the same task.}
|
6
6
|
s.authors = ["Michel Martens", "Damian Janowski"]
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spawn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Michel Martens
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2010-09-02 00:00:00 -03:00
|
14
19
|
default_executable:
|
15
20
|
dependencies: []
|
16
21
|
|
@@ -45,21 +50,25 @@ rdoc_options: []
|
|
45
50
|
require_paths:
|
46
51
|
- lib
|
47
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
48
54
|
requirements:
|
49
55
|
- - ">="
|
50
56
|
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 0
|
51
59
|
version: "0"
|
52
|
-
version:
|
53
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
54
62
|
requirements:
|
55
63
|
- - ">="
|
56
64
|
- !ruby/object:Gem::Version
|
65
|
+
segments:
|
66
|
+
- 0
|
57
67
|
version: "0"
|
58
|
-
version:
|
59
68
|
requirements: []
|
60
69
|
|
61
70
|
rubyforge_project: spawner
|
62
|
-
rubygems_version: 1.3.
|
71
|
+
rubygems_version: 1.3.7
|
63
72
|
signing_key:
|
64
73
|
specification_version: 3
|
65
74
|
summary: Simple fixtures replacement for Sequel, ActiveRecord, Ohm and probably many other ORMs
|