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 +4 -4
- data/CHANGELOG.md +14 -1
- data/Gemfile.lock +1 -1
- data/Rakefile +2 -1
- data/lib/nanaimo/unicode/quote_maps.rb +3 -1
- data/lib/nanaimo/unicode.rb +2 -2
- data/lib/nanaimo/version.rb +1 -1
- 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: d5cd56ae5879a3989e8aa8b4811554d42ed99ba5
|
4
|
+
data.tar.gz: 505dee1ed9eb73ddcc8542d152fbdfdf34627a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Rakefile
CHANGED
@@ -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|'|"
|
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
|
data/lib/nanaimo/unicode.rb
CHANGED
@@ -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
|
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)
|
data/lib/nanaimo/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|