gettext-setup 0.32 → 1.1.0

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
  SHA256:
3
- metadata.gz: 315986eb565027255b74f20b6280ac61bfc4fbde16f6a8834514479896d836ef
4
- data.tar.gz: cf2cf5d708d1d9feec66908f939d512ed5b4e6cac31017c88bc0f5a7139e3ad2
3
+ metadata.gz: dadb73f3c9adfd81764d0813a95af29acd6a0196dd4d36c70013875c1ddb3f47
4
+ data.tar.gz: a9a5a05fbc10d602c508fd2da911ac0d7be7d42b20c813f6ba1e8b5fb8755bbb
5
5
  SHA512:
6
- metadata.gz: 92e1b0585eeec020a0d3cbb49c1b100cec89fa055af98c6a9f58edef7676e56f4dc29ca6704e60ab617b0e7de4c0ad2c28c2734ed49c84048a529188efc200cb
7
- data.tar.gz: 39adfeed57383872989cce413967662f9a72cde9ebf768a261d6867d84a55fcf0055d1956064e5a4fdb72f2f4cc6ca4795a2210b5387f1754b11a40e7f973318
6
+ metadata.gz: 26a245543a5bc5506062f446db9aecba43b1f7d76bce62ec1eb8510ac9441713120cb03017e138bb0e1975b4570a226f391ee4228f038931e77ae7aac0b2cb4e
7
+ data.tar.gz: 8792eff57bfd1a6661f9e602b67167b98471ab691edba5860919bbb7a6a575058561a859778505ed287ecf6ea74767e57a22b0f7def4e7bc712e48d69d11c2f0
@@ -25,7 +25,7 @@ module GettextSetup
25
25
  GettextSetup.initialize_config(locales_path)
26
26
 
27
27
  # Make the translation methods available everywhere
28
- Object.include FastGettext::Translation
28
+ Object.send(:include, FastGettext::Translation)
29
29
 
30
30
  # Define our text domain, and set the path into our root. I would prefer to
31
31
  # have something smarter, but we really want this up earlier even than our
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.32'
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_gettext
@@ -16,34 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: '2.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.0
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gettext
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 3.0.2
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: 3.3.0
33
+ version: '3.4'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 3.0.2
44
- - - "<"
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: 3.3.0
40
+ version: '3.4'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: locale
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -202,9 +196,6 @@ files:
202
196
  - spec/fixtures/string_changes/non_string_changes.pot
203
197
  - spec/fixtures/string_changes/old.pot
204
198
  - spec/fixtures/string_changes/remove.pot
205
- - spec/fixtures/tmp_locales/config.yaml
206
- - spec/fixtures/tmp_locales/de/sinatra-i18n.po
207
- - spec/fixtures/tmp_locales/sinatra-i18n.pot
208
199
  - spec/lib/gettext-setup/gettext_setup_spec.rb
209
200
  - spec/lib/gettext-setup/metadata_pot_spec.rb
210
201
  - spec/lib/gettext-setup/pot_spec.rb
@@ -222,38 +213,35 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
213
  requirements:
223
214
  - - ">="
224
215
  - !ruby/object:Gem::Version
225
- version: 1.9.2
216
+ version: 2.5.0
226
217
  required_rubygems_version: !ruby/object:Gem::Requirement
227
218
  requirements:
228
219
  - - ">="
229
220
  - !ruby/object:Gem::Version
230
221
  version: '0'
231
222
  requirements: []
232
- rubygems_version: 3.0.3
223
+ rubygems_version: 3.2.33
233
224
  signing_key:
234
225
  specification_version: 4
235
226
  summary: A gem to ease internationalization with fast_gettext
236
227
  test_files:
237
- - spec/spec_helper.rb
238
- - spec/lib/tasks/gettext_rake_spec.rb
239
- - spec/lib/gettext-setup/pot_spec.rb
240
- - spec/lib/gettext-setup/metadata_pot_spec.rb
241
- - spec/lib/gettext-setup/gettext_setup_spec.rb
242
- - spec/fixtures/fixture_locales/test_strings.rb
243
228
  - spec/fixtures/fixture_locales/config.yaml
244
229
  - spec/fixtures/fixture_locales/fixture_locales.pot
245
230
  - spec/fixtures/fixture_locales/jp/fixture_locales.po
246
- - spec/fixtures/locales/sinatra-i18n.pot
231
+ - spec/fixtures/fixture_locales/test_strings.rb
247
232
  - spec/fixtures/locales/config.yaml
248
233
  - spec/fixtures/locales/de/sinatra-i18n.po
234
+ - spec/fixtures/locales/sinatra-i18n.pot
249
235
  - spec/fixtures/merge_locales/config.yaml
