jaimito 0.1.0 → 0.1.1

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: b02881110ef2ea65e308e8866c372a567400e4f8
4
- data.tar.gz: 49745cd8b92a287e8d3c93d9a2d80d6af57f5bfb
3
+ metadata.gz: 0a59447599c72cdbf398379e5ea772f4b313c618
4
+ data.tar.gz: f555d0aacab16c507cd72c42e34ed116bb1abeac
5
5
  SHA512:
6
- metadata.gz: 2b39224ab46f3ee17fc8522326c9f953947711371c66fc13215d93d1d7bc1087a5d1cd1cb74e49beb54e7d18b53f9b50a74d5bde3b411dcf252f60986c5f71c3
7
- data.tar.gz: c6ba810965aabde872e2b1475ccfe7804a936b89e23d1219e6a8239ca2490f7bea3c70aedf3f2982279a50bbbdfe3bd15245f7597cef1329bdcc74aaec64c2df
6
+ metadata.gz: d3b726063f340b5b9ba18b62121f5260c10310c683ea85be9d3e871edf4685893fba8f7d7f721090daf270f4c208bfb4c00338852952ec784d51749d4df306b9
7
+ data.tar.gz: 53b798a31df693b521b7774d9ed7e3293346cc995feaa97a0645d048f2052081e00a98322ca89b7f37b568fc02dad685a4d328144e33c18a9d28a1bfdacb7aa9
data/jaimito.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.summary = ''
10
10
  s.authors = ['Thiago Porto', 'Hideki Matsumoto']
11
11
  s.email = 'contato@vizir.com.br'
12
- s.version = '0.1.0'
12
+ s.version = '0.1.1'
13
13
  s.homepage = 'https://github.com/Vizir/jaimito'
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.licenses = ['MIT license (MIT)']
@@ -34,7 +34,9 @@ module Jaimito
34
34
  def self.hash_of_attributes_and_translations(klass, class_name)
35
35
  attributes_hash = {}
36
36
  klass.attribute_names.each do |attr|
37
- attributes_hash[attr.to_sym] = attr if I18n.exists?( "jaimito.translated_attributes_names.#{class_name}.#{attr}")
37
+ if I18n.exists?( "jaimito.translated_attributes_names.#{class_name}.#{attr}")
38
+ attributes_hash[attr.to_sym] = I18n.t("jaimito.translated_attributes_names.#{class_name}.#{attr}")
39
+ end
38
40
  end
39
41
  attributes_hash
40
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jaimito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Porto
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-01 00:00:00.000000000 Z
12
+ date: 2016-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sanitize
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.2.2
184
+ rubygems_version: 2.4.5
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: ''