fast_gettext 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fast_gettext/po_file.rb +1 -1
- data/lib/fast_gettext/storage.rb +1 -1
- data/lib/fast_gettext/vendor/poparser.rb +2 -7
- data/lib/fast_gettext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00720893487b6496102574c6302dc74e831aaad3
|
4
|
+
data.tar.gz: ea6917530ee8faed80e2fa49137eaeadfbf0022b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23249a3be0a308050d90db7bb2e0779aae1e4f9672af4f8dc3f14271c84fcab06efce803042ca492d46e0e8538db6a3c102443a534d6ec291fe8aa21dba2459f
|
7
|
+
data.tar.gz: 6bc2e948a165600cc6296715940508175a7479f413d739cefb3039b06f999fd63154dd48c93acb59706696248442d3d1b8b93b00ef4f8925c48e5aec7bc45364
|
data/lib/fast_gettext/po_file.rb
CHANGED
data/lib/fast_gettext/storage.rb
CHANGED
@@ -132,14 +132,9 @@ module GetText
|
|
132
132
|
end
|
133
133
|
|
134
134
|
def parse_file(po_file, data)
|
135
|
-
args = [ po_file ]
|
136
|
-
# In Ruby 1.9, we must detect proper encoding of a PO file.
|
137
|
-
if String.instance_methods.include?(:encode)
|
138
|
-
encoding = detect_file_encoding(po_file)
|
139
|
-
args << "r:#{encoding}"
|
140
|
-
end
|
141
135
|
@po_file = po_file
|
142
|
-
|
136
|
+
encoding = detect_file_encoding(po_file)
|
137
|
+
parse(File.open(po_file, "r:#{encoding}") {|io| io.read }, data)
|
143
138
|
end
|
144
139
|
|
145
140
|
def detect_file_encoding(po_file)
|
data/lib/fast_gettext/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_gettext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|