236
+ - spec/fixtures/spec_locales/config.yaml
237
+ - spec/fixtures/spec_locales/sinatra-i18n.pot
238
+ - spec/fixtures/string_changes/add.pot
239
+ - spec/fixtures/string_changes/change.pot
250
240
  - spec/fixtures/string_changes/non_string_changes.pot
251
- - spec/fixtures/string_changes/remove.pot
252
241
  - spec/fixtures/string_changes/old.pot
253
- - spec/fixtures/string_changes/change.pot
254
- - spec/fixtures/string_changes/add.pot
255
- - spec/fixtures/spec_locales/sinatra-i18n.pot
256
- - spec/fixtures/spec_locales/config.yaml
257
- - spec/fixtures/tmp_locales/sinatra-i18n.pot
258
- - spec/fixtures/tmp_locales/config.yaml
259
- - spec/fixtures/tmp_locales/de/sinatra-i18n.po
242
+ - spec/fixtures/string_changes/remove.pot
243
+ - spec/lib/gettext-setup/gettext_setup_spec.rb
244
+ - spec/lib/gettext-setup/metadata_pot_spec.rb
245
+ - spec/lib/gettext-setup/pot_spec.rb
246
+ - spec/lib/tasks/gettext_rake_spec.rb
247
+ - spec/spec_helper.rb
@@ -1,22 +0,0 @@
1
- ---
2
- # This is the project-specific configuration file for setting up
3
- # fast_gettext for your project.
4
- gettext:
5
- # This is used for the name of the .pot and .po files; they will be
6
- # called <project_name>.pot?
7
- project_name: 'sinatra-i18n'
8
- # This is used in comments in the .pot and .po files to indicate what
9
- # project the files belong to and should bea little more desctiptive than
10
- # <project_name>
11
- package_name: Sinatra i18n demo
12
- # The locale that the default messages in the .pot file are in
13
- default_locale: en
14
- # The email used for sending bug reports.
15
- bugs_address: docs@puppetlabs.com
16
- # The holder of the copyright.
17
- copyright_holder: Puppet Labs, LLC.
18
- # Patterns for +Dir.glob+ used to find all files that might contain
19
- # translatable content, relative to the project root directory
20
- source_files:
21
- - 'lib/**/*.rb'
22
- - 'spec/**/*.rb'
@@ -1,23 +0,0 @@
1
- # German translations for Sinatra i18n demo package.
2
- # Copyright (C) 2016 Puppet Labs, LLC.
3
- # This file is distributed under the same license as the Sinatra i18n demo package.
4
- # Automatically generated, 2016.
5
- #
6
- msgid ""
7
- msgstr ""
8
- "Project-Id-Version: Sinatra i18n demo \n"
9
- "Report-Msgid-Bugs-To: docs@puppetlabs.com\n"
10
- "POT-Creation-Date: 2016-04-05 10:39-0700\n"
11
- "PO-Revision-Date: 2016-02-26 18:21-0800\n"
12
- "Last-Translator: Automatically generated\n"
13
- "Language-Team: none\n"
14
- "Language: de\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=UTF-8\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
-
20
- #: ../app.rb:14
21
- msgid "Hello, world!"
22
- msgstr "Hallo, Welt!"
23
-
@@ -1,40 +0,0 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2017 Puppet Labs, LLC.
3
- # This file is distributed under the same license as the Sinatra i18n demo package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: Sinatra i18n demo 0.21-4-geccdac4\n"
10
- "\n"
11
- "Report-Msgid-Bugs-To: docs@puppetlabs.com\n"
12
- "POT-Creation-Date: 2017-04-11 20:08-0500\n"
13
- "PO-Revision-Date: 2017-04-11 20:08-0500\n"
14
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
- "Language-Team: LANGUAGE <LL@li.org>\n"
16
- "Language: \n"
17
- "MIME-Version: 1.0\n"
18
- "Content-Type: text/plain; charset=UTF-8\n"
19
- "Content-Transfer-Encoding: 8bit\n"
20
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
21
-
22
- #: ../../lib/gettext_setup_spec.rb:26 ../../lib/gettext_setup_spec.rb:89 ../../lib/gettext_setup_spec.rb:91
23
- msgid "Hello, world!"
24
- msgstr ""
25
-
26
- #: ../../lib/pot_spec.rb:52
27
- msgid "merged-po-file"
28
- msgstr ""
29
-
30
- #: ../../lib/pot_spec.rb:74
31
- msgid "no-pot-file"
32
- msgstr ""
33
-
34
- #: ../../lib/pot_spec.rb:85
35
- msgid "some-spec-only-string"
36
- msgstr ""
37
-
38
- #: ../../lib/pot_spec.rb:104
39
- msgid "unchanged-string"
40
- msgstr ""