cbhpm_table 0.0.5 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +27 -8
- data/cbhpm_table.gemspec +0 -1
- data/lib/cbhpm_table/version.rb +1 -1
- data/lib/cbhpm_table.rb +91 -1
- data/spec/cbhpm_table_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -3
- metadata +3 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9c4ccbc28d28f9993083a95d200b2753dbbf5e1f39e177bc25f0ca30335c0f0a
|
4
|
+
data.tar.gz: 22b6fa8e6abbc4c5f70aa62774218b3ef2a10704f55d098600663e898310b9df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d81bc6b6ae62a0e2a55dc3068288a9f2b8a06bec0e5d05ac84da2025171f4b915c83b509b9250c8bc291692d6a09b154ad22d0a0d9692a9e44bc7cb9c7a9af
|
7
|
+
data.tar.gz: ac8bd05bd1c1ea8f8291ec2dfac81f57d4310e825fecf55e208c6074e8a40d8296cd76ae883138dae7b2436c231231851b4524e2c8d97804651608e4dcf56f59
|
data/.travis.yml
CHANGED
@@ -1,12 +1,31 @@
|
|
1
|
+
env:
|
2
|
+
global:
|
3
|
+
- CC_TEST_REPORTER_ID=787a2f89b15c637323c7340d65ec17e898ac44480706b4b4122ea040c2a88f1d
|
1
4
|
language: ruby
|
5
|
+
dist: trusty
|
6
|
+
cache: bundler
|
7
|
+
script: bundle exec rspec
|
2
8
|
rvm:
|
3
|
-
- 1
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- rbx-2
|
9
|
+
- 2.1
|
10
|
+
- 2.2
|
11
|
+
- 2.3
|
12
|
+
- 2.4
|
8
13
|
- ruby-head
|
14
|
+
- rbx-3.81
|
15
|
+
- jruby-19mode
|
9
16
|
- jruby-head
|
10
|
-
|
11
|
-
|
12
|
-
|
17
|
+
matrix:
|
18
|
+
allow_failures:
|
19
|
+
- rvm: ruby-head
|
20
|
+
- rvm: rbx-3.81
|
21
|
+
- rvm: jruby-19mode # JRuby in 1.9 mode
|
22
|
+
- rvm: jruby-head
|
23
|
+
fast_finish: true
|
24
|
+
include:
|
25
|
+
- rvm: 2.5
|
26
|
+
before_script:
|
27
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
28
|
+
- chmod +x ./cc-test-reporter
|
29
|
+
- ./cc-test-reporter before-build
|
30
|
+
after_script:
|
31
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/cbhpm_table.gemspec
CHANGED
@@ -26,7 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.6"
|
27
27
|
spec.add_development_dependency "rake"
|
28
28
|
spec.add_development_dependency "rspec"
|
29
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
30
29
|
spec.add_development_dependency "simplecov"
|
31
30
|
spec.add_runtime_dependency 'roo-xls'
|
32
31
|
end
|
data/lib/cbhpm_table/version.rb
CHANGED
data/lib/cbhpm_table.rb
CHANGED
@@ -106,6 +106,34 @@ class CBHPMTable
|
|
106
106
|
|
107
107
|
VERSIONS = {}
|
108
108
|
|
109
|
+
CBHPM3a = VERSIONS[:cbhpm3a] =
|
110
|
+
{ file_basename: "CBHPM 2004 3¶ EDIÄ«O.XLS",
|
111
|
+
edition_name: "3a",
|
112
|
+
header_format: {
|
113
|
+
0 => "code",
|
114
|
+
1 => "name",
|
115
|
+
4 => "cir_size",
|
116
|
+
5 => "uco",
|
117
|
+
6 => "aux_qty",
|
118
|
+
7 => "an_size"
|
119
|
+
},
|
120
|
+
start_date: "01/01/2004",
|
121
|
+
end_date: "31/12/2005" }
|
122
|
+
|
123
|
+
CBHPM4a = VERSIONS[:cbhpm4a] =
|
124
|
+
{ file_basename: "CBHPM 4¶ EDIÄ«O.xls",
|
125
|
+
edition_name: "4a",
|
126
|
+
header_format: {
|
127
|
+
0 => "code",
|
128
|
+
1 => "name",
|
129
|
+
4 => "cir_size",
|
130
|
+
5 => "uco",
|
131
|
+
6 => "aux_qty",
|
132
|
+
7 => "an_size"
|
133
|
+
},
|
134
|
+
start_date: "01/01/2006",
|
135
|
+
end_date: "31/12/2007" }
|
136
|
+
|
109
137
|
CBHPM5a = VERSIONS[:cbhpm5a] =
|
110
138
|
{ file_basename: "CBHPM 5¶ Ediá∆o.xls",
|
111
139
|
edition_name: "5a",
|
@@ -139,12 +167,74 @@ class CBHPMTable
|
|
139
167
|
11 => "an_size"
|
140
168
|
},
|
141
169
|
start_date: "01/01/2012",
|
142
|
-
end_date:
|
170
|
+
end_date: "31/12/2013" }
|
143
171
|
|
172
|
+
CBHPM2014 = VERSIONS[:cbhpm2014] =
|
173
|
+
{ file_basename: "CBHPM 2014.xlsx",
|
174
|
+
edition_name: "2014",
|
175
|
+
header_format: {
|
176
|
+
4 => "code",
|
177
|
+
5 => "name",
|
178
|
+
8 => "cir_size",
|
179
|
+
9 => "uco",
|
180
|
+
10 => "aux_qty",
|
181
|
+
11 => "an_size"
|
182
|
+
},
|
183
|
+
start_date: "01/01/2014",
|
184
|
+
end_date: "31/12/2015" }
|
185
|
+
|
186
|
+
CBHPM2016 = VERSIONS[:cbhpm2016] =
|
187
|
+
{ file_basename: "CBHPM 2016.xlsx",
|
188
|
+
edition_name: "2016",
|
189
|
+
header_format: {
|
190
|
+
4 => "code",
|
191
|
+
5 => "name",
|
192
|
+
8 => "cir_size",
|
193
|
+
9 => "uco",
|
194
|
+
10 => "aux_qty",
|
195
|
+
11 => "an_size"
|
196
|
+
},
|
197
|
+
start_date: "01/01/2016",
|
198
|
+
end_date: "31/12/2017" }
|
199
|
+
|
200
|
+
CBHPM2018 = VERSIONS[:cbhpm2018] =
|
201
|
+
{ file_basename: "CBHPM 2018.xlsx",
|
202
|
+
edition_name: "2018",
|
203
|
+
header_format: {
|
204
|
+
4 => "code",
|
205
|
+
5 => "name",
|
206
|
+
8 => "cir_size",
|
207
|
+
9 => "uco",
|
208
|
+
10 => "aux_qty",
|
209
|
+
11 => "an_size"
|
210
|
+
},
|
211
|
+
start_date: "01/01/2018",
|
212
|
+
end_date: "31/12/2019" }
|
213
|
+
|
214
|
+
CBHPM2020 = VERSIONS[:cbhpm2020] =
|
215
|
+
{ file_basename: "CBHPM 2020.xlsx",
|
216
|
+
edition_name: "2020",
|
217
|
+
header_format: {
|
218
|
+
4 => "code",
|
219
|
+
5 => "name",
|
220
|
+
8 => "cir_size",
|
221
|
+
9 => "uco",
|
222
|
+
10 => "aux_qty",
|
223
|
+
11 => "an_size"
|
224
|
+
},
|
225
|
+
start_date: "01/01/2020",
|
226
|
+
end_date: "" }
|
227
|
+
|
144
228
|
VERSION_FOR_FILE = {
|
229
|
+
"CBHPM 2004 3¶ EDIÄ«O.XLS" => CBHPM3a,
|
230
|
+
"CBHPM 4¶ EDIÄ«O.xls" => CBHPM4a,
|
145
231
|
"CBHPM 5¶ Ediá∆o.xls" => CBHPM5a,
|
146
232
|
"CBHPM 2010 separada.xls" => CBHPM2010,
|
147
233
|
"CBHPM 2012.xlsx" => CBHPM2012,
|
234
|
+
"CBHPM 2014.xlsx" => CBHPM2014,
|
235
|
+
"CBHPM 2016.xlsx" => CBHPM2016,
|
236
|
+
"CBHPM 2018.xlsx" => CBHPM2018,
|
237
|
+
"CBHPM 2020.xlsx" => CBHPM2020,
|
148
238
|
"cbhpm_cut_for_testing.xlsx" => CBHPM2012 }
|
149
239
|
|
150
240
|
ROO_CLASS_FOR_EXTENSION = { ".xls" => Roo::Excel, ".xlsx" => Roo::Excelx }
|
data/spec/cbhpm_table_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbhpm_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abinoam Praxedes Marques Jr.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: codeclimate-test-reporter
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: simplecov
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
121
|
- !ruby/object:Gem::Version
|
136
122
|
version: '0'
|
137
123
|
requirements: []
|
138
|
-
|
139
|
-
rubygems_version: 2.4.6
|
124
|
+
rubygems_version: 3.1.2
|
140
125
|
signing_key:
|
141
126
|
specification_version: 4
|
142
127
|
summary: CBHPM Table. A simple wrapper around the CBHPM excel files.
|