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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12e12cf6c2f912960cc8cc651ef061282bea16f2
4
- data.tar.gz: 67f93ef874adb4efedb4fbac517acfd0581c28f1
3
+ metadata.gz: 004366b319b5f5f88e908f810685bf7e27e3d84f
4
+ data.tar.gz: 5f9a3dbc1fd40753a309184897cd06c84512f934
5
5
  SHA512:
6
- metadata.gz: 88b5d8577ba33867b06338e186993490cd11d8e20947e4285f9c2486445451505a568c939edbe83d4765a13dabb45cfa1fbbeb681e3d5e0030fbf3742fe2faf9
7
- data.tar.gz: 80cc6a3ca8154966bf19f371e4e3be3f35f628351698a456232429a7d8675221e28338783da434b06aa536fd14c46e6d641dfff8f1182c46de217f81ee5eef92
6
+ metadata.gz: 8e51c435951af760d5d356c46b9830438411e0a39f41093339070d182423246eca584481e8eed44093f0a5216f7408951360e75474bf5cd6779de3da6aefb667
7
+ data.tar.gz: 77eaadb5758bc3c0e0cfcd55cd0fbac6b09e00189cb3451c4fefb3ee80a5e7b6384895a64ca52d982944c91f4f964b6d2702c340f45397176c5c2cb0c805df4f
@@ -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
- - rbx-2
7
- - rbx-3
8
- - jruby-1.7
9
- - jruby-9.0
10
- addons:
11
- code_climate:
12
- repo_token: 41705ab9c6003dd0a97a8e359bfa0331c63b744dab95e4a056daee9f2e3e71d2
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
@@ -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
@@ -167,7 +167,21 @@ class CBHPMTable
167
167
  11 => "an_size"
168
168
  },
169
169
  start_date: "01/01/2012",
170
- end_date: nil }
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 }
@@ -1,3 +1,3 @@
1
1
  class CBHPMTable
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -93,7 +93,7 @@ describe CBHPMTable do
93
93
 
94
94
  describe "#end_date" do
95
95
  it "should return proper end_date for cbhpm version" do
96
- expect(cbhpm_table.end_date).to eq nil
96
+ expect(cbhpm_table.end_date).to eq "31/12/2013"
97
97
  end
98
98
  end
99
99
  end
@@ -19,9 +19,6 @@
19
19
  require 'simplecov'
20
20
  SimpleCov.start
21
21
 
22
- require "codeclimate-test-reporter"
23
- CodeClimate::TestReporter.start
24
-
25
22
  require 'cbhpm_table'
26
23
 
27
24
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
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.6
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: 2016-04-19 00:00:00.000000000 Z
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.4.5.1
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: