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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60768537f19d190aeb541ce593af5dcf8f9c3a08
4
- data.tar.gz: c887747c36f753fdfb17418e03ce6ff11b3dcbf3
3
+ metadata.gz: 0b679906dc962f8c72b89db66a5b11e3547158a6
4
+ data.tar.gz: b179ef09ede562e29bd211f7329f6a4a8b9eaf13
5
5
  SHA512:
6
- metadata.gz: 42ea08e1c336885ec9ef465381650e1e46270f9db51c9227edc853e118f309b026b6909b3c2e13a3bbd8f4cea17efed3e906def305c50d4cf34de43980cd8f1d
7
- data.tar.gz: 975eb8370ebb4b767f3a2300675bb5b2eb6da8e98fcaf41363152c68083ee72793e364152e3b8da816cd49552cb4d070af2f749b8bf2595c63760840bb3bd18d
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
@@ -1,3 +1,3 @@
1
1
  module Fix2factory
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-16 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler