cbhpm_table 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +26 -7
- data/cbhpm_table.gemspec +0 -1
- data/lib/cbhpm_table.rb +16 -1
- data/lib/cbhpm_table/version.rb +1 -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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004366b319b5f5f88e908f810685bf7e27e3d84f
|
4
|
+
data.tar.gz: 5f9a3dbc1fd40753a309184897cd06c84512f934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e51c435951af760d5d356c46b9830438411e0a39f41093339070d182423246eca584481e8eed44093f0a5216f7408951360e75474bf5cd6779de3da6aefb667
|
7
|
+
data.tar.gz: 77eaadb5758bc3c0e0cfcd55cd0fbac6b09e00189cb3451c4fefb3ee80a5e7b6384895a64ca52d982944c91f4f964b6d2702c340f45397176c5c2cb0c805df4f
|
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
9
|
- 2.1
|
4
10
|
- 2.2
|
5
11
|
- 2.3
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
- jruby-
|
10
|
-
|
11
|
-
|
12
|
-
|
12
|
+
- 2.4
|
13
|
+
- ruby-head
|
14
|
+
- rbx-3.81
|
15
|
+
- jruby-19mode
|
16
|
+
- jruby-head
|
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.rb
CHANGED
@@ -167,7 +167,21 @@ class CBHPMTable
|
|
167
167
|
11 => "an_size"
|
168
168
|
},
|
169
169
|
start_date: "01/01/2012",
|
170
|
-
end_date:
|
170
|
+
end_date: "31/12/2013" }
|
171
|
+
|
172
|
+
CBHPM2014 = VERSIONS[:cbhpm2014] =
|
173
|
+
{ file_basename: "CBHPM 2012.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" }
|
171
185
|
|
172
186
|
VERSION_FOR_FILE = {
|
173
187
|
"CBHPM 2004 3¶ EDIÄ«O.XLS" => CBHPM3a,
|
@@ -175,6 +189,7 @@ class CBHPMTable
|
|
175
189
|
"CBHPM 5¶ Ediá∆o.xls" => CBHPM5a,
|
176
190
|
"CBHPM 2010 separada.xls" => CBHPM2010,
|
177
191
|
"CBHPM 2012.xlsx" => CBHPM2012,
|
192
|
+
"CBHPM 2014.xlsx" => CBHPM2014,
|
178
193
|
"cbhpm_cut_for_testing.xlsx" => CBHPM2012 }
|
179
194
|
|
180
195
|
ROO_CLASS_FOR_EXTENSION = { ".xls" => Roo::Excel, ".xlsx" => Roo::Excelx }
|
data/lib/cbhpm_table/version.rb
CHANGED
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.7
|
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: 2018-03-06 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
|
@@ -136,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
122
|
version: '0'
|
137
123
|
requirements: []
|
138
124
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.6.14
|
140
126
|
signing_key:
|
141
127
|
specification_version: 4
|
142
128
|
summary: CBHPM Table. A simple wrapper around the CBHPM excel files.
|
@@ -144,4 +130,3 @@ test_files:
|
|
144
130
|
- spec/cbhpm/cbhpm_cut_for_testing.xlsx
|
145
131
|
- spec/cbhpm_table_spec.rb
|
146
132
|
- spec/spec_helper.rb
|
147
|
-
has_rdoc:
|