factory_girl_sequences 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +98 -21
- data/factory_girl_sequences.gemspec +1 -1
- data/lib/factory_girl_sequences/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -15,26 +15,103 @@ Or install it yourself as:
|
|
|
15
15
|
|
|
16
16
|
## Sequences
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
<table>
|
|
19
|
+
<tr>
|
|
20
|
+
<th>Name</th>
|
|
21
|
+
<th>Aliases</th>
|
|
22
|
+
<th>Example</th>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr>
|
|
25
|
+
<td>:integer</td>
|
|
26
|
+
<td>-</td>
|
|
27
|
+
<td>1</td>
|
|
28
|
+
</tr>
|
|
29
|
+
<tr>
|
|
30
|
+
<td>:string</td>
|
|
31
|
+
<td>-</td>
|
|
32
|
+
<td>"string-1"</td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>:date</td>
|
|
36
|
+
<td>-</td>
|
|
37
|
+
<td>Sat, 20 Oct 2012</td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td>:datetime</td>
|
|
41
|
+
<td>-</td>
|
|
42
|
+
<td>Sat, 20 Oct 2012 16:38:59 MSK +04:00</td>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td>:boolean</td>
|
|
46
|
+
<td>-</td>
|
|
47
|
+
<td>true</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td>:name</td>
|
|
51
|
+
<td>:login, :first_name, :last_name</td>
|
|
52
|
+
<td>"name-1"</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td>:password</td>
|
|
56
|
+
<td>-</td>
|
|
57
|
+
<td>"password-1"</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td>:email</td>
|
|
61
|
+
<td>-</td>
|
|
62
|
+
<td>"person1@example.com"</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td>:ip_address</td>
|
|
66
|
+
<td>-</td>
|
|
67
|
+
<td>"192.168.0.1"</td>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td>:ip_subnet</td>
|
|
71
|
+
<td>-</td>
|
|
72
|
+
<td>"192.168.10.0"</td>
|
|
73
|
+
</tr>
|
|
74
|
+
<tr>
|
|
75
|
+
<td>:mac_address</td>
|
|
76
|
+
<td>-</td>
|
|
77
|
+
<td>"01:23:45:67:89:01"</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td>:title</td>
|
|
81
|
+
<td>-</td>
|
|
82
|
+
<td>"Title 1"</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>:body</td>
|
|
86
|
+
<td>:description</td>
|
|
87
|
+
<td>"body-1"</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr>
|
|
90
|
+
<td>:slug</td>
|
|
91
|
+
<td>-</td>
|
|
92
|
+
<td>"slug-1"</td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr>
|
|
95
|
+
<td>:domain</td>
|
|
96
|
+
<td>-</td>
|
|
97
|
+
<td>"example1.com"</td>
|
|
98
|
+
</tr>
|
|
99
|
+
<tr>
|
|
100
|
+
<td>:subdomain</td>
|
|
101
|
+
<td>-</td>
|
|
102
|
+
<td>"blog1"</td>
|
|
103
|
+
</tr>
|
|
104
|
+
<tr>
|
|
105
|
+
<td>:color</td>
|
|
106
|
+
<td>-</td>
|
|
107
|
+
<td>"333333"</td>
|
|
108
|
+
</tr>
|
|
109
|
+
<tr>
|
|
110
|
+
<td>:checksum</td>
|
|
111
|
+
<td>-</td>
|
|
112
|
+
<td>1</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</table>
|
|
38
115
|
|
|
39
116
|
## Usage
|
|
40
117
|
|
|
@@ -66,7 +143,7 @@ end
|
|
|
66
143
|
|
|
67
144
|
Check out FactoryGirl's [GETTING_STARTED](https://github.com/thoughtbot/factory_girl) for more information.
|
|
68
145
|
|
|
69
|
-
##
|
|
146
|
+
## Additional notes
|
|
70
147
|
|
|
71
148
|
All sequences are free to use and
|
|
72
149
|
could be changed depending on your needs. Just copy the sequence in your
|
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
|
6
6
|
gem.email = ["anton.kalyaev@gmail.com"]
|
|
7
7
|
gem.description = %q{factory_girl_sequences provides a collection of useful FactoryGirl sequences}
|
|
8
8
|
gem.summary = %q{Collection of useful FactoryGirl sequences}
|
|
9
|
-
gem.homepage = ""
|
|
9
|
+
gem.homepage = "http://github.com/akalyaev/factory_girl_sequences"
|
|
10
10
|
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: factory_girl_sequences
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -110,7 +110,7 @@ files:
|
|
|
110
110
|
- lib/factory_girl_sequences.rb
|
|
111
111
|
- lib/factory_girl_sequences/sequences.rb
|
|
112
112
|
- lib/factory_girl_sequences/version.rb
|
|
113
|
-
homepage:
|
|
113
|
+
homepage: http://github.com/akalyaev/factory_girl_sequences
|
|
114
114
|
licenses: []
|
|
115
115
|
post_install_message:
|
|
116
116
|
rdoc_options: []
|
|
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
124
124
|
version: '0'
|
|
125
125
|
segments:
|
|
126
126
|
- 0
|
|
127
|
-
hash:
|
|
127
|
+
hash: -2488072498665253576
|
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
none: false
|
|
130
130
|
requirements:
|
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
version: '0'
|
|
134
134
|
segments:
|
|
135
135
|
- 0
|
|
136
|
-
hash:
|
|
136
|
+
hash: -2488072498665253576
|
|
137
137
|
requirements: []
|
|
138
138
|
rubyforge_project:
|
|
139
139
|
rubygems_version: 1.8.24
|