fix2factory 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fix2factory/fixture_parser.rb +6 -0
- data/lib/fix2factory/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: 0b679906dc962f8c72b89db66a5b11e3547158a6
|
4
|
+
data.tar.gz: b179ef09ede562e29bd211f7329f6a4a8b9eaf13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 310516dedca27d048ee7bc383be4358e1ff59bff14dad2c62f2b43b74cfce281e4d16b80ea1706af4b0adec7e9339dfd97f2abfcbb174ce20b557de263ea7e2e
|
7
|
+
data.tar.gz: 7b95b9ddf82fcb58a9352c2d4fa1cf633e38820084c988e5a843b41a54e13a68b9362604efbb016a521caaa5884df01e3c462eb2e1a4739f4273693ad1da3248
|
@@ -50,6 +50,12 @@ module Fix2factory
|
|
50
50
|
attributes.map { |attr| write_factory_attribute(name, attr) }
|
51
51
|
end
|
52
52
|
|
53
|
+
def attributes_for(name)
|
54
|
+
@current_fixture[name].map do |k, v|
|
55
|
+
k if k != 'id'
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
53
59
|
def write_factory_attribute(name, attribute)
|
54
60
|
attr_value = @current_fixture[name][attribute]
|
55
61
|
# String needs quotation marks in Factory Girl
|
data/lib/fix2factory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fix2factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Teddy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|