rixml 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +24 -0
  3. data/.rubocop.yml +12 -11
  4. data/.rubocop_todo.yml +43 -0
  5. data/Dockerfile +10 -0
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +18 -13
  8. data/Rakefile +1 -0
  9. data/docker-compose.yml +12 -0
  10. data/lib/rixml.rb +15 -14
  11. data/lib/rixml_document.rb +1 -0
  12. data/lib/rixml_document/asset_class.rb +1 -0
  13. data/lib/rixml_document/asset_type.rb +1 -0
  14. data/lib/rixml_document/audience_type_entitlement.rb +1 -0
  15. data/lib/rixml_document/contact.rb +1 -0
  16. data/lib/rixml_document/content.rb +1 -0
  17. data/lib/rixml_document/context.rb +1 -0
  18. data/lib/rixml_document/country.rb +1 -0
  19. data/lib/rixml_document/entitlement.rb +1 -0
  20. data/lib/rixml_document/issuer.rb +1 -0
  21. data/lib/rixml_document/length.rb +1 -0
  22. data/lib/rixml_document/node.rb +1 -0
  23. data/lib/rixml_document/organization.rb +1 -0
  24. data/lib/rixml_document/organization_id.rb +1 -0
  25. data/lib/rixml_document/person.rb +1 -0
  26. data/lib/rixml_document/person_group_member.rb +1 -0
  27. data/lib/rixml_document/phone.rb +1 -0
  28. data/lib/rixml_document/price.rb +1 -0
  29. data/lib/rixml_document/product.rb +1 -0
  30. data/lib/rixml_document/product_category.rb +1 -0
  31. data/lib/rixml_document/product_details.rb +1 -0
  32. data/lib/rixml_document/research.rb +1 -0
  33. data/lib/rixml_document/resource.rb +1 -0
  34. data/lib/rixml_document/rixml_type/normalized_string.rb +1 -0
  35. data/lib/rixml_document/rixml_type/upcase_string.rb +1 -0
  36. data/lib/rixml_document/rixml_type/yes_no_boolean.rb +1 -0
  37. data/lib/rixml_document/security.rb +1 -0
  38. data/lib/rixml_document/security_id.rb +2 -0
  39. data/lib/rixml_document/security_type.rb +1 -0
  40. data/lib/rixml_document/source.rb +1 -0
  41. data/lib/rixml_document/status_info.rb +1 -0
  42. data/rixml.gemspec +16 -15
  43. metadata +34 -31
  44. data/circle.yml +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7b67ae903153c9afe64b985464dd42caadd94fd
4
- data.tar.gz: e0aecddb8629fede4f24b29069f5535d98891a4a
3
+ metadata.gz: 809fe2f0d39dea960dc81fd1b6913a1cda68f3d4
4
+ data.tar.gz: 9025840e15b3e3562b6764b2aee3373afce120a0
5
5
  SHA512:
6
- metadata.gz: 27a3417db7bc28eff14f32227c066f4af9c47d0de10b01b2bef6139d8d83eec71ece2dcc8727b0fc5f08eb1d34f96a1ff5e0e06e9de0b605af2fe67ca32102c0
7
- data.tar.gz: b07d0be86d6c3677b9a9f2acdeb1ec307340197e52dde07b905d91802dbccd56c81b9df3bc056462b55f5bbc0738c43c9d749058e6bc4b100073bfaa77900d6a
6
+ metadata.gz: 84f5cd2cf0b5ac0b958ee2e43a918b663ba3c2e5b708174e2cb448fe8f95a302cd19f0c99072613808749f802c9b63b3c77e31142e2866908b2cb2bb516c2328
7
+ data.tar.gz: 4f6a2b3def5b98debc2d2b56410403bf8dde7aa7e7e6814eeac357ca722fb82b75e6500ca1d32e6337bba0566904a51cc82c51da928cbe1f816a73a6924d5919
@@ -0,0 +1,24 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: circleci/ruby:2.4.3-node
6
+
7
+ steps:
8
+ - checkout
9
+ - restore_cache:
10
+ keys:
11
+ - rixml-bundle-v1-{{ checksum "Gemfile.lock" }}
12
+ - run:
13
+ name: Install Dependencies
14
+ command: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
15
+ - save_cache:
16
+ key: rixml-bundle-v1-{{ checksum "Gemfile.lock" }}
17
+ paths:
18
+ - vendor/bundle
19
+ - run:
20
+ name: Linting
21
+ command: bundle exec rubocop
22
+ - run:
23
+ name: Tests
24
+ command: bundle exec rake && bundle exec rspec
data/.rubocop.yml CHANGED
@@ -1,16 +1,17 @@
1
- Style/Documentation:
2
- Enabled: false
3
- Metrics/ClassLength:
4
- Max: 120
5
- Metrics/LineLength:
6
- Max: 120
7
- Metrics/AbcSize:
8
- Max: 18
1
+ inherit_gem:
2
+ va-ruby-style:
3
+ - default.yml
4
+
5
+ inherit_from: .rubocop_todo.yml
6
+
9
7
  AllCops:
