bisu 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a53a95f2c8ca08de5f1b44a56f5648f3b3430d22f191a9a5637f9b6daa37bee9
4
- data.tar.gz: b51d192672fdf321ba29f2ac1a4fdaf0728a615885f03fad317c566264531053
3
+ metadata.gz: 608523f42571de5769d7c8833560802cd67140899a9e50dd51d6a50885b662ea
4
+ data.tar.gz: bd92d03d5b4f8c0638008fb5bb75db1bb3f446643c79bf2fabad6beeadc2f87c
5
5
  SHA512:
6
- metadata.gz: 50543ddcc08ea0d0c09626e4d7cee4cc1dec6f575f81e229dce5d263c2b460237fafedc6a13256178cc4a87ccf4eedb290edd83cb5b8c7ca672d5ad6aea9f969
7
- data.tar.gz: d7ecec10c7249f263566589dbb62af318ea9a59adb346265bc9500248c048d00507047ce55eab2e2f3527403910bbd67ed995eb16282fda2b6595ab1fbcbc848
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bisu (2.0.0)
4
+ bisu (2.3.0)
5
5
  colorize
6
6
  rubyzip (>= 2.0.0)
7
7
  safe_yaml (>= 1.0.0)
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Bisu
2
- VERSION = '2.1.0'
3
- VERSION_UPDATED_AT = '2023-12-18'
2
+ VERSION = '2.3.0'
3
+ VERSION_UPDATED_AT = '2024-03-20'
4
4
  end
@@ -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 & Pícaros",
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 & Pícaros",
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.1.0
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: 2023-12-18 00:00:00.000000000 Z
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.1.6
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: []