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 +4 -4
- data/jaimito.gemspec +1 -1
- data/lib/jaimito/mail_template.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a59447599c72cdbf398379e5ea772f4b313c618
|
4
|
+
data.tar.gz: f555d0aacab16c507cd72c42e34ed116bb1abeac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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.
|
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-
|
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.
|
184
|
+
rubygems_version: 2.4.5
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: ''
|