10
- TargetRubyVersion: 2.3
11
- DisplayCopNames: true
12
- DisplayStyleGuide: true
13
8
  Exclude:
14
9
  - 'spec/**/*'
15
10
  - 'test/**/*'
16
11
  - 'vendor/**/*'
12
+
13
+ Style/MethodCallWithArgsParentheses:
14
+ Exclude:
15
+ - Gemfile
16
+ - Rakefile
17
+ - '*.gemspec'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,43 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-10-08 11:27:04 +0000 using RuboCop version 0.55.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'rixml.gemspec'
15
+
16
+ # Offense count: 1
17
+ # Configuration parameters: MaximumRangeSize.
18
+ Lint/MissingCopEnableDirective:
19
+ Exclude:
20
+ - 'lib/rixml.rb'
21
+
22
+ # Offense count: 1
23
+ Naming/MemoizedInstanceVariableName:
24
+ Exclude:
25
+ - 'lib/rixml.rb'
26
+
27
+ # Offense count: 4
28
+ # Configuration parameters: EnforcedStyle.
29
+ # SupportedStyles: strict, flexible
30
+ Rails/TimeZone:
31
+ Exclude:
32
+ - 'lib/rixml.rb'
33
+
34
+ # Offense count: 2
35
+ Style/DateTime:
36
+ Exclude:
37
+ - 'lib/rixml.rb'
38
+
39
+ # Offense count: 35
40
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
41
+ # URISchemes: http, https
42
+ Metrics/LineLength:
43
+ Max: 116
data/Dockerfile ADDED
@@ -0,0 +1,10 @@
1
+ FROM ruby:2.4.3
2
+
3
+ ENV APP_HOME rixml
4
+ ENV PATH=$APP_HOME/bin:$PATH
5
+
6
+ RUN gem install bundler
7
+ ENV BUNDLE_PATH=/bundle BUNDLE_JOBS=4
8
+
9
+ ADD . $APP_HOME
10
+ WORKDIR $APP_HOME
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source 'https://rubygems.org'
3
4
 
4
5
  gemspec
data/Gemfile.lock CHANGED
@@ -14,7 +14,7 @@ GEM
14
14
  i18n (~> 0.7)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
- ast (2.3.0)
17
+ ast (2.4.0)
18
18
  byebug (9.0.6)
19
19
  concurrent-ruby (1.0.5)
20
20
  diff-lcs (1.3)
@@ -25,11 +25,11 @@ GEM
25
25
  mini_portile2 (~> 2.3.0)
26
26
  nokogiri-happymapper (0.6.0)
27
27
  nokogiri (~> 1.5)
28
- parser (2.4.0.0)
29
- ast (~> 2.2)
30
- powerpack (0.1.1)
31
- rainbow (2.2.2)
32
- rake
28
+ parallel (1.12.1)
29
+ parser (2.5.1.2)
30
+ ast (~> 2.4.0)
31
+ powerpack (0.1.2)
32
+ rainbow (3.0.0)
33
33
  rake (11.3.0)
34
34
  rspec (3.6.0)
35
35
  rspec-core (~> 3.6.0)
@@ -44,17 +44,22 @@ GEM
44
44
  diff-lcs (>= 1.2.0, < 2.0)
45
45
  rspec-support (~> 3.6.0)
46
46
  rspec-support (3.6.0)
47
- rubocop (0.45.0)
48
- parser (>= 2.3.1.1, < 3.0)
47
+ rubocop (0.55.0)
48
+ parallel (~> 1.10)
49
+ parser (>= 2.5)
49
50
  powerpack (~> 0.1)
50
- rainbow (>= 1.99.1, < 3.0)
51
+ rainbow (>= 2.2.2, < 4.0)
51
52
  ruby-progressbar (~> 1.7)
52
53
  unicode-display_width (~> 1.0, >= 1.0.1)
