factory_girl_sequences 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +7 -1
- data/lib/factory_girl_sequences/sequences.rb +2 -2
- data/lib/factory_girl_sequences/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a2fe9d2210c6fd16304ed08cd0fcf61bdfee603
|
4
|
+
data.tar.gz: 926fddfa26b556792403780d6976a6db674ad99e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf12b8c733e07a30ff133be109f7f5ab1dcb5d65e66a11b31e4a29cfde87de02728e8471ae71200017651114e346a3620c6cb846507fe25a61b36dd345eebef4
|
7
|
+
data.tar.gz: 4596de2c9f599c9b14747f9291ae4dd2d80f66eed58d422e78cd63787e86177db226ba18a7ed96deb1586fc20b574a266098d6b03a7be6d1023081f4154e5825
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -29,7 +29,7 @@ Or install it yourself as:
|
|
29
29
|
</tr>
|
30
30
|
<tr>
|
31
31
|
<td>integer</td>
|
32
|
-
<td>checksum</td>
|
32
|
+
<td>checksum, int</td>
|
33
33
|
<td>Integer</td>
|
34
34
|
<td>1</td>
|
35
35
|
</tr>
|
@@ -57,6 +57,12 @@ Or install it yourself as:
|
|
57
57
|
<td>Boolean</td>
|
58
58
|
<td>true</td>
|
59
59
|
</tr>
|
60
|
+
<tr>
|
61
|
+
<td>uuid</td>
|
62
|
+
<td>guid</td>
|
63
|
+
<td>String</td>
|
64
|
+
<td>0a4ea40d-e7ed-4fc1-890c-7af86c9c3a07</td>
|
65
|
+
</tr>
|
60
66
|
<tr>
|
61
67
|
<td>name</td>
|
62
68
|
<td>login, username, first_name, last_name</td>
|
@@ -2,14 +2,14 @@ module FactoryGirl
|
|
2
2
|
|
3
3
|
def self.register_default_sequences
|
4
4
|
# basic types
|
5
|
-
register_sequence(Sequence.new(:integer, :aliases => [:checksum]) { |n| n })
|
5
|
+
register_sequence(Sequence.new(:integer, :aliases => [:checksum, :int]) { |n| n })
|
6
6
|
register_sequence(Sequence.new(:string) { |n| "string-#{n}" })
|
7
7
|
register_sequence(Sequence.new(:date) { Date.current })
|
8
8
|
register_sequence(Sequence.new(:datetime) { Time.current })
|
9
9
|
register_sequence(Sequence.new(:boolean) { |n| [false, true][n%2] })
|
10
10
|
|
11
11
|
# personal
|
12
|
-
register_sequence(Sequence.new(:uuid) { SecureRandom.uuid })
|
12
|
+
register_sequence(Sequence.new(:uuid, :aliases => [:guid]) { SecureRandom.uuid })
|
13
13
|
register_sequence(Sequence.new(:name, :aliases => [:login, :username, :first_name, :last_name]) { |n| "name-#{n}" })
|
14
14
|
register_sequence(Sequence.new(:password) { |n| "password-#{n}" })
|
15
15
|
register_sequence(Sequence.new(:email) { |n| "person#{n}@example.com" })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_girl_sequences
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Kalyaev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_girl
|