xlocalize 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: 9e6235a370b56da00174d9c280585088401d844a
4
- data.tar.gz: 53876ca5c6a807f01ebe293369ddfa7c887dff84
3
+ metadata.gz: 61201771f44ad4a128294e0ff843d41f532ba3e8
4
+ data.tar.gz: 2a454a61c22769540216deccd8997aadcf037639
5
5
  SHA512:
6
- metadata.gz: 17522231c3f133253d025bb43b0d2cf6f57d4c66a2aeb09381563f7bff9de7529c7a34cdabbffb495ac6f3c03c4c5bf9e1185aeb4c55e86b4d0b7440e8a94050
7
- data.tar.gz: 959b99fbd96815f24709be4ac1d394a9030b21ae3c368bada3c163ab6b2f7606da307f0d7ba6b3376c791166da5db4f61052601512331460edec0beee911d8b2
6
+ metadata.gz: ee6f7f181d6bf06a2c93b1b6d010501213dfb2f2b4678a014437404220a37cb344484bd6f15e072dc31625fbd3e8448e3e632a1010158f3c34dc05e287e086d2
7
+ data.tar.gz: f553da3f3b20f336a1289b8b3202fed0d31949e4405ca343066a6153a1512c96df62d649639abb91e03b445cc51326ae641ff99ca31fcc877ccc6cacf098dd5c
data/.gitignore CHANGED
@@ -22,3 +22,5 @@ xcuserdata/
22
22
  *.moved-aside
23
23
  *.xccheckout
24
24
  *.xcscmblueprint
25
+
26
+ .DS_Store
@@ -1,3 +1,7 @@
1
+ ## [v0.4.1](https://github.com/viktorasl/xlocalize/releases/tag/0.4.1)
2
+
3
+ * [5be2948](https://github.com/viktorasl/xlocalize/commit/5be2948bbe5a4c1867a9780f122778f2dcd3b1a4) Unescapes xliff files on export
4
+
1
5
  ## [v0.4.0](https://github.com/viktorasl/xlocalize/releases/tag/0.4.0)
2
6
 
3
7
  * [8e2ded3](https://github.com/viktorasl/xlocalize/commit/8e2ded3e9448edca3ed18d88be4c2c0a37122891) Removes redundant files
@@ -1,4 +1,4 @@
1
1
  module Xlocalize
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  DESCRIPTION = "Xcode localizations import/export helper tool"
4
4
  end
@@ -72,7 +72,9 @@ module Xlocalize
72
72
 
73
73
  def unescape
74
74
  self.xpath("//xmlns:source").each do |src|
75
- src.content = CGI.unescapeHTML(src.content)
75
+ src.content = src.content
76
+ .gsub('\\"', '"')
77
+ .gsub('\\\\n', '\n')
76
78
  end
77
79
  end
78
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlocalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktoras Laukevičius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-03 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri