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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e30f17a84a464d962e9bc6e09b87366c3b687533
4
- data.tar.gz: 7e33c706987fce3441e4db2886301f627a216be6
2
+ SHA256:
3
+ metadata.gz: 53e87cd361361b93ae0c78503a44da0ad261cdcbdcaf3ec5aedc0434640790ca
4
+ data.tar.gz: dac56be099c658037a703af6bfa8f2b6bed3c02c8c98fe7ae2bea17cd9116bb3
5
5
  SHA512:
6
- metadata.gz: 0f1c5644038310ebea8d3cd7ae2888508a37a04de6d998c29c53a51fd22bee207ca0280b653946157b6bf33287c46cd933ada5ce35969ead00e10bcda95fd877
7
- data.tar.gz: 1bbd5aa4f19600e2d96658627bd7e43743268c6180c78acbb17f341d27e253298af8ce06b43a074f3eb3e71d48c3ae12a191baa0a3bf6f8581b0301ea94906b0
6
+ metadata.gz: 1bd45db073a2b9a3bc5da56ed5ca97d384e616378234859211a2a675719e296fbd5a075b3631c2a4e5844fd0fea459467b2a9e47967a90d1e1eba2b59f227870
7
+ data.tar.gz: 4ebeab355e2d531d0b55f83e4575fa8dca7d27c4a3501fc4f7fe00b8d3ac0e7f4c5803d1e04e337b8e0cc1f797ca276e6a7201e1812be046e93db7e01c124fe5
@@ -2,6 +2,7 @@ inherit_from:
2
2
  - .rubocop_todo.yml
3
3
 
4
4
  AllCops:
5
+ TargetRubyVersion: 2.1
5
6
  Exclude:
6
7
  - 'lib/nanaimo/unicode/**/*.rb'
7
8
  - 'vendor/**/*'
@@ -1,7 +1,104 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-10-15 01:47:18 -0500 using RuboCop version 0.43.0.
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
@@ -6,8 +6,7 @@ language: ruby
6
6
  cache: bundler
7
7
  rvm:
8
8
  # The latest ruby version
9
- - 2.3.1
9
+ - 2.5.0
10
+ - 2.4.2
10
11
  # OS X 10.9.5-10.10.0 (2.0.0-p481)
11
12
  - 2.0.0-p481
12
- # OS X 10.9.3-10.9.4
13
- - 2.0.0-p451
@@ -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
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in nanaimo.gemspec
4
6
  gemspec
5
7
 
6
8
  group :development do
7
- gem 'rubocop'
9
+ gem 'rubocop', install_if: RUBY_VERSION >= '2.1'
8
10
  end
@@ -1,39 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nanaimo (0.2.3)
4
+ nanaimo (0.2.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.3.0)
10
- diff-lcs (1.2.5)
11
- parser (2.3.1.4)
12
- ast (~> 2.2)
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 (2.1.0)
15
+ rainbow (3.0.0)
15
16
  rake (10.5.0)
16
- rspec (3.5.0)
17
- rspec-core (~> 3.5.0)
18
- rspec-expectations (~> 3.5.0)
19
- rspec-mocks (~> 3.5.0)
20
- rspec-core (3.5.4)
21
- rspec-support (~> 3.5.0)
22
- rspec-expectations (3.5.0)
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.5.0)
25
- rspec-mocks (3.5.0)
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.5.0)
28
- rspec-support (3.5.0)
29
- rubocop (0.43.0)
30
- parser (>= 2.3.1.1, < 3.0)
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 (>= 1.99.1, < 3.0)
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.8.1)
36
- unicode-display_width (1.1.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.13.5
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/[USERNAME]/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.
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, :rubocop]
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'
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'nanaimo'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'nanaimo/version'
2
4
 
3
5
  # A native Ruby implementation of ASCII plist parsing and serialization.
@@ -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
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Nanaimo
2
4
  # A Plist.
3
5
  #
@@ -1,4 +1,5 @@
1
1
  # frozen-string-literal: true
2
+
2
3
  module Nanaimo
3
4
  # Transforms plist strings into Plist objects.
4
5
  #
@@ -1,4 +1,5 @@
1
1
  # frozen-string-literal: true
2
+
2
3
  require 'nanaimo/unicode/next_step_mapping'
3
4
  require 'nanaimo/unicode/quote_maps'
4
5
  module Nanaimo
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Nanaimo
2
- VERSION = '0.2.3'.freeze
4
+ VERSION = '0.2.4'.freeze
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Nanaimo
2
4
  # Transforms native ruby objects or Plist objects into their ASCII Plist
3
5
  # string representation.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Nanaimo
2
4
  class Writer
3
5
  # Transforms native ruby objects or Plist objects into their ASCII Plist
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Nanaimo
2
4
  class Writer
3
5
  # Transforms native ruby objects or Plist objects into their XML Plist
@@ -1,4 +1,6 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
3
+
2
4
  lib = File.expand_path('../lib', __FILE__)
3
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
6
  require 'nanaimo/version'
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.3
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: 2016-11-30 00:00:00.000000000 Z
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.8
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.