dotstrings 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -10
- data/lib/dotstrings/parser.rb +2 -2
- data/lib/dotstrings/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3043892fd5f3068811c63cd3da980cfef6779522359be1974dea0b3be6d4f60c
|
4
|
+
data.tar.gz: eb04dbb9ff868273b783a1f8337d4cd11098cc0450a4676beb241a0b88e49dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53c29b660b3af9ab6795080176567edc8950c4df357a86d5845b6c4166aad593812a9529d6ec2b333c8cfa1996953c7df1ece183d6ac7011eaa1517c9461eeba
|
7
|
+
data.tar.gz: bb1a56e77beae28a1a3b1fc52c47096448731db40cd81905e7cfb9652aa9836d93a2a756cf674d7679dc7e45842c70dbde59f70cf214847e167c96015a92b949
|
data/CHANGELOG.md
CHANGED
@@ -1,32 +1,49 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.6.0] - 2024-02-27
|
4
|
+
|
5
|
+
- Dropped support for Ruby 2.5.
|
6
|
+
- Small performance improvements for unicode parsing.
|
7
|
+
|
3
8
|
## [v0.5.0] - 2022-09-24
|
4
|
-
|
9
|
+
|
10
|
+
- Added `strict` parameter to the parser to allow for more lenient parsing. This is useful in cases where we don't want the parser to raise an error when encountering multiple comments or escaped characters that don't need to be escaped.
|
5
11
|
|
6
12
|
## [v0.4.0] - 2022-09-18
|
13
|
+
|
7
14
|
### Added
|
8
|
-
|
9
|
-
|
15
|
+
|
16
|
+
- Added `DotStrings::File#each`, `DotStrings::File#length`, `DotStrings::File#count`, and `DotStrings::File#empty?` methods.
|
17
|
+
- Allow comparing `DotStrings::File` objects.
|
10
18
|
|
11
19
|
## [v0.3.0] - 2022-08-07
|
20
|
+
|
12
21
|
### Changed
|
13
|
-
|
14
|
-
|
15
|
-
|
22
|
+
|
23
|
+
- Improved unicode code point parsing and validation.
|
24
|
+
- Added `DotStrings::File#sort`, `DotStrings::File#sort!`, and `DotStrings::File#delete_if` methods.
|
25
|
+
- Improved documentation.
|
16
26
|
|
17
27
|
## [v0.2.0] - 2022-07-17
|
28
|
+
|
18
29
|
### Changed
|
19
|
-
|
20
|
-
|
30
|
+
|
31
|
+
- Made some state transitions more strict.
|
32
|
+
- Added option to ignore comments when serializing.
|
21
33
|
|
22
34
|
## [v0.1.1] - 2022-07-12
|
35
|
+
|
23
36
|
### Changed
|
24
|
-
|
37
|
+
|
38
|
+
- Escaping single quotes is now optional.
|
25
39
|
|
26
40
|
## [v0.1.0] - 2022-07-06
|
41
|
+
|
27
42
|
### Added
|
28
|
-
* Initial release.
|
29
43
|
|
44
|
+
- Initial release.
|
45
|
+
|
46
|
+
[v0.6.0]: https://github.com/raymondjavaxx/dotstrings/releases/tag/v0.6.0
|
30
47
|
[v0.5.0]: https://github.com/raymondjavaxx/dotstrings/releases/tag/v0.5.0
|
31
48
|
[v0.4.0]: https://github.com/raymondjavaxx/dotstrings/releases/tag/v0.4.0
|
32
49
|
[v0.3.0]: https://github.com/raymondjavaxx/dotstrings/releases/tag/v0.3.0
|
data/lib/dotstrings/parser.rb
CHANGED
@@ -179,7 +179,7 @@ module DotStrings
|
|
179
179
|
|
180
180
|
def parse_string(ch, &block)
|
181
181
|
if @escaping
|
182
|
-
parse_escaped_character(ch
|
182
|
+
parse_escaped_character(ch)
|
183
183
|
else
|
184
184
|
case ch
|
185
185
|
when TOK_BACKSLASH
|
@@ -223,7 +223,7 @@ module DotStrings
|
|
223
223
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
224
224
|
|
225
225
|
def parse_unicode(ch, &block)
|
226
|
-
raise_error("Unexpected character '#{ch}', expecting a hex digit") unless ch
|
226
|
+
raise_error("Unexpected character '#{ch}', expecting a hex digit") unless TOK_HEX_DIGIT.match?(ch)
|
227
227
|
|
228
228
|
@unicode_buffer << ch
|
229
229
|
|
data/lib/dotstrings/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dotstrings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Torres
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,30 +56,30 @@ dependencies:
|
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.50.2
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.50.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.30.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.30.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,14 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: 2.
|
141
|
+
version: 2.6.0
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.4.10
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Parse and create .strings files used in localization of iOS and macOS apps.
|