nanaimo 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +1 -1
- data/lib/nanaimo/unicode.rb +2 -2
- data/lib/nanaimo/version.rb +1 -1
- data/lib/nanaimo/writer.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e30f17a84a464d962e9bc6e09b87366c3b687533
|
4
|
+
data.tar.gz: 7e33c706987fce3441e4db2886301f627a216be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f1c5644038310ebea8d3cd7ae2888508a37a04de6d998c29c53a51fd22bee207ca0280b653946157b6bf33287c46cd933ada5ce35969ead00e10bcda95fd877
|
7
|
+
data.tar.gz: 1bbd5aa4f19600e2d96658627bd7e43743268c6180c78acbb17f341d27e253298af8ce06b43a074f3eb3e71d48c3ae12a191baa0a3bf6f8581b0301ea94906b0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Nanaimo Changelog
|
2
2
|
|
3
|
+
## 0.2.3 (2016-11-30)
|
4
|
+
|
5
|
+
##### Enhancements
|
6
|
+
|
7
|
+
* None.
|
8
|
+
|
9
|
+
##### Bug Fixes
|
10
|
+
|
11
|
+
* Quote the empty string `nil` is implicitly written as in non-strict mode.
|
12
|
+
[Samuel Giddins](https://github.com/segiddins)
|
13
|
+
[Xcodeproj#453](https://github.com/CocoaPods/Xcodeproj/issues/453)
|
14
|
+
|
15
|
+
|
3
16
|
## 0.2.2 (2016-11-04)
|
4
17
|
|
5
18
|
##### Enhancements
|
data/Gemfile.lock
CHANGED
data/lib/nanaimo/unicode.rb
CHANGED
@@ -11,7 +11,7 @@ module Nanaimo
|
|
11
11
|
module_function
|
12
12
|
|
13
13
|
def quotify_string(string)
|
14
|
-
string.gsub(QUOTE_REGEXP
|
14
|
+
string.gsub(QUOTE_REGEXP, QUOTE_MAP)
|
15
15
|
end
|
16
16
|
|
17
17
|
ESCAPE_PREFIXES = %W(
|
@@ -82,7 +82,7 @@ module Nanaimo
|
|
82
82
|
XML_STRING_ESCAPE_REGEXP = Regexp.union(XML_STRING_ESCAPES.keys)
|
83
83
|
|
84
84
|
def xml_escape_string(string)
|
85
|
-
string.to_s.gsub(XML_STRING_ESCAPE_REGEXP
|
85
|
+
string.to_s.gsub(XML_STRING_ESCAPE_REGEXP, XML_STRING_ESCAPES)
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
data/lib/nanaimo/version.rb
CHANGED
data/lib/nanaimo/writer.rb
CHANGED
@@ -74,7 +74,7 @@ module Nanaimo
|
|
74
74
|
write_array(object)
|
75
75
|
when Dictionary, ::Hash
|
76
76
|
write_dictionary(object)
|
77
|
-
when QUOTED_STRING_REGEXP, QuotedString
|
77
|
+
when QUOTED_STRING_REGEXP, QuotedString
|
78
78
|
write_quoted_string(object)
|
79
79
|
when String, ::String, Symbol
|
80
80
|
write_string(object)
|
@@ -88,7 +88,7 @@ module Nanaimo
|
|
88
88
|
output
|
89
89
|
end
|
90
90
|
|
91
|
-
QUOTED_STRING_REGEXP = %r{[^\w\./]}
|
91
|
+
QUOTED_STRING_REGEXP = %r{\A\z|[^\w\./]}
|
92
92
|
private_constant :QUOTED_STRING_REGEXP
|
93
93
|
|
94
94
|
def write_string_quoted_if_necessary(object)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanaimo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danielle Tomlinson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.6.
|
110
|
+
rubygems_version: 2.6.8
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: A library for (de)serialization of ASCII Plists.
|