53
- ruby-progressbar (1.8.1)
54
+ ruby-progressbar (1.10.0)
55
+ thor (0.19.4)
54
56
  thread_safe (0.3.6)
55
57
  tzinfo (1.2.3)
56
58
  thread_safe (~> 0.1)
57
- unicode-display_width (1.2.1)
59
+ unicode-display_width (1.4.0)
60
+ va-ruby-style (0.0.1)
61
+ rubocop (= 0.55.0)
62
+ thor (= 0.19.4)
58
63
 
59
64
  PLATFORMS
60
65
  ruby
@@ -66,7 +71,7 @@ DEPENDENCIES
66
71
  rake (~> 11.3)
67
72
  rixml!
68
73
  rspec (~> 3.6)
69
- rubocop (~> 0.45.0)
74
+ va-ruby-style (= 0.0.1)
70
75
 
71
76
  BUNDLED WITH
72
- 1.15.3
77
+ 1.16.6
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'bundler/gem_tasks'
3
4
  require 'rake/testtask'
4
5
 
@@ -0,0 +1,12 @@
1
+ version: '3'
2
+
3
+ services:
4
+ test:
5
+ build: .
6
+ command: bash -c 'bundle install && rubocop && rake && rspec'
7
+ volumes:
8
+ - .:/rixml
9
+ - bundler-cache:/bundle
10
+
11
+ volumes:
12
+ bundler-cache:
data/lib/rixml.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'nokogiri'
3
4
  require 'date'
4
5
  require 'active_support/core_ext/hash/conversions'
@@ -42,7 +43,7 @@ class RIXML
42
43
  status = current_status_info&.dig('statusType')&.downcase&.to_sym || :published
43
44
  {
44
45
  status_type: status,
45
- status_date_time: Time.parse(time_str).to_datetime.to_s
46
+ status_date_time: Time.parse(time_str).to_datetime.to_s,
46
47
  }
47
48
  end
48
49
 
@@ -54,11 +55,11 @@ class RIXML
54
55
 
55
56
  def authors
56
57
  org = @attrs.dig('Research', 'Product', 'Source', 'Organization') || {}
57
- if org.is_a? Array
58
+ if org.is_a?(Array)
58
59
  org = org.find { |v| v['primaryIndicator'] == 'Yes' } || org.first
59
60
  end
60
61
  authors = org.dig('PersonGroup', 'PersonGroupMember') || []
61
- authors = [authors] unless authors.is_a? Array
62
+ authors = [authors] unless authors.is_a?(Array)
62
63
 
63
64
  authors.map { |author| parse_info_from_author(author) }
64
65
  end
@@ -71,7 +72,7 @@ class RIXML
71
72
  abstract: content['Abstract'],
72
73
  synopsis: content['Synopsis'],
73
74
  file_name: content['Resource']&.dig('Name'),
74
- pages: resource_length(content['Resource'])
75
+ pages: resource_length(content['Resource']),
75
76
  }
76
77
  end
77
78
 
@@ -91,7 +92,7 @@ class RIXML
91
92
  sectors: parse_sectors_from_context(context),
92
93
  countries: parse_countries_from_context(context),
93
94
  category: parse_product_category_from_context(context),
94
- publication_date: parse_publication_date_from_context(context)
95
+ publication_date: parse_publication_date_from_context(context),
95
96
  }
96
97
  end
97
98
 
@@ -103,7 +104,7 @@ class RIXML
103
104
 
104
105
  def current_status_info
105
106
  info = @attrs.dig('Research', 'Product', 'StatusInfo')
106
- info = [info] unless info.is_a? Array
107
+ info = [info] unless info.is_a?(Array)
107
108
  info.find { |status| status&.dig('currentStatusIndicator')&.downcase == 'yes' } || info.first
108
109
  end
109
110
 
@@ -123,7 +124,7 @@ class RIXML
123
124
  last_name: person['FamilyName'],
124
125
  job_title: person['JobTitle'],
125
126
  email: person['ContactInfo']&.dig('Email')&.downcase, # TODO: Remove: Use email from contacts
126
- contacts: parse_author_contacts(person['ContactInfo'])
127
+ contacts: parse_author_contacts(person['ContactInfo']),
127
128
  }
128
129
  end
129
130
  # rubocop:enable Metrics/MethodLength
@@ -133,12 +134,12 @@ class RIXML
133
134
  end
134
135
 
135
136
  def parse_author_contacts(contacts)
136
- contacts = [contacts] unless contacts.is_a? Array
137
+ contacts = [contacts] unless contacts.is_a?(Array)
137
138
 
