rixml 0.6.1 → 0.6.2

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: 809fe2f0d39dea960dc81fd1b6913a1cda68f3d4
4
- data.tar.gz: 9025840e15b3e3562b6764b2aee3373afce120a0
3
+ metadata.gz: 3df374fd314f9307c4ed1b1c2e7e9ebebb451948
4
+ data.tar.gz: 4ebb200c204f3b042033d580b6990577982ad37c
5
5
  SHA512:
6
- metadata.gz: 84f5cd2cf0b5ac0b958ee2e43a918b663ba3c2e5b708174e2cb448fe8f95a302cd19f0c99072613808749f802c9b63b3c77e31142e2866908b2cb2bb516c2328
7
- data.tar.gz: 4f6a2b3def5b98debc2d2b56410403bf8dde7aa7e7e6814eeac357ca722fb82b75e6500ca1d32e6337bba0566904a51cc82c51da928cbe1f816a73a6924d5919
6
+ metadata.gz: 2b82a4b1c3e0fef406b135305a9153ab438cd85afb805d2c842b343267f6615b67e03b7841c43d1820f6c15837132db0bb4ef9456437ade1a9cbdd93ccb7883d
7
+ data.tar.gz: e72239544f7ca75d31494d4c1137a9383837122de5f81df0dfdde22373e90078619584c600479309754e319ab0f5f7979ece7243ccc2316486c3a383bdfa48c1
@@ -6,8 +6,6 @@ inherit_from: .rubocop_todo.yml
6
6
 
7
7
  AllCops:
8
8
  Exclude:
9
- - 'spec/**/*'
10
- - 'test/**/*'
11
9
  - 'vendor/**/*'
12
10
 
13
11
  Style/MethodCallWithArgsParentheses:
@@ -1,43 +1,62 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-10-08 11:27:04 +0000 using RuboCop version 0.55.0.
3
+ # on 2018-10-17 23:38:56 +0100 using RuboCop version 0.58.2.
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
8
 
9
- # Offense count: 1
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemspec
12
- Gemspec/RequiredRubyVersion:
13
- Exclude:
14
- - 'rixml.gemspec'
15
-
16
9
  # Offense count: 1
17
10
  # Configuration parameters: MaximumRangeSize.
18
11
  Lint/MissingCopEnableDirective:
19
12
  Exclude:
20
13
  - 'lib/rixml.rb'
21
14
 
15
+ # Offense count: 2
16
+ Metrics/AbcSize:
17
+ Max: 17
18
+
19
+ # Offense count: 20
20
+ # Configuration parameters: CountComments, ExcludedMethods.
21
+ # ExcludedMethods: refine
22
+ Metrics/BlockLength:
23
+ Max: 331
24
+
22
25
  # Offense count: 1
26
+ # Configuration parameters: CountComments.
27
+ Metrics/ClassLength:
28
+ Max: 149
29
+
30
+ # Offense count: 3
31
+ # Configuration parameters: CountComments.
32
+ Metrics/MethodLength:
33
+ Max: 35
34
+
35
+ # Offense count: 1
36
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
37
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
23
38
  Naming/MemoizedInstanceVariableName:
24
39
  Exclude:
25
40
  - 'lib/rixml.rb'
26
41
 
27
- # Offense count: 4
42
+ # Offense count: 10
28
43
  # Configuration parameters: EnforcedStyle.
29
44
  # SupportedStyles: strict, flexible
30
45
  Rails/TimeZone:
31
46
  Exclude:
32
47
  - 'lib/rixml.rb'
48
+ - 'spec/rixml_document/research_spec.rb'
49
+ - 'spec/rixml_document/status_info_spec.rb'
50
+ - 'spec/rixml_document_spec.rb'
33
51
 
34
- # Offense count: 2
52
+ # Offense count: 6
35
53
  Style/DateTime:
36
54
  Exclude:
37
55
  - 'lib/rixml.rb'
56
+ - 'test/rixml_test.rb'
38
57
 
39
- # Offense count: 35
58
+ # Offense count: 126
40
59
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
41
60
  # URISchemes: http, https
42
61
  Metrics/LineLength:
43
- Max: 116
62
+ Max: 175
@@ -4,26 +4,27 @@ PATH
4
4
  rixml (0.0.0)
5
5
  activesupport (>= 4.0.0)
6
6
  nokogiri (~> 1.5)
7
- nokogiri-happymapper (~> 0.6.0)
7
+ nokogiri-happymapper (~> 0.8.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.1.4)
12
+ activesupport (5.2.1)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (~> 0.7)
14
+ i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
17
  ast (2.4.0)
18
18
  byebug (9.0.6)
19
19
  concurrent-ruby (1.0.5)
20
20
  diff-lcs (1.3)
21
- i18n (0.8.6)
21
+ i18n (1.1.1)
22
+ concurrent-ruby (~> 1.0)
22
23
  mini_portile2 (2.3.0)
23
24
  minitest (5.10.1)
24
- nokogiri (1.8.1)
25
+ nokogiri (1.8.5)
25
26
  mini_portile2 (~> 2.3.0)
26
- nokogiri-happymapper (0.6.0)
27
+ nokogiri-happymapper (0.8.0)
27
28
  nokogiri (~> 1.5)
28
29
  parallel (1.12.1)
29
30
  parser (2.5.1.2)
@@ -54,7 +55,7 @@ GEM
54
55
  ruby-progressbar (1.10.0)
55
56
  thor (0.19.4)
56
57
  thread_safe (0.3.6)
57
- tzinfo (1.2.3)
58
+ tzinfo (1.2.5)
58
59
  thread_safe (~> 0.1)
59
60
  unicode-display_width (1.4.0)
60
61
  va-ruby-style (0.0.1)
@@ -113,7 +113,6 @@ class RIXML
113
113
  return length.to_i if length.respond_to?(:to_i)
114
114
  end
115
115
 
116
- # rubocop:disable Metrics/MethodLength
117
116
  def parse_info_from_author(author)
118
117
  person = author&.dig('Person')
119
118
  {
@@ -127,7 +126,6 @@ class RIXML
127
126
  contacts: parse_author_contacts(person['ContactInfo']),
128
127
  }
129
128
  end
130
- # rubocop:enable Metrics/MethodLength
131
129
 
132
130
  def primary?(primary_indicator)
133
131
  primary_indicator == 'Yes'
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'rixml'
5
- s.version = '0.6.1'
6
- s.date = '2018-10-09'
5
+ s.version = '0.6.2'
6
+ s.date = '2018-11-02'
7
7
  s.summary = 'RIXML Parser'
8
8
  s.description = 'Parse RIXML files'
9
9
  s.homepage = 'https://github.com/AlphaExchange/rixml'
@@ -24,5 +24,5 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.add_runtime_dependency 'activesupport', '>= 4.0.0'
26
26
  s.add_runtime_dependency 'nokogiri', '~> 1.5'
27
- s.add_runtime_dependency 'nokogiri-happymapper', '~> 0.6.0'
27
+ s.add_runtime_dependency 'nokogiri-happymapper', '~> 0.8.0'
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rixml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Correia Santos
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-09 00:00:00.000000000 Z
12
+ date: 2018-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: 0.6.0
132
+ version: 0.8.0
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 0.6.0
139
+ version: 0.8.0
140
140
  description: Parse RIXML files
141
141
  email:
142
142
  - alex@alpha-exchange.com