fast_gettext 2.1.0 → 2.3.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: 91bc0d49ead2bfbfad8065858e52255dfcd9938cb547f0b20984bb12cc202380
4
- data.tar.gz: 45c2e546d2041e36b82a4d82593d4b1c014d46da561996037a76d6e911ed2cdb
3
+ metadata.gz: fd142399ba76554f219419441c5591bcbaec03952fd4e9c78fe10d3a4853f13e
4
+ data.tar.gz: f2bced062cbea2a26a5f516a827919d9b6a5851ac8cecd90fed2d1d3196d7f4b
5
5
  SHA512:
6
- metadata.gz: 1120024578b173fb99e2bf879b22654723efede889a98d7d950c8201aef11261566f6c70a6247f8ce937fef9f7ec88fe1a6dc9a874331e6cc41fbed55cc651f2
7
- data.tar.gz: 6cdbf2dcec813b6fb0c0da4b87af33c372a2f87ea177fdafd0203cf3f45f565a5fe64b4e41fe4fedcd4450ec1a7196d4c5a015df35470b4cfdb8b21e4037b137
6
+ metadata.gz: 4de75b912d96f43333ad82b6e4d6a185d883b23ace4d278ecd9aaca7670d751d17be1ed0413482f72296034b61b5cb1fe05261715f233cce07da5e776681fd13
7
+ data.tar.gz: a6ae68e754d3d99cd9ecc2f9337683adc6883b13dbd21f74e8135eb41a6d3d94764b583383642b68dda890a0ca6979b688e23df243aad99dd28ab696d3a7eb56
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ 2.1.0 -- Remove taint checking https://github.com/grosser/fast_gettext/pull/133
1
2
  2.0.0 -- Changed p_ separator to \0004 https://github.com/grosser/fast_gettext/pull/107 add np and add gettext aliases
2
3
  1.6.0 -- Remove restrictions around yaml file names
3
4
  1.1.0 -- translations are no longer eager loaded for improved startup performance, pass `eager_load: true` to preload for example in preforked web server
data/LICENSE ADDED
@@ -0,0 +1,78 @@
1
+ Copyright (C) 2013 Michael Grosser <michael@grosser.it>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ # for lib/fast_gettext/vendor/*
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+
23
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
24
+ You can redistribute it and/or modify it under either the terms of the
25
+ 2-clause BSDL (see the file BSDL), or the conditions below:
26
+
27
+ 1. You may make and give away verbatim copies of the source form of the
28
+ software without restriction, provided that you duplicate all of the
29
+ original copyright notices and associated disclaimers.
30
+
31
+ 2. You may modify your copy of the software in any way, provided that
32
+ you do at least ONE of the following:
33
+
34
+ a) place your modifications in the Public Domain or otherwise
35
+ make them Freely Available, such as by posting said
36
+ modifications to Usenet or an equivalent medium, or by allowing
37
+ the author to include your modifications in the software.
38
+
39
+ b) use the modified software only within your corporation or
40
+ organization.
41
+
42
+ c) give non-standard binaries non-standard names, with
43
+ instructions on where to get the original software distribution.
44
+
45
+ d) make other distribution arrangements with the author.
46
+
47
+ 3. You may distribute the software in object code or binary form,
48
+ provided that you do at least ONE of the following:
49
+
50
+ a) distribute the binaries and library files of the software,
51
+ together with instructions (in the manual page or equivalent)
52
+ on where to get the original distribution.
53
+
54
+ b) accompany the distribution with the machine-readable source of
55
+ the software.
56
+
57
+ c) give non-standard binaries non-standard names, with
58
+ instructions on where to get the original software distribution.
59
+
60
+ d) make other distribution arrangements with the author.
61
+
62
+ 4. You may modify and include the part of the software into any other
63
+ software (possibly commercial). But some files in the distribution
64
+ are not written by the author, so that they are not under these terms.
65
+
66
+ For the list of those files and their copying conditions, see the
67
+ file LEGAL.
68
+
69
+ 5. The scripts and library files supplied as input to or produced as
70
+ output from the software do not automatically fall under the
71
+ copyright of the software, but belong to whomever generated them,
72
+ and may be sold commercially, and may be aggregated with this
73
+ software.
74
+
75
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
76
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
77
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
78
+ PURPOSE.
@@ -44,7 +44,7 @@ module FastGettext
44
44
  end
45
45
 
46
46
  def self.empty
47
- MoFile.new(File.join(File.dirname(__FILE__), 'vendor', 'empty.mo'))
47
+ @empty ||= MoFile.new(File.join(__dir__, 'vendor', 'empty.mo'), eager_load: true).freeze
48
48
  end
49
49
 
50
50
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastGettext
4
- VERSION = Version = '2.1.0' # rubocop:disable Naming/ConstantName
4
+ VERSION = Version = '2.3.0' # rubocop:disable Naming/ConstantName
5
5
  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: 2.1.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-27 00:00:00.000000000 Z
11
+ date: 2023-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-packaging
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: single_cov
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -136,13 +150,14 @@ dependencies:
136
150
  - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
- description:
153
+ description:
140
154
  email: michael@grosser.it
141
155
  executables: []
142
156
  extensions: []
143
157
  extra_rdoc_files: []
144
158
  files:
145
159
  - CHANGELOG
160
+ - LICENSE
146
161
  - Readme.md
147
162
  - lib/fast_gettext.rb
148
163
  - lib/fast_gettext/cache.rb
@@ -173,7 +188,7 @@ licenses:
173
188
  - MIT
174
189
  - Ruby
175
190
  metadata: {}
176
- post_install_message:
191
+ post_install_message:
177
192
  rdoc_options: []
178
193
  require_paths:
179
194
  - lib
@@ -188,8 +203,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
203
  - !ruby/object:Gem::Version
189
204
  version: '0'
190
205
  requirements: []
191
- rubygems_version: 3.2.16
192
- signing_key:
206
+ rubygems_version: 3.3.3
207
+ signing_key:
193
208
  specification_version: 4
194
209
  summary: A simple, fast, memory-efficient and threadsafe implementation of GetText
195
210
  test_files: []