138
139
  contacts.map do |contact|
139
140
  {
140
141
  email: contact&.dig('Email')&.downcase,
141
- phone: parse_author_contact_phone(contact&.dig('Phone'))
142
+ phone: parse_author_contact_phone(contact&.dig('Phone')),
142
143
  }
143
144
  end
144
145
  end
@@ -150,7 +151,7 @@ class RIXML
150
151
  def parse_sectors_from_context(context)
151
152
  list = context['ProductClassifications'].try(:[], 'SectorIndustry')
152
153
  return [] if list.nil?
153
- list = [list] unless list.is_a? Array
154
+ list = [list] unless list.is_a?(Array)
154
155
  list.select { |s| s['classificationType'] == 'GICS' }.map do |v|
155
156
  { code: v['code'].to_i, focus: v['focusLevel'].try(:downcase) == 'yes' }
156
157
  end
@@ -184,7 +185,7 @@ class RIXML
184
185
 
185
186
  def parse_company_info(company)
186
187
  securities = company.dig('SecurityDetails', 'Security')
187
- securities = [securities].compact unless securities.is_a? Array
188
+ securities = [securities].compact unless securities.is_a?(Array)
188
189
  securities.map do |security|
189
190
  info = { name: (company.dig('IssuerName') || {})['NameValue'], primary: company['primaryIndicator'] == 'Yes' }
190
191
  info = info.merge(parse_security_info(security))
@@ -194,7 +195,7 @@ class RIXML
194
195
 
195
196
  def parse_security_info(security)
196
197
  security_ids = security.dig('SecurityID')
197
- security_ids = [security_ids].compact unless security_ids.is_a? Array
198
+ security_ids = [security_ids].compact unless security_ids.is_a?(Array)
198
199
  security_ids&.map do |security_id|
199
200
  { security_id['idType'].underscore.to_sym => security_id['idValue'] }
200
201
  end&.reduce({}, :merge) || []
@@ -202,11 +203,11 @@ class RIXML
202
203
 
203
204
  def parse_securities(security)
204
205
  security_ids = security.dig('SecurityID')
205
- security_ids = [security_ids].compact unless security_ids.is_a? Array
206
+ security_ids = [security_ids].compact unless security_ids.is_a?(Array)
206
207
  security_ids&.map do |security_id|
207
208
  {
208
209
  primary: primary?(security.dig('primaryIndicator')),
209
- security_id['idType'].underscore.to_sym => security_id['idValue']
210
+ security_id['idType'].underscore.to_sym => security_id['idValue'],
210
211
  }
211
212
  end
212
213
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require_relative './rixml_document/research'
3
4
 
4
5
  module RixmlDocument
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './phone'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './resource'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './issuer'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/upcase_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './audience_type_entitlement'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './security'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module RixmlDocument
3
4
  class Node
4
5
  def to_hash
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './organization_id'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './contact'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './person'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/upcase_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './source'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './product_category'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './product'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './length'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require 'active_support/core_ext/string'
4
5
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
 
4
5
  module RixmlDocument
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
 
4
5
  module RixmlDocument
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './security_id'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -10,6 +11,7 @@ module RixmlDocument
10
11
  tag 'SecurityID'
11
12
 
12
13
  attribute :id_type, RixmlType::NormalizedString, tag: 'idType'
14
+ attribute :publisher_defined_value, String, tag: 'publisherDefinedValue'
13
15
  attribute :id_value, String, tag: 'idValue'
14
16
  attribute :trading_country_code, RixmlType::UpcaseString, tag: 'tradingCountryCode'
15
17
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './organization'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'happymapper'
3
4
  require_relative './node'
4
5
  require_relative './rixml_type/normalized_string'
data/rixml.gemspec CHANGED
@@ -1,27 +1,28 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  Gem::Specification.new do |s|
3
- s.name = 'rixml'
4
- s.version = '0.6.0'
5
- s.date = '2018-05-11'
6
- s.summary = 'RIXML Parser'
7
- s.description = 'Parse RIXML files'
8
- s.homepage = 'https://github.com/AlphaExchange/rixml'
9
- s.authors = ['Alex Correia Santos', 'Leonardo Goularte Siqueira']
10
- s.email = ['alex@alpha-exchange.com', 'leonardo@alpha-exchange.com']
11
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
4
+ s.name = 'rixml'
5
+ s.version = '0.6.1'
6
+ s.date = '2018-10-09'
7
+ s.summary = 'RIXML Parser'
8
+ s.description = 'Parse RIXML files'
9
+ s.homepage = 'https://github.com/AlphaExchange/rixml'
10
+ s.authors = ['Alex Correia Santos', 'Leonardo Goularte Siqueira']
11
+ s.email = ['alex@alpha-exchange.com', 'leonardo@alpha-exchange.com']
12
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
12
13
  s.require_paths = ['lib']
