forward-calendar 0.8.1 → 0.8.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: 2c7e4ae93d33106f9bd7d1e4ea89652015aac4a4
4
- data.tar.gz: 2d9b3bd45ef5e7934f700506e88d11e7e1cc9f44
3
+ metadata.gz: 0325e00f6b0d42e5a3ca1b999badacb6b38a4366
4
+ data.tar.gz: b0c7956fc29290fb0362ee24dab249400afc46c2
5
5
  SHA512:
6
- metadata.gz: 414511106ad0b7b0a8c08e283fb6b67dc7c8927a04301ab0bb84494b08b0b75c7ea358f58e6de146711e1bd004c42b800841750e95c15d8148f5abfed027998e
7
- data.tar.gz: 36831c7c43df105a69354c2bfc17b44fdef1257a18fad7a4bdf56900dc5f074b0d1458df460a437a7a43231219620c4e159d4e7ca350a2f7f91c8bf5e8d216e3
6
+ metadata.gz: 603d305c2bc988f9deaa680fe6042f67e5459020525157ed0a7a2f582a73bcca6407b9368ac45b98e31733cfc8c91beaac077d0b5937a9511330124e415ee646
7
+ data.tar.gz: f1d56019482f60f87a567b7b88ad9f30f0885e99d40f725b1da8cd8b59e6da7d51f94c674dc53bc8f45d718463527cff29c7386ea6db42d433a020ad6a0f90ea
@@ -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
+ - forward-calendar-rb-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: forward-calendar-rb-bundle-v1-{{ checksum "Gemfile.lock" }}
17
+ paths:
18
+ - vendor/bundle
19
+ - run:
20
+ name: Linting
21
+ command: bundle exec rubocop
22
+ - run:
23
+ name: Test
24
+ command: bundle exec rspec
@@ -1,18 +1,16 @@
1
- Style/Documentation:
2
- Enabled: false
3
- Style/FileName:
4
- Exclude:
5
- - 'lib/forward-calendar.rb'
6
- Metrics/ClassLength:
7
- Max: 120
8
- Metrics/LineLength:
9
- Max: 120
10
- Metrics/AbcSize:
11
- Max: 18
1
+ inherit_gem:
2
+ va-ruby-style:
3
+ - default.yml
4
+
5
+ inherit_from: .rubocop_todo.yml
6
+
12
7
  AllCops:
13
- TargetRubyVersion: 2.3
14
- DisplayCopNames: true
15
- DisplayStyleGuide: true
16
8
  Exclude:
17
9
  - 'spec/**/*'
18
10
  - 'vendor/**/*'
