bisu 1.7.2 → 1.7.3

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: de4d41b8e81de051cee161b99f77b0e6e81fe7cdb878191beb46a9427db39db5
4
- data.tar.gz: f840f4d92ebc448ad43e298dcb95f3223c323a81f9441a1967689b278a501282
3
+ metadata.gz: 6f756232e9a77ac32c288ccc91508e366298210b27ed117d538448691ac83df5
4
+ data.tar.gz: 76e19d872d0f68b1b3ade068f35fdf4036267384af1f9aec787fcd43847ef9a7
5
5
  SHA512:
6
- metadata.gz: dc08b4b71b33d3db13a04302905d1846b190aa7e9febbf5eea69a97da4d2147be3ae97c270f2d658b9c2d7b1f598e8cdeb32daba762927cd508164b3a305d9c0
7
- data.tar.gz: ad976c7db6db95a592d9306e90e9c9051276cb2bc3dab784e97bef92d947386445c7f0d315b589df29e60833ac665039c4445d3d178dc1b21a30da6acb59892b
6
+ metadata.gz: 82a626c2049aa774803b6faf02ae8909b31bf8273bebdc563f8015d89317edaeeac1560e35422574db39ef9b5eaa451774b77b9ff123f151cd9abbd2e3753110
7
+ data.tar.gz: e4e40200a30462f873f83228396658888a88a8898171f50e362799ae28cfeaa506292eb8437a6a8aea7cf7b3cc571e763998d90eb82eb6a3066f38b8ad1c86ff
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  `Bisu` adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [1.7.3](https://github.com/hole19/bisu/releases/tag/v1.7.3)
6
+ Released on 2020/03/09
7
+
8
+ #### Added
9
+ - Correctly handles percentage sign on iOS platform
10
+
5
11
  ## [1.7.2](https://github.com/hole19/bisu/releases/tag/v1.7.2)
6
12
  Released on 2020/03/09
7
13
 
@@ -75,6 +75,7 @@ module Bisu
75
75
 
76
76
  elsif @type.eql?(:ios)
77
77
  text = text.gsub(/\"/, "\\\\\"")
78
+ text = text.gsub(/%(?!{)/, "%%")
78
79
  end
79
80
 
80
81
  text
@@ -1,4 +1,4 @@
1
1
  module Bisu
2
- VERSION = '1.7.2'
2
+ VERSION = '1.7.3'
3
3
  VERSION_UPDATED_AT = '2020-03-09'
4
4
  end
@@ -125,7 +125,8 @@ describe Bisu::Localizer do
125
125
  let(:type) { :ios }
126
126
 
127
127
  let(:expected) { type_dependent_defaults.merge(
128
- double_quoted: "Não sabes nada \\\"João das Neves\\\""
128
+ double_quoted: "Não sabes nada \\\"João das Neves\\\"",
129
+ percentage: "Sabes 0%% João das Neves."
129
130
  ) }
130
131
 
131
132
  it_behaves_like "a localizer"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bisu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - joaoffcosta