13
- s.license = 'MIT'
14
+ s.license = 'MIT'
14
15
 
15
- s.required_ruby_version = '>= 2.2.2'
16
+ s.required_ruby_version = '>= 2.4'
16
17
 
17
18
  s.add_development_dependency 'bundler', '~> 1.12'
19
+ s.add_development_dependency 'byebug'
18
20
  s.add_development_dependency 'minitest', '~> 5.1'
19
- s.add_development_dependency 'rspec', '~> 3.6'
20
21
  s.add_development_dependency 'rake', '~> 11.3'
21
- s.add_development_dependency 'rubocop', '~> 0.45.0'
22
- s.add_development_dependency 'byebug'
22
+ s.add_development_dependency 'rspec', '~> 3.6'
23
+ s.add_development_dependency 'va-ruby-style', '0.0.1'
23
24
 
24
- s.add_runtime_dependency 'nokogiri', '~> 1.5'
25
25
  s.add_runtime_dependency 'activesupport', '>= 4.0.0'
26
+ s.add_runtime_dependency 'nokogiri', '~> 1.5'
26
27
  s.add_runtime_dependency 'nokogiri-happymapper', '~> 0.6.0'
27
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.0
4
+ version: 0.6.1
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-05-11 00:00:00.000000000 Z
12
+ date: 2018-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -26,33 +26,33 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.12'
28
28
  - !ruby/object:Gem::Dependency
29
- name: minitest
29
+ name: byebug
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '5.1'
34
+ version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '5.1'
41
+ version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
- name: rspec
43
+ name: minitest
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '3.6'
48
+ version: '5.1'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '3.6'
55
+ version: '5.1'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -68,61 +68,61 @@ dependencies:
68
68
  - !ruby/object:Gem::Version
69
69
  version: '11.3'
70
70
  - !ruby/object:Gem::Dependency
71
- name: rubocop
71
+ name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 0.45.0
76
+ version: '3.6'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 0.45.0
83
+ version: '3.6'
84
84
  - !ruby/object:Gem::Dependency
85
- name: byebug
85
+ name: va-ruby-style
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: 0.0.1
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: 0.0.1
98
98
  - !ruby/object:Gem::Dependency
99
- name: nokogiri
99
+ name: activesupport
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - "~>"
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: '1.5'
104
+ version: 4.0.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - "~>"
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
- version: '1.5'
111
+ version: 4.0.0
112
112
  - !ruby/object:Gem::Dependency
113
- name: activesupport
113
+ name: nokogiri
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 4.0.0
118
+ version: '1.5'
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ">="
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 4.0.0
125
+ version: '1.5'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: nokogiri-happymapper
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -145,14 +145,17 @@ executables: []
145
145
  extensions: []
146
146
  extra_rdoc_files: []
147
147
  files:
148
+ - ".circleci/config.yml"
148
149
  - ".gitignore"
149
150
  - ".rspec"
150
151
  - ".rubocop.yml"
152
+ - ".rubocop_todo.yml"
153
+ - Dockerfile
151
154
  - Gemfile
152
155
  - Gemfile.lock
153
156
  - README.md
154
157
  - Rakefile
155
- - circle.yml
158
+ - docker-compose.yml
156
159
  - lib/rixml.rb
157
160
  - lib/rixml_document.rb
158
161
  - lib/rixml_document/asset_class.rb
@@ -202,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
205
  requirements:
203
206
  - - ">="
204
207
  - !ruby/object:Gem::Version
205
- version: 2.2.2
208
+ version: '2.4'
206
209
  required_rubygems_version: !ruby/object:Gem::Requirement
207
210
  requirements:
208
211
  - - ">="
@@ -210,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
213
  version: '0'
211
214
  requirements: []
212
215
  rubyforge_project:
213
- rubygems_version: 2.5.2
216
+ rubygems_version: 2.6.11
214
217
  signing_key:
215
218
  specification_version: 4
216
219
  summary: RIXML Parser
data/circle.yml DELETED
@@ -1,9 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.3.3
4
- test:
5
- override:
6
- - bundle exec rake
7
- - bundle exec rspec
8
- post:
9
- - bundle exec rubocop