11
+
12
+ Style/MethodCallWithArgsParentheses:
13
+ Exclude:
14
+ - Gemfile
15
+ - Rakefile
16
+ - '*.gemspec'
@@ -0,0 +1,20 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-10-08 09:52:43 +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: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
11
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
12
+ Naming/FileName:
13
+ Exclude:
14
+ - 'lib/forward-calendar.rb'
15
+
16
+ # Offense count: 7
17
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
18
+ # URISchemes: http, https
19
+ Metrics/LineLength:
20
+ Max: 104
@@ -0,0 +1,10 @@
1
+ FROM ruby:2.4.3
2
+
3
+ ENV APP_HOME forward-calendar-rb
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
@@ -4,20 +4,20 @@ PATH
4
4
  forward-calendar (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
  addressable (2.5.2)
18
18
  public_suffix (>= 2.0.2, < 4.0)
19
19
  ansi (1.5.0)
20
- ast (2.3.0)
20
+ ast (2.4.0)
21
21
  byebug (9.1.0)
22
22
  concurrent-ruby (1.0.5)
23
23
  crack (0.4.3)
@@ -26,20 +26,21 @@ GEM
26
26
  docile (1.1.5)
27
27
  hashdiff (0.3.7)
28
28
  hirb (0.7.3)
29
- i18n (0.8.6)
29
+ i18n (1.1.1)
30
+ concurrent-ruby (~> 1.0)
30
31
  json (2.1.0)
31
32
  mini_portile2 (2.3.0)
32
- minitest (5.10.1)
33
- nokogiri (1.8.1)
33
+ minitest (5.11.3)
34
+ nokogiri (1.8.5)
34
35
  mini_portile2 (~> 2.3.0)
35
- nokogiri-happymapper (0.6.0)
36
+ nokogiri-happymapper (0.8.0)
36
37
  nokogiri (~> 1.5)
37
- parser (2.4.0.2)
38
- ast (~> 2.3)
39
- powerpack (0.1.1)
38
+ parallel (1.12.1)
39
+ parser (2.5.1.2)
40
+ ast (~> 2.4.0)
41
+ powerpack (0.1.2)
40
42
  public_suffix (3.0.1)
41
- rainbow (2.2.2)
42
- rake
43
+ rainbow (3.0.0)
43
44
  rake (11.3.0)
44
45
  rspec (3.7.0)
45
46
  rspec-core (~> 3.7.0)
@@ -57,13 +58,14 @@ GEM
57
58
  diff-lcs (>= 1.2.0, < 2.0)
58
59
  rspec-support (~> 3.7.0)
59
60
  rspec-support (3.7.0)
60
- rubocop (0.45.0)
61
- parser (>= 2.3.1.1, < 3.0)
61
+ rubocop (0.55.0)
62
+ parallel (~> 1.10)
63
+ parser (>= 2.5)
62
64
  powerpack (~> 0.1)
63
- rainbow (>= 1.99.1, < 3.0)
65
+ rainbow (>= 2.2.2, < 4.0)
64
66
  ruby-progressbar (~> 1.7)
65
67
  unicode-display_width (~> 1.0, >= 1.0.1)
66
- ruby-progressbar (1.9.0)
68
+ ruby-progressbar (1.10.0)
67
69
  safe_yaml (1.0.4)
68
70
  simplecov (0.15.1)
69
71
  docile (~> 1.1.0)
@@ -74,10 +76,14 @@ GEM
74
76
  hirb
75
77
  simplecov
76
78
  simplecov-html (0.10.2)
79
+ thor (0.19.4)
77
80
  thread_safe (0.3.6)
78
- tzinfo (1.2.3)
81
+ tzinfo (1.2.5)
79
82
  thread_safe (~> 0.1)
80
- unicode-display_width (1.3.0)
83
+ unicode-display_width (1.4.0)
84
+ va-ruby-style (0.0.1)
85
+ rubocop (= 0.55.0)
86
+ thor (= 0.19.4)
81
87
  webmock (3.0.1)
82
88
  addressable (>= 2.3.6)
83
89
  crack (>= 0.3.2)
@@ -93,10 +99,10 @@ DEPENDENCIES
93
99
  rake (~> 11.3)
94
100
  rspec (~> 3.6)
95
101
  rspec-its
96
- rubocop (~> 0.45.0)
97
102
  simplecov
98
103
  simplecov-console
104
+ va-ruby-style (= 0.0.1)
99
105
  webmock (~> 3.0.1)
100
106
 
101
107
  BUNDLED WITH
102
- 1.16.1
108
+ 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 && rspec'
7
+ volumes:
8
+ - .:/forward-calendar-rb
9
+ - bundler-cache:/bundle
10
+
11
+ volumes:
12
+ bundler-cache:
@@ -1,31 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = 'forward-calendar'
5
- s.version = '0.8.1'
6
- s.date = '2018-09-24'
7
- s.summary = 'Forward Calendar XML parser'
8
- s.description = 'Parser for Forward Calendar XML files'
9
- s.homepage = 'https://github.com/AlphaExchange/forward-calendar-rb'
10
- s.authors = ['João Simões']
11
- s.email = ['joao.simoes@visible-alpha.com']
12
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
4
+ s.name = 'forward-calendar'
5
+ s.version = '0.8.2'
6
+ s.date = '2018-11-02'
7
+ s.summary = 'Forward Calendar XML parser'
8
+ s.description = 'Parser for Forward Calendar XML files'
9
+ s.homepage = 'https://github.com/AlphaExchange/forward-calendar-rb'
10
+ s.authors = ['João Simões']
11
+ s.email = ['joao.simoes@visible-alpha.com']
12
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
13
13
  s.require_paths = ['lib']
14
- s.license = 'MIT'
14
+ s.license = 'MIT'
15
15
 
16
- s.required_ruby_version = '>= 2.2.2'
16
+ s.required_ruby_version = '>= 2.4'
17
17
 
18
18
  s.add_development_dependency 'bundler', '~> 1.12'
19
+ s.add_development_dependency 'byebug'
20
+ s.add_development_dependency 'rake', '~> 11.3'
19
21
  s.add_development_dependency 'rspec', '~> 3.6'
20
22
  s.add_development_dependency 'rspec-its'
21
- s.add_development_dependency 'rake', '~> 11.3'
22
- s.add_development_dependency 'rubocop', '~> 0.45.0'
23
- s.add_development_dependency 'webmock', '~> 3.0.1'
24
23
  s.add_development_dependency 'simplecov'
25
24
  s.add_development_dependency 'simplecov-console'
26
- s.add_development_dependency 'byebug'
25
+ s.add_development_dependency 'va-ruby-style', '0.0.1'
26
+ s.add_development_dependency 'webmock', '~> 3.0.1'
27
27
 
28
- s.add_runtime_dependency 'nokogiri', '~> 1.5'
29
28
  s.add_runtime_dependency 'activesupport', '>= 4.0.0'
30
- s.add_runtime_dependency 'nokogiri-happymapper', '~> 0.6.0'
29
+ s.add_runtime_dependency 'nokogiri', '~> 1.5'
30
+ s.add_runtime_dependency 'nokogiri-happymapper', '~> 0.8.0'
31
31
  end
@@ -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
  require 'active_support/time'
4
5
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module ForwardCalendar
3
4
  class Node
4
5
  def to_hash
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forward-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Simões
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-24 00:00:00.000000000 Z
11
+ date: 2018-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -25,21 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.12'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '3.6'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '3.6'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec-its
28
+ name: byebug
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -67,33 +53,33 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '11.3'
69
55
  - !ruby/object:Gem::Dependency
70
- name: rubocop
56
+ name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 0.45.0
61
+ version: '3.6'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 0.45.0
68
+ version: '3.6'
83
69
  - !ruby/object:Gem::Dependency
84
- name: webmock
70
+ name: rspec-its
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - "~>"
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
- version: 3.0.1
75
+ version: '0'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - "~>"
80
+ - - ">="
95
81
  - !ruby/object:Gem::Version
96
- version: 3.0.1
82
+ version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: simplecov
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -123,33 +109,33 @@ dependencies:
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
- name: byebug
112
+ name: va-ruby-style
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ">="
115
+ - - '='
130
116
  - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: 0.0.1
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ">="
122
+ - - '='
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: 0.0.1
139
125
  - !ruby/object:Gem::Dependency
140
- name: nokogiri
126
+ name: webmock
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '1.5'
146
- type: :runtime
131
+ version: 3.0.1
132
+ type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '1.5'
138
+ version: 3.0.1
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: activesupport
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -164,20 +150,34 @@ dependencies:
164
150
  - - ">="
165
151
  - !ruby/object:Gem::Version
166
152
  version: 4.0.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: nokogiri
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.5'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.5'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: nokogiri-happymapper
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.6.0
173
+ version: 0.8.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.6.0
180
+ version: 0.8.0
181
181
  description: Parser for Forward Calendar XML files
182
182
  email:
183
183
  - joao.simoes@visible-alpha.com
@@ -185,14 +185,17 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
+ - ".circleci/config.yml"
188
189
  - ".gitignore"
189
190
  - ".rspec"
190
191
  - ".rubocop.yml"
192
+ - ".rubocop_todo.yml"
193
+ - Dockerfile
191
194
  - Gemfile
192
195
  - Gemfile.lock
193
196
  - README.md
194
197
  - Rakefile
195
- - circle.yml
198
+ - docker-compose.yml
196
199
  - forward-calendar.gemspec
197
200
  - lib/forward-calendar.rb
198
201
  - lib/forward_calendar.rb
@@ -228,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
231
  requirements:
229
232
  - - ">="
230
233
  - !ruby/object:Gem::Version
231
- version: 2.2.2
234
+ version: '2.4'
232
235
  required_rubygems_version: !ruby/object:Gem::Requirement
233
236
  requirements:
234
237
  - - ">="
data/circle.yml DELETED
@@ -1,8 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.3.3
4
- test:
5
- override:
6
- - bundle exec rspec
7
- post:
8
- - bundle exec rubocop