faker_maker 1.1.4 → 1.1.5

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
  SHA256:
3
- metadata.gz: 1e4ab9d0a34167a7b16e6ee777d338f63398adcd44799975f0e48b4b62eae6a8
4
- data.tar.gz: 67806c647397291ff25dcaf7a216bfde0ac9b9fec4d461907d84c0215cef297c
3
+ metadata.gz: 1bf5ee706e6221f880b64d74dd5830524809e13f44a799c5b55394aaffb54f9a
4
+ data.tar.gz: 4294025bdea7deeba1145cb91d032a46e1943233457aa929f5e58462dd9dbbe3
5
5
  SHA512:
6
- metadata.gz: 842e0afa0e49d44a840043df4eb9db579b6c5efe0c8d11e8024f5af2ee8fda6bce2c10011b68d911aa71523d990d3500ece4957ccdcf5bddcb638abf284c2aeb
7
- data.tar.gz: fc167d095da7e2979fc051b1d372b951ce3f76da311e87841d56f5e7f9a1db713a2b6aa81050293feb1d6a3b60e10898d60ba2882adf07ca91b68214fca11d5a
6
+ metadata.gz: 10611fe0d0d343efe558a30b667cc9ade09bc52046e548af149d6347dd93793572a7ce36d4136b1f4f91e11c5ecf7cd0d2a54de2bb6475e7c8cecc0cc5c75238
7
+ data.tar.gz: 37bc68e4a7e5bdbc8741abb62b203f613091b93bfcef190ff6985300939660dc02025fd934dc55566998234b84ecd5b4365668d118769952692416598d91f020
@@ -37,6 +37,7 @@ module FakerMaker
37
37
  def []( name )
38
38
  factory = find_factory(name)
39
39
  raise NoSuchFactoryError, "No such factory '#{name}'" unless factory
40
+
40
41
  factory
41
42
  end
42
43
 
@@ -80,7 +80,7 @@ module FakerMaker
80
80
  end
81
81
 
82
82
  def find_attribute( name = '' )
83
- attributes.filter { |a| a.name == name }.first
83
+ attributes.filter { |a| [a.name, a.translation].include? name }.first
84
84
  end
85
85
 
86
86
  protected
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FakerMaker
4
- VERSION = '1.1.4'
4
+ VERSION = '1.1.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker_maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Brookes-Thomas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport