rosetta 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rosetta.rb +1 -2
- data/lib/rosetta/controller_additions.rb +2 -2
- data/lib/rosetta/i18n_with_stored_phrases.rb +1 -1
- data/lib/rosetta/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4939ebddde4d6f8ab24a095d019ee49af96d1ff3f4aee0a2e71f171a0b532040
|
4
|
+
data.tar.gz: 347134e0fabcf5e10378eab7dea3164fed81475b143fd0e16f414ce25a530fe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 172fbb557043634017fa060faa54b2e3ade2c5e194e7c532ca64ba014eecff9e5a5761ad9f661c16efad1e1b7eb15896af82831840a4240d5402eaab57cc3b90
|
7
|
+
data.tar.gz: 0f946893470c16bc6713acf8fab2a397c433bc9d4fe373c57feb2e62a121caa6592d2b1b904f668a3d6a5e9772032892f454cfbb6347e2d446e2183a1a2da6a7
|
data/README.md
CHANGED
data/lib/rosetta.rb
CHANGED
@@ -22,8 +22,7 @@ module Rosetta
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def add_phrase(**args)
|
25
|
-
fail ArgumentError, 'missing keys argument' if args[:keys].blank?
|
26
|
-
fail ArgumentError, 'missing phrase argument' if args[:phrase].blank?
|
25
|
+
fail ArgumentError, 'Rosetta: missing keys argument' if args[:keys].blank?
|
27
26
|
|
28
27
|
repository_link = config.repository.build_link(args[:keys], locale: locale)
|
29
28
|
phrases << Phrase.new(args[:keys], args[:phrase], repository_link)
|
@@ -7,7 +7,7 @@ module Rosetta
|
|
7
7
|
keys = normalize_keys('', args.dig(0), args.dig(1, :scope))
|
8
8
|
code = keys.join('.')
|
9
9
|
|
10
|
-
Rosetta.add_phrase(keys: keys, phrase: output) if exists?(code, config.locale)
|
10
|
+
Rosetta.add_phrase(keys: keys, phrase: output.to_s) if exists?(code, config.locale)
|
11
11
|
|
12
12
|
output
|
13
13
|
end
|
data/lib/rosetta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rosetta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MarsBased
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|