idiom 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/idiom.gemspec +2 -2
- data/lib/idiom/base.rb +0 -5
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/idiom.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "idiom"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Coleman"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-03-09"
|
13
13
|
s.description = "Takes a set of keys in Yaml format and translates them through Google Translate."
|
14
14
|
s.email = "progressions@gmail.com"
|
15
15
|
s.executables = ["idiom"]
|
data/lib/idiom/base.rb
CHANGED
@@ -89,10 +89,6 @@ module Idiom #:nodoc:
|
|
89
89
|
index += 1
|
90
90
|
end
|
91
91
|
|
92
|
-
if lang !~ /^en/ && value != value.downcase
|
93
|
-
value = value.capitalize
|
94
|
-
end
|
95
|
-
|
96
92
|
value.gsub!("{{", "{{_")
|
97
93
|
value.gsub!("}}", "_}}")
|
98
94
|
|
@@ -115,7 +111,6 @@ module Idiom #:nodoc:
|
|
115
111
|
value.gsub!(/\\$/, "")
|
116
112
|
|
117
113
|
value.strip!
|
118
|
-
value.capitalize!
|
119
114
|
value = "\"#{value}\"" if value.present?
|
120
115
|
|
121
116
|
# Replace substitution vars
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idiom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Coleman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-09 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|