nanaimo 0.2.3 → 0.2.4
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 +5 -5
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +98 -1
- data/.travis.yml +2 -3
- data/CHANGELOG.md +12 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +25 -23
- data/README.md +1 -1
- data/Rakefile +9 -3
- data/bin/console +1 -0
- data/lib/nanaimo.rb +2 -0
- data/lib/nanaimo/object.rb +3 -1
- data/lib/nanaimo/plist.rb +2 -0
- data/lib/nanaimo/reader.rb +1 -0
- data/lib/nanaimo/unicode.rb +1 -0
- data/lib/nanaimo/version.rb +3 -1
- data/lib/nanaimo/writer.rb +2 -0
- data/lib/nanaimo/writer/pbxproj.rb +2 -0
- data/lib/nanaimo/writer/xml.rb +2 -0
- data/nanaimo.gemspec +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 53e87cd361361b93ae0c78503a44da0ad261cdcbdcaf3ec5aedc0434640790ca
|
|
4
|
+
data.tar.gz: dac56be099c658037a703af6bfa8f2b6bed3c02c8c98fe7ae2bea17cd9116bb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bd45db073a2b9a3bc5da56ed5ca97d384e616378234859211a2a675719e296fbd5a075b3631c2a4e5844fd0fea459467b2a9e47967a90d1e1eba2b59f227870
|
|
7
|
+
data.tar.gz: 4ebeab355e2d531d0b55f83e4575fa8dca7d27c4a3501fc4f7fe00b8d3ac0e7f4c5803d1e04e337b8e0cc1f797ca276e6a7201e1812be046e93db7e01c124fe5
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,7 +1,104 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2018-02-13 09:45:35 -0800 using RuboCop version 0.52.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 22
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
# Configuration parameters: EnforcedStyle.
|
|
12
|
+
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
13
|
+
Layout/IndentHeredoc:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'Rakefile'
|
|
16
|
+
- 'lib/nanaimo/writer/xml.rb'
|
|
17
|
+
- 'spec/nanaimo/reader_spec.rb'
|
|
18
|
+
- 'spec/nanaimo/writer/xml_spec.rb'
|
|
19
|
+
|
|
20
|
+
# Offense count: 2
|
|
21
|
+
# Configuration parameters: Blacklist.
|
|
22
|
+
# Blacklist: END, (?-mix:EO[A-Z]{1})
|
|
23
|
+
Naming/HeredocDelimiterNaming:
|
|
24
|
+
Exclude:
|
|
25
|
+
- 'lib/nanaimo/writer/xml.rb'
|
|
26
|
+
|
|
27
|
+
# Offense count: 3
|
|
28
|
+
# Cop supports --auto-correct.
|
|
29
|
+
Performance/RegexpMatch:
|
|
30
|
+
Exclude:
|
|
31
|
+
- 'lib/nanaimo/unicode.rb'
|
|
32
|
+
- 'lib/nanaimo/writer.rb'
|
|
33
|
+
|
|
34
|
+
# Offense count: 1
|
|
35
|
+
# Cop supports --auto-correct.
|
|
36
|
+
# Configuration parameters: EnforcedStyle.
|
|
37
|
+
# SupportedStyles: compact, expanded
|
|
38
|
+
Style/EmptyMethod:
|
|
39
|
+
Exclude:
|
|
40
|
+
- 'lib/nanaimo/writer/xml.rb'
|
|
41
|
+
|
|
42
|
+
# Offense count: 1
|
|
43
|
+
# Cop supports --auto-correct.
|
|
44
|
+
Style/Encoding:
|
|
45
|
+
Exclude:
|
|
46
|
+
- 'nanaimo.gemspec'
|
|
47
|
+
|
|
48
|
+
# Offense count: 2
|
|
49
|
+
# Configuration parameters: .
|
|
50
|
+
# SupportedStyles: annotated, template, unannotated
|
|
51
|
+
Style/FormatStringToken:
|
|
52
|
+
EnforcedStyle: unannotated
|
|
53
|
+
|
|
54
|
+
# Offense count: 2
|
|
55
|
+
Style/IdenticalConditionalBranches:
|
|
56
|
+
Exclude:
|
|
57
|
+
- 'lib/nanaimo/unicode.rb'
|
|
58
|
+
|
|
59
|
+
# Offense count: 4
|
|
60
|
+
# Cop supports --auto-correct.
|
|
61
|
+
Style/IfUnlessModifier:
|
|
62
|
+
Exclude:
|
|
63
|
+
- 'lib/nanaimo/reader.rb'
|
|
64
|
+
- 'lib/nanaimo/unicode.rb'
|
|
65
|
+
|
|
66
|
+
# Offense count: 3
|
|
67
|
+
# Cop supports --auto-correct.
|
|
68
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
69
|
+
# SupportedStyles: predicate, comparison
|
|
70
|
+
Style/NumericPredicate:
|
|
71
|
+
Exclude:
|
|
72
|
+
- 'spec/**/*'
|
|
73
|
+
- 'lib/nanaimo/writer.rb'
|
|
74
|
+
|
|
75
|
+
# Offense count: 8
|
|
76
|
+
# Cop supports --auto-correct.
|
|
77
|
+
# Configuration parameters: PreferredDelimiters.
|
|
78
|
+
Style/PercentLiteralDelimiters:
|
|
79
|
+
Exclude:
|
|
80
|
+
- 'lib/nanaimo/reader.rb'
|
|
81
|
+
- 'lib/nanaimo/unicode.rb'
|
|
82
|
+
- 'spec/nanaimo/reader_spec.rb'
|
|
83
|
+
- 'spec/nanaimo/unicode_spec.rb'
|
|
84
|
+
- 'spec/nanaimo/writer/xml_spec.rb'
|
|
85
|
+
- 'spec/nanaimo/writer_spec.rb'
|
|
86
|
+
|
|
87
|
+
# Offense count: 1
|
|
88
|
+
# Cop supports --auto-correct.
|
|
89
|
+
Style/RedundantFreeze:
|
|
90
|
+
Exclude:
|
|
91
|
+
- 'lib/nanaimo/reader.rb'
|
|
92
|
+
|
|
93
|
+
# Offense count: 1
|
|
94
|
+
# Cop supports --auto-correct.
|
|
95
|
+
# Configuration parameters: MinSize.
|
|
96
|
+
# SupportedStyles: percent, brackets
|
|
97
|
+
Style/SymbolArray:
|
|
98
|
+
EnforcedStyle: brackets
|
|
99
|
+
|
|
100
|
+
# Offense count: 56
|
|
101
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
102
|
+
# URISchemes: http, https
|
|
103
|
+
Metrics/LineLength:
|
|
104
|
+
Max: 331
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Nanaimo Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.4 (2018-03-22)
|
|
4
|
+
|
|
5
|
+
##### Enhancements
|
|
6
|
+
|
|
7
|
+
* Enable frozen string literals to improve performance.
|
|
8
|
+
[Samuel Giddins](https://github.com/segiddins)
|
|
9
|
+
|
|
10
|
+
##### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* None.
|
|
13
|
+
|
|
14
|
+
|
|
3
15
|
## 0.2.3 (2016-11-30)
|
|
4
16
|
|
|
5
17
|
##### Enhancements
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nanaimo (0.2.
|
|
4
|
+
nanaimo (0.2.4)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
ast (2.
|
|
10
|
-
diff-lcs (1.
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
ast (2.4.0)
|
|
10
|
+
diff-lcs (1.3)
|
|
11
|
+
parallel (1.12.1)
|
|
12
|
+
parser (2.5.0.2)
|
|
13
|
+
ast (~> 2.4.0)
|
|
13
14
|
powerpack (0.1.1)
|
|
14
|
-
rainbow (
|
|
15
|
+
rainbow (3.0.0)
|
|
15
16
|
rake (10.5.0)
|
|
16
|
-
rspec (3.
|
|
17
|
-
rspec-core (~> 3.
|
|
18
|
-
rspec-expectations (~> 3.
|
|
19
|
-
rspec-mocks (~> 3.
|
|
20
|
-
rspec-core (3.
|
|
21
|
-
rspec-support (~> 3.
|
|
22
|
-
rspec-expectations (3.
|
|
17
|
+
rspec (3.7.0)
|
|
18
|
+
rspec-core (~> 3.7.0)
|
|
19
|
+
rspec-expectations (~> 3.7.0)
|
|
20
|
+
rspec-mocks (~> 3.7.0)
|
|
21
|
+
rspec-core (3.7.1)
|
|
22
|
+
rspec-support (~> 3.7.0)
|
|
23
|
+
rspec-expectations (3.7.0)
|
|
23
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
24
|
-
rspec-support (~> 3.
|
|
25
|
-
rspec-mocks (3.
|
|
25
|
+
rspec-support (~> 3.7.0)
|
|
26
|
+
rspec-mocks (3.7.0)
|
|
26
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
27
|
-
rspec-support (~> 3.
|
|
28
|
-
rspec-support (3.
|
|
29
|
-
rubocop (0.
|
|
30
|
-
|
|
28
|
+
rspec-support (~> 3.7.0)
|
|
29
|
+
rspec-support (3.7.1)
|
|
30
|
+
rubocop (0.52.1)
|
|
31
|
+
parallel (~> 1.10)
|
|
32
|
+
parser (>= 2.4.0.2, < 3.0)
|
|
31
33
|
powerpack (~> 0.1)
|
|
32
|
-
rainbow (>=
|
|
34
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
33
35
|
ruby-progressbar (~> 1.7)
|
|
34
36
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
35
|
-
ruby-progressbar (1.
|
|
36
|
-
unicode-display_width (1.
|
|
37
|
+
ruby-progressbar (1.9.0)
|
|
38
|
+
unicode-display_width (1.3.0)
|
|
37
39
|
|
|
38
40
|
PLATFORMS
|
|
39
41
|
ruby
|
|
@@ -46,4 +48,4 @@ DEPENDENCIES
|
|
|
46
48
|
rubocop
|
|
47
49
|
|
|
48
50
|
BUNDLED WITH
|
|
49
|
-
1.
|
|
51
|
+
1.16.1
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
47
47
|
|
|
48
48
|
## Contributing
|
|
49
49
|
|
|
50
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/CocoaPods/nanaimo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
## License
|
data/Rakefile
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'bundler/gem_tasks'
|
|
2
4
|
require 'rspec/core/rake_task'
|
|
3
|
-
require 'rubocop/rake_task'
|
|
4
5
|
|
|
5
6
|
RSpec::Core::RakeTask.new(:spec)
|
|
6
|
-
RuboCop::RakeTask.new
|
|
7
7
|
|
|
8
|
-
task default: [:spec
|
|
8
|
+
task default: [:spec]
|
|
9
|
+
|
|
10
|
+
if RUBY_VERSION >= '2.1'
|
|
11
|
+
require 'rubocop/rake_task'
|
|
12
|
+
RuboCop::RakeTask.new
|
|
13
|
+
task default: :rubocop
|
|
14
|
+
end
|
|
9
15
|
|
|
10
16
|
task :generate_nextstep_mappings do
|
|
11
17
|
require 'net/http'
|
data/bin/console
CHANGED
data/lib/nanaimo.rb
CHANGED
data/lib/nanaimo/object.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Nanaimo
|
|
2
4
|
# An object that belongs to a plist.
|
|
3
5
|
#
|
|
@@ -73,7 +75,7 @@ module Nanaimo
|
|
|
73
75
|
#
|
|
74
76
|
class Data < Object
|
|
75
77
|
def initialize(value, annotation)
|
|
76
|
-
value &&= value.force_encoding(Encoding::BINARY)
|
|
78
|
+
value &&= value.dup.force_encoding(Encoding::BINARY)
|
|
77
79
|
super(value, annotation)
|
|
78
80
|
end
|
|
79
81
|
|
data/lib/nanaimo/plist.rb
CHANGED
data/lib/nanaimo/reader.rb
CHANGED
data/lib/nanaimo/unicode.rb
CHANGED
data/lib/nanaimo/version.rb
CHANGED
data/lib/nanaimo/writer.rb
CHANGED
data/lib/nanaimo/writer/xml.rb
CHANGED
data/nanaimo.gemspec
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.2.
|
|
4
|
+
version: 0.2.4
|
|
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:
|
|
12
|
+
date: 2018-03-22 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.7.6
|
|
111
111
|
signing_key:
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: A library for (de)serialization of ASCII Plists.
|