nanaimo 0.1.2 → 0.1.3

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: 8acc15baf13ce21aebff45297da0ab7859cfc85f
4
- data.tar.gz: 41aecb0389eda7f04c9b18a1dd5147a829030290
3
+ metadata.gz: d5cd56ae5879a3989e8aa8b4811554d42ed99ba5
4
+ data.tar.gz: 505dee1ed9eb73ddcc8542d152fbdfdf34627a65
5
5
  SHA512:
6
- metadata.gz: 67bb9d4580d38a116c25031703f446f7ef8bf1850e8eec481f9b43478032342c5192793e7139cf411dab37e349bd6eef049281589033bc5f239390784fd3bc54
7
- data.tar.gz: cf253348196e428978fb30c70dc8054e08d3b100c08f33adf8ef793515b9992f6b0bd49063419331b6a0a8c6ed9302f779f9d54d5e5f3b827437e7df54266e63
6
+ metadata.gz: 01bda2485e783181082dddfa0a28a9407d4dcd8faf5a23d0eef92fb42f7f4b1619bad0e5c8643088e9b8e76988bc4f4b0fe1ef7140f7da9abf99b1d8e0aae0fb
7
+ data.tar.gz: c4d3726bd3603b3ae781a60d27adaceeb74c63685f5e2d524082e68ac9aff5c2856a4748305d6c1f9215621111725cdece80ebd69b6f4a8db64706f357700eb3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Nanaimo Changelog
2
2
 
3
+ ## 0.1.3 (2016-11-01)
4
+
5
+ ##### Enhancements
6
+
7
+ * None.
8
+
9
+ ##### Bug Fixes
10
+
11
+ * Fix unquoting a sequence of backslashes.
12
+ [Samuel Giddins](https://github.com/segiddins)
13
+ [CocoaPods#6108](https://github.com/CocoaPods/CocoaPods/issues/6108)
14
+
15
+
3
16
  ## 0.1.2 (2016-10-29)
4
17
 
5
18
  ##### Enhancements
@@ -10,7 +23,7 @@
10
23
 
11
24
  * Add support for unquoted strings that contain a `$`.
12
25
  [Danielle Tomlinson](https://github.com/dantoml)
13
- [CocoaPods#6101](https://github.com/CocoaPods/CocoaPods/issues/6101)
26
+ [CocoaPods#6101](https://github.com/CocoaPods/CocoaPods/issues/6101)
14
27
 
15
28
 
16
29
  ## 0.1.1 (2016-10-28)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nanaimo (0.1.2)
4
+ nanaimo (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Rakefile CHANGED
@@ -40,7 +40,8 @@ task :generate_quote_maps do
40
40
  "\v" => '\\v',
41
41
  "\n" => '\\n',
42
42
  %(') => "\\'",
43
- %(") => '\\"'
43
+ %(") => '\\"',
44
+ '\\' => '\\\\'
44
45
  }
45
46
 
46
47
  unquote_map = quote_map.each_with_object("\n" => "\n") do |(value, escaped), map|
@@ -11,6 +11,7 @@ module Nanaimo
11
11
  "\n" => "\\n",
12
12
  "'" => "\\'",
13
13
  "\"" => "\\\"",
14
+ "\\" => "\\\\",
14
15
  "\x00" => "\\U0000",
15
16
  "\x01" => "\\U0001",
16
17
  "\x02" => "\\U0002",
@@ -49,8 +50,9 @@ module Nanaimo
49
50
  "n" => "\n",
50
51
  "'" => "'",
51
52
  "\"" => "\"",
53
+ "\\" => "\\",
52
54
  }.freeze
53
55
 
54
- QUOTE_REGEXP = /\x07|\x08|\f|\r|\t|\v|\n|'|"|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/
56
+ QUOTE_REGEXP = /\x07|\x08|\f|\r|\t|\v|\n|'|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/
55
57
  end
56
58
  end
@@ -15,7 +15,7 @@ module Nanaimo
15
15
  end
16
16
 
17
17
  ESCAPE_PREFIXES = %W(
18
- 0 1 2 3 4 5 6 7 a b f n r t v \n U
18
+ 0 1 2 3 4 5 6 7 a b f n r t v \n U \\
19
19
  ).freeze
20
20
 
21
21
  OCTAL_DIGITS = (0..7).map(&:to_s).freeze
@@ -32,7 +32,7 @@ module Nanaimo
32
32
  index = 0
33
33
  while index < string_length
34
34
  if escape_index = extracted_string.index('\\', index)
35
- formatted_string << extracted_string[index..escape_index - 1] unless index == escape_index
35
+ formatted_string << extracted_string[index...escape_index] unless index == escape_index
36
36
  index = escape_index + 1
37
37
  next_char = extracted_string[index]
38
38
  if ESCAPE_PREFIXES.include?(next_char)
@@ -1,3 +1,3 @@
1
1
  module Nanaimo
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
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.1.2
4
+ version: 0.1.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-10-29 00:00:00.000000000 Z
12
+ date: 2016-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler