fast_gettext 1.1.0 → 1.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: f1c679c3594754eaf0836fe85d8727b4a104127f
4
- data.tar.gz: 65b5ca0ccd954bc5b173d3076c0094f7cbfa8e83
3
+ metadata.gz: 7543c02e0361c80f8c4183cbd26e551034c9f390
4
+ data.tar.gz: e9cdba2887a861f9b60290c06267404c57f9f1b9
5
5
  SHA512:
6
- metadata.gz: 641ee741ba7027c9e85cdf8bd83f4cc1877bebe583633b52be941e0de1cb2794944fadea3916bcf929559faed7d00889aa85c362b6ad1892f4665016fbc05d7a
7
- data.tar.gz: 304487d75a07a5b33e6b4241e332225b37e3e647e474fe77fd56aa23c4437a548a084a43d5b669dc6af0630815af209d875c320c6651d2f85b91c096c0db1886
6
+ metadata.gz: '08ffcef07de38dc33ecc5269a0df3a27973e9c2b927ea26b53f7139a3a62660a021b95f298f0e3e95ca05ffa5dd8f696ce0f46e1a651a1a1a5cc3dbc5c95c98d'
7
+ data.tar.gz: 6566bc45ee0075f66d31cbac59ca5b1e8a7416d446f82150bbf0f3d688bd47b120d18d5bd9050c6efadb673b7ad75da549d4abf234d7edf8d8baf93ef263c98e
@@ -32,7 +32,7 @@ module FastGettext
32
32
  parser.report_warning = options.fetch(:report_warning, true)
33
33
 
34
34
  mo_file = FastGettext::GetText::MOFile.new
35
- parser.parse(File.read(file), mo_file)
35
+ parser.parse_file(file, mo_file)
36
36
  mo_file
37
37
  end
38
38
  end
@@ -29,7 +29,7 @@ module FastGettext
29
29
  def find_and_store_files(name,options)
30
30
  # parse all .mo files with the right name, that sit in locale/LC_MESSAGES folders
31
31
  find_files_in_locale_folders(File.join('LC_MESSAGES',"#{name}.mo"), options[:path]) do |locale,file|
32
- MoFile.new(file, eager_load: @eager_load)
32
+ MoFile.new(file, :eager_load => @eager_load)
33
33
  end
34
34
  end
35
35
 
@@ -133,7 +133,7 @@ module GetText
133
133
 
134
134
  def parse_file(po_file, data)
135
135
  args = [ po_file ]
136
- # In Ruby 1.9, we must detect proper encoding of a PO file.
136
+ # We should not try to detect the string encoding in Ruby 1.8
137
137
  if String.instance_methods.include?(:encode)
138
138
  encoding = detect_file_encoding(po_file)
139
139
  args << "r:#{encoding}"
@@ -1,3 +1,3 @@
1
1
  module FastGettext
2
- VERSION = Version = '1.1.0'
2
+ VERSION = Version = '1.1.1'
3
3
  end
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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-30 00:00:00.000000000 Z
11
+ date: 2018-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.4.5.1
163
+ rubygems_version: 2.6.14
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: A simple, fast, memory-efficient and threadsafe implementation of GetText