bisu 3.0.0 → 3.0.2
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 +4 -4
- data/CHANGELOG.md +12 -2
- data/Gemfile.lock +1 -1
- data/lib/bisu/localizer.rb +1 -1
- data/lib/bisu/source/tolgee.rb +1 -1
- data/lib/bisu/version.rb +2 -2
- data/spec/lib/bisu/localizer_spec.rb +2 -2
- 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: 6e0ebe93e5001dc6db8e222794d4e470c60328bc217d7b368d4bdd6e50671d88
|
|
4
|
+
data.tar.gz: 65272ea9a5afab28442e9921cd39720040a022ca66695db4a0f7f6796af6600a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5dceebc1529082253c027800f887a88fd672546e8c5a83f272c7841e02912edbfd4d746481d77220cdba5b1a325b121cce329554b3b78bb8b4c399073c38d06
|
|
7
|
+
data.tar.gz: 2ddae6aca4e7664acd762f3e3d8a0ba15358b868e5fef131e575f2de7a80a3bdf0ad53fcca668429c1237439dec78f8d42406ac3eeefeae16fcef44ab7d495f1
|
data/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,21 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
-
## [3.0.
|
|
7
|
+
## [3.0.2](https://github.com/hole19/bisu/releases/tag/v3.0.2)(2025-11-26)
|
|
8
|
+
|
|
9
|
+
- Escape percentage character properly on Android
|
|
10
|
+
|
|
11
|
+
## [3.0.1](https://github.com/hole19/bisu/releases/tag/v3.0.1)(2025-10-13)
|
|
12
|
+
|
|
13
|
+
- Fix SSL verification in Tolgee source
|
|
14
|
+
|
|
15
|
+
## [3.0.0](https://github.com/hole19/bisu/releases/tag/v3.0.0)(2025-10-13)
|
|
8
16
|
|
|
9
17
|
- Add support for ruby 3.4
|
|
10
18
|
- Add Github test workflow
|
|
11
|
-
|
|
19
|
+
|
|
20
|
+
### Breaking Changes
|
|
21
|
+
- Set ruby 3.0 as minimum supported version
|
|
12
22
|
|
|
13
23
|
## [2.4.0](https://github.com/hole19/bisu/releases/tag/v2.4.0)
|
|
14
24
|
|
data/Gemfile.lock
CHANGED
data/lib/bisu/localizer.rb
CHANGED
|
@@ -87,7 +87,7 @@ module Bisu
|
|
|
87
87
|
text = text.gsub("...", "…")
|
|
88
88
|
text = text.gsub("&", "&")
|
|
89
89
|
text = text.gsub("@", "\\\\@")
|
|
90
|
-
text = text.gsub(/%(?!{)/, "
|
|
90
|
+
text = text.gsub(/%(?!{)/, "%%") if is_formatted_string
|
|
91
91
|
when :ios
|
|
92
92
|
text = text.gsub(/%(?!{)/, "%%") if is_formatted_string
|
|
93
93
|
end
|
data/lib/bisu/source/tolgee.rb
CHANGED
|
@@ -31,7 +31,7 @@ module Bisu
|
|
|
31
31
|
request = Net::HTTP::Get.new(uri)
|
|
32
32
|
request['X-API-Key'] = @api_key
|
|
33
33
|
|
|
34
|
-
response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
|
|
34
|
+
response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) do |http|
|
|
35
35
|
http.request(request)
|
|
36
36
|
end
|
|
37
37
|
|
data/lib/bisu/version.rb
CHANGED
|
@@ -186,8 +186,8 @@ describe Bisu::Localizer do
|
|
|
186
186
|
ellipsis: "Não sabes nada João das Neves…",
|
|
187
187
|
ampersand: "Não sabes nada João das Neves T&C",
|
|
188
188
|
at_sign: "\\@johnsnow sabes alguma coisa?",
|
|
189
|
-
percentage: "Sabes 0
|
|
190
|
-
percentage_formatted: "Sabes 0
|
|
189
|
+
percentage: "Sabes 0% João das Neves.",
|
|
190
|
+
percentage_formatted: "Sabes 0%% João das Neves.",
|
|
191
191
|
) }
|
|
192
192
|
|
|
193
193
|
it_behaves_like "a localizer"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bisu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- joaoffcosta
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-11-26 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: safe_yaml
|