bisu 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f692b1ecb32e999d69eb51629dada1840c3a2ee7
4
- data.tar.gz: c1f2732d6af534439391aa244ccd28187a2206eb
3
+ metadata.gz: 897fab8a33b0d7172fd27278af5d6e2536fcbeaf
4
+ data.tar.gz: d0dcc27429ec315c3eab84401beff368e20e4549
5
5
  SHA512:
6
- metadata.gz: c3431d924a02486ef37a805aa95dfc58ac9acc023dcec88d340801a252ff062a344bab47910d587c5ea66524b1e66af3552fc476b8f4f6e9962dfd347a36ac4f
7
- data.tar.gz: 582663aa814e423ce228cf2e04e00ac819dec0d992896b749c8f53b975c8a83ac97ad459c9a920e8cde2e5df5d158b1450dfe58d3eb24e51e77a24db516b30a9
6
+ metadata.gz: 9b968c726b181da600f37c3083418f57dbc67240f96a8978ca27797fd630f853056c63c9897cf06fdf763db6a3c133c4944ccce0a45f0dbf00329cab3073d70d
7
+ data.tar.gz: f1b5bc7755dedbdde632e63f83e7072115118bfd12ad6ae398e29ed43d11786e2e130d92d0d9097b15bf97094df014e87bb8c594417cc43ee31fc60f58cb8e55
data/CHANGELOG.md CHANGED
@@ -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.4.7](https://github.com/hole19/bisu/releases/tag/v1.4.7)
6
+ Released on 2018/07/24
7
+
8
+ #### Added
9
+ - Fixes bug handling already escaped single quotes coming from OneSky
10
+
5
11
  ## [1.4.6](https://github.com/hole19/bisu/releases/tag/v1.4.6)
6
12
  Released on 2017/08/27
7
13
 
data/lib/bisu/one_sky.rb CHANGED
@@ -17,11 +17,13 @@ module Bisu
17
17
  file = get(path, source_file_name: @file_name, file_format: "I18NEXT_MULTILINGUAL_JSON")
18
18
 
19
19
  hash = JSON.parse(file)
20
+
20
21
  hash.each do |lang, v|
21
22
  hash[lang] = v["translation"]
22
23
  hash[lang].each do |key, text|
23
24
  hash[lang][key] = hash[lang][key].join("\\n") if hash[lang][key].is_a? Array
24
25
  hash[lang][key] = hash[lang][key].gsub("\n", "\\n") # fixes the 'stupid newline bug'
26
+ hash[lang][key] = hash[lang][key].gsub("\\'", "'") # fixes the 'stupid single quote bug'
25
27
  end
26
28
  end
27
29
 
data/lib/bisu/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bisu
2
- VERSION = '1.4.6'
3
- VERSION_UPDATED_AT = '2017-08-07'
2
+ VERSION = '1.4.7'
3
+ VERSION_UPDATED_AT = '2018-07-24'
4
4
  end
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: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - joaoffcosta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml