nanaimo 0.2.2 → 0.2.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
  SHA1:
3
- metadata.gz: 090d05915f386fcbf6f5324805f7bd16f873678e
4
- data.tar.gz: baa8d42469bd66dc1f7b0a6eae353698d6fe99e3
3
+ metadata.gz: e30f17a84a464d962e9bc6e09b87366c3b687533
4
+ data.tar.gz: 7e33c706987fce3441e4db2886301f627a216be6
5
5
  SHA512:
6
- metadata.gz: 2833cad61d387df8c5ac6e45118d109333484c0555a307ac566cd0d6bd50925ae5a5003191645e96d523f0d9d6e171aca7a7f3891a95f42f3119b516d77ac081
7
- data.tar.gz: 7faf48d2d57caa6076f13f8d10c1b1dbac3895f7a54d2e217609574fa48316dde4f12a6e2f1054741e3982ad0a4489b0aaca5767165f53d848921663f8e3db21
6
+ metadata.gz: 0f1c5644038310ebea8d3cd7ae2888508a37a04de6d998c29c53a51fd22bee207ca0280b653946157b6bf33287c46cd933ada5ce35969ead00e10bcda95fd877
7
+ data.tar.gz: 1bbd5aa4f19600e2d96658627bd7e43743268c6180c78acbb17f341d27e253298af8ce06b43a074f3eb3e71d48c3ae12a191baa0a3bf6f8581b0301ea94906b0
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nanaimo (0.2.2)
4
+ nanaimo (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,7 +11,7 @@ module Nanaimo
11
11
  module_function
12
12
 
13
13
  def quotify_string(string)
14
- string.gsub(QUOTE_REGEXP) { |s| QUOTE_MAP[s] }
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) { |m| XML_STRING_ESCAPES[m] }
85
+ string.to_s.gsub(XML_STRING_ESCAPE_REGEXP, XML_STRING_ESCAPES)
86
86
  end
87
87
  end
88
88
  end
@@ -1,3 +1,3 @@
1
1
  module Nanaimo
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
@@ -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.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-04 00:00:00.000000000 Z
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.7
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.