factory_girl_sequences 4.1.0 → 4.2.0
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.
- checksums.yaml +7 -0
- data/.travis.yml +2 -1
- data/Appraisals +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +7 -1
- data/gemfiles/rails4.0.gemfile +3 -0
- data/gemfiles/rails4.0.gemfile.lock +14 -1
- data/lib/factory_girl_sequences/sequences.rb +1 -0
- data/lib/factory_girl_sequences/version.rb +1 -1
- metadata +9 -21
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a8743ca52eda21533086d44eaa690a3634506094
|
|
4
|
+
data.tar.gz: 52d723233e4b7c471c33a5e42a448beda484ef6c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 6dc5c0795e5b4bc32742cf95f5f9884ff7970bf81161b8c865b30c158d4f591059dc54247cd054a39fd22383ab2a97126a28c08bae90bd9ed6ef0ac0adf4a242
|
|
7
|
+
data.tar.gz: 4a6ccc00280dfc6f793f47ec4079f5719a4bc3f17ac534a7fe2baa0f0cb11b6860c139dad179fd6d38d71803ba27344d8b8ea0856d9a0826157c7c2de3803900
|
data/.travis.yml
CHANGED
|
@@ -10,10 +10,11 @@ before_install:
|
|
|
10
10
|
- gem update --system
|
|
11
11
|
- gem install turn --version 0.8.2
|
|
12
12
|
- gem install turn --version 0.8.3
|
|
13
|
+
before_script: bundle exec rake appraisal:install
|
|
13
14
|
jdk:
|
|
14
15
|
- openjdk7
|
|
15
16
|
gemfile:
|
|
16
|
-
- gemfiles/
|
|
17
|
+
- gemfiles/rails4.0.gemfile
|
|
17
18
|
branches:
|
|
18
19
|
only:
|
|
19
20
|
- master
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -153,6 +153,12 @@ Or install it yourself as:
|
|
|
153
153
|
<td>String</td>
|
|
154
154
|
<td>JS74sef41ZosXek1ndvY</td>
|
|
155
155
|
</tr>
|
|
156
|
+
<tr>
|
|
157
|
+
<td>seat</td>
|
|
158
|
+
<td>-</td>
|
|
159
|
+
<td>String</td>
|
|
160
|
+
<td>01A</td>
|
|
161
|
+
</tr>
|
|
156
162
|
</table>
|
|
157
163
|
|
|
158
164
|
## Usage
|
|
@@ -185,7 +191,7 @@ end
|
|
|
185
191
|
|
|
186
192
|
Check out FactoryGirl's [GETTING_STARTED](http://github.com/thoughtbot/factory_girl) for more information.
|
|
187
193
|
|
|
188
|
-
### Spork or
|
|
194
|
+
### Spork or TConsole
|
|
189
195
|
|
|
190
196
|
For whose of you who are using spork or tconsole, consider adding `FactoryGirlSequences.reload` right after `FactoryGirl.reload`.
|
|
191
197
|
|
data/gemfiles/rails4.0.gemfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: /projects/fun-box/factory_girl_sequences
|
|
3
3
|
specs:
|
|
4
|
-
factory_girl_sequences (4.
|
|
4
|
+
factory_girl_sequences (4.1.0)
|
|
5
5
|
activesupport (>= 3.0.0)
|
|
6
6
|
factory_girl (~> 4.0)
|
|
7
7
|
|
|
@@ -61,6 +61,10 @@ GEM
|
|
|
61
61
|
multi_json (~> 1.3)
|
|
62
62
|
hike (1.2.3)
|
|
63
63
|
i18n (0.6.5)
|
|
64
|
+
jbuilder (1.5.2)
|
|
65
|
+
activesupport (>= 3.0.0)
|
|
66
|
+
multi_json (>= 1.2.0)
|
|
67
|
+
json (1.8.1)
|
|
64
68
|
mail (2.5.4)
|
|
65
69
|
mime-types (~> 1.16)
|
|
66
70
|
treetop (~> 1.4.8)
|
|
@@ -85,8 +89,13 @@ GEM
|
|
|
85
89
|
rake (>= 0.8.7)
|
|
86
90
|
thor (>= 0.18.1, < 2.0)
|
|
87
91
|
rake (10.1.0)
|
|
92
|
+
rdoc (3.12.2)
|
|
93
|
+
json (~> 1.4)
|
|
88
94
|
rspec-expectations (2.14.4)
|
|
89
95
|
diff-lcs (>= 1.1.3, < 2.0)
|
|
96
|
+
sdoc (0.3.20)
|
|
97
|
+
json (>= 1.1.3)
|
|
98
|
+
rdoc (~> 3.10)
|
|
90
99
|
sprockets (2.10.0)
|
|
91
100
|
hike (~> 1.2)
|
|
92
101
|
multi_json (~> 1.0)
|
|
@@ -96,6 +105,7 @@ GEM
|
|
|
96
105
|
actionpack (>= 3.0)
|
|
97
106
|
activesupport (>= 3.0)
|
|
98
107
|
sprockets (~> 2.8)
|
|
108
|
+
sqlite3 (1.3.8)
|
|
99
109
|
thor (0.18.1)
|
|
100
110
|
thread_safe (0.1.3)
|
|
101
111
|
atomic
|
|
@@ -114,5 +124,8 @@ DEPENDENCIES
|
|
|
114
124
|
cucumber (~> 1.2.1)
|
|
115
125
|
factory_girl_rails
|
|
116
126
|
factory_girl_sequences!
|
|
127
|
+
jbuilder
|
|
117
128
|
rails (= 4.0)
|
|
118
129
|
rake
|
|
130
|
+
sdoc
|
|
131
|
+
sqlite3
|
|
@@ -31,6 +31,7 @@ module FactoryGirl
|
|
|
31
31
|
register_sequence(Sequence.new(:color) { |n| "%06d" % n })
|
|
32
32
|
register_sequence(Sequence.new(:timestamp) { Time.current.to_i })
|
|
33
33
|
register_sequence(Sequence.new(:token) { |n| SecureRandom.base64(15).tr('+/=lIO0', "token#{n}") })
|
|
34
|
+
register_sequence(Sequence.new(:seat, 0) { |n| "%02d%s" % [n % 50 + 1, ('A'..'Z').to_a[n / 50 % 26]] })
|
|
34
35
|
end
|
|
35
36
|
end
|
|
36
37
|
|
metadata
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: factory_girl_sequences
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 4.2.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Anton Kalyaev
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: factory_girl
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
17
|
- - ~>
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
@@ -22,7 +20,6 @@ dependencies:
|
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
24
|
- - ~>
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
@@ -30,17 +27,15 @@ dependencies:
|
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: activesupport
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - '>='
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
33
|
version: 3.0.0
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
|
-
- -
|
|
38
|
+
- - '>='
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
45
40
|
version: 3.0.0
|
|
46
41
|
description: factory_girl_sequences provides a collection of useful FactoryGirl sequences
|
|
@@ -76,6 +71,7 @@ files:
|
|
|
76
71
|
homepage: http://github.com/akalyaev/factory_girl_sequences
|
|
77
72
|
licenses:
|
|
78
73
|
- MIT
|
|
74
|
+
metadata: {}
|
|
79
75
|
post_install_message:
|
|
80
76
|
rdoc_options:
|
|
81
77
|
- --line-numbers
|
|
@@ -87,28 +83,20 @@ rdoc_options:
|
|
|
87
83
|
require_paths:
|
|
88
84
|
- lib
|
|
89
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
|
-
none: false
|
|
91
86
|
requirements:
|
|
92
|
-
- -
|
|
87
|
+
- - '>='
|
|
93
88
|
- !ruby/object:Gem::Version
|
|
94
89
|
version: '0'
|
|
95
|
-
segments:
|
|
96
|
-
- 0
|
|
97
|
-
hash: 736351186404686867
|
|
98
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
|
-
none: false
|
|
100
91
|
requirements:
|
|
101
|
-
- -
|
|
92
|
+
- - '>='
|
|
102
93
|
- !ruby/object:Gem::Version
|
|
103
94
|
version: '0'
|
|
104
|
-
segments:
|
|
105
|
-
- 0
|
|
106
|
-
hash: 736351186404686867
|
|
107
95
|
requirements: []
|
|
108
96
|
rubyforge_project:
|
|
109
|
-
rubygems_version: 1.
|
|
97
|
+
rubygems_version: 2.1.11
|
|
110
98
|
signing_key:
|
|
111
|
-
specification_version:
|
|
99
|
+
specification_version: 4
|
|
112
100
|
summary: Collection of useful FactoryGirl sequences
|
|
113
101
|
test_files:
|
|
114
102
|
- features/sequences.feature
|