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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bisu/one_sky.rb +2 -0
- data/lib/bisu/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897fab8a33b0d7172fd27278af5d6e2536fcbeaf
|
4
|
+
data.tar.gz: d0dcc27429ec315c3eab84401beff368e20e4549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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:
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|