bisu 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 +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/lib/bisu/localizer.rb +2 -1
- data/lib/bisu/version.rb +2 -2
- data/spec/lib/bisu/localizer_spec.rb +3 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 608523f42571de5769d7c8833560802cd67140899a9e50dd51d6a50885b662ea
|
4
|
+
data.tar.gz: bd92d03d5b4f8c0638008fb5bb75db1bb3f446643c79bf2fabad6beeadc2f87c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5a707a80c64a4092278797801005fc88bd22a27da1cd35c1f1690262fa656a31654659acd46b8e3fc47c50c088ca52f5dd0e015617abd7e0c82f1031499aa2f
|
7
|
+
data.tar.gz: 866e1b4aff21c863c3f87a769c17b841136fd69809d9b738f050033b769cda32ce49e340a362cc251bfbd0d1213ee0e7a685109fe043d33c3098c25c569e51f9
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## Unreleased
|
6
6
|
|
7
|
+
## [2.3.0](https://github.com/hole19/bisu/releases/tag/v2.2.0)
|
8
|
+
|
9
|
+
#### Fixed
|
10
|
+
- Fix handling of ampersand (&) character on Android localization
|
11
|
+
|
12
|
+
## [2.2.0](https://github.com/hole19/bisu/releases/tag/v2.2.0)
|
13
|
+
|
14
|
+
#### Fixed
|
15
|
+
- Escape double quotes (") on Android localization
|
16
|
+
|
7
17
|
## [2.1.0](https://github.com/hole19/bisu/releases/tag/v2.1.0)
|
8
18
|
|
9
19
|
#### Fixed
|
data/Gemfile.lock
CHANGED
data/lib/bisu/localizer.rb
CHANGED
@@ -82,8 +82,9 @@ module Bisu
|
|
82
82
|
|
83
83
|
if @type.eql?(:android)
|
84
84
|
text = text.gsub(/[']/, "\\\\\\\\'")
|
85
|
+
text = text.gsub(/\"/, "\\\\\"")
|
85
86
|
text = text.gsub("...", "…")
|
86
|
-
text = text.gsub("&
|
87
|
+
text = text.gsub("&", "&")
|
87
88
|
text = text.gsub("@", "\\\\@")
|
88
89
|
text = text.gsub(/%(?!{)/, "\\\\%%")
|
89
90
|
|
data/lib/bisu/version.rb
CHANGED
@@ -20,7 +20,7 @@ describe Bisu::Localizer do
|
|
20
20
|
"kDoubleQuoted" => "Não sabes nada \"João das Neves\"",
|
21
21
|
"kSingleQuoted" => "Não sabes nada 'João das Neves'",
|
22
22
|
"kEllipsis" => "Não sabes nada João das Neves...",
|
23
|
-
"kAmpersand" => "Não sabes nada João das Neves &
|
23
|
+
"kAmpersand" => "Não sabes nada João das Neves T&C",
|
24
24
|
"kAtSign" => "\@johnsnow sabes alguma coisa?",
|
25
25
|
"kPercentage" => "Sabes 0% João das Neves."
|
26
26
|
},
|
@@ -182,8 +182,9 @@ describe Bisu::Localizer do
|
|
182
182
|
|
183
183
|
let(:expected) { type_dependent_defaults.merge(
|
184
184
|
single_quoted: "Não sabes nada \\'João das Neves\\'",
|
185
|
+
double_quoted: "Não sabes nada \\\"João das Neves\\\"",
|
185
186
|
ellipsis: "Não sabes nada João das Neves…",
|
186
|
-
ampersand: "Não sabes nada João das Neves &
|
187
|
+
ampersand: "Não sabes nada João das Neves T&C",
|
187
188
|
at_sign: "\\@johnsnow sabes alguma coisa?",
|
188
189
|
percentage: "Sabes 0\\%% João das Neves.",
|
189
190
|
percentage_formatted: "Sabes 0\\%% João das Neves.",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bisu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joaoffcosta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|
@@ -103,7 +103,7 @@ homepage: https://github.com/hole19/bisu
|
|
103
103
|
licenses:
|
104
104
|
- MIT
|
105
105
|
metadata: {}
|
106
|
-
post_install_message:
|
106
|
+
post_install_message:
|
107
107
|
rdoc_options: []
|
108
108
|
require_paths:
|
109
109
|
- lib
|
@@ -118,8 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
122
|
-
signing_key:
|
121
|
+
rubygems_version: 3.4.22
|
122
|
+
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: A localization automation service
|
125
125
|
test_files: []
|