eia 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/eia/data.rb +2 -2
  3. data/lib/eia/version.rb +4 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7497f917095f0cf9cb7eb28579e6003086df3953
4
- data.tar.gz: 19b7ad0f9bf06805a303461c0e37b687dc1c80d9
3
+ metadata.gz: 565c041ebd4637125406a245a1dd37308bebf32a
4
+ data.tar.gz: 02827d9c2a55f2c35e96f99d0399cd1a44625020
5
5
  SHA512:
6
- metadata.gz: e7df47da4d7edae42ffab95afa23ca2d4abed7dd46790de600634bfa00a64e5bbea6b85be6eb99a3a0ce3edb518ac4e009ea96b53239a08f51a388004a06afbd
7
- data.tar.gz: 0f856ac0f308ed83ea37de1f36aa7e7e9c55f74341077f9d8a7fc23e8c867c2ef8f1ce452cbf1886e0ce469894f1d34d786dea79992c0215a26d44110cc99eb7
6
+ metadata.gz: d1d3c2ad80b88bb14f055f850c6cc067e75998f5d4fbd44a6eb33ece40c9e1e87c0b0c4b71e1ea9b6b73db471743521fe4976e5a481598aeb9454c105c19c3ef
7
+ data.tar.gz: f04e8224f56a0779105325d1d3bccc0a8544ff45184dbcac5340c18cc87057406df7c7a96704975c5e64b03673bf8bddec0a563411b7273a4440cb3907215167
@@ -16,9 +16,9 @@ class DataIBGE
16
16
 
17
17
  def standardize_date(date, periodicity)
18
18
  #date is a four digit number
19
- if periodicity == 6 then
19
+ if periodicity == 5 then
20
20
  return "01/01/#{date}"
21
- elsif periodicity == 5 then
21
+ elsif periodicity == 4 then
22
22
  y = date[0..3]
23
23
  m = date[4..5]
24
24
 
@@ -1,5 +1,5 @@
1
1
  module Eia
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
 
4
4
  #Standard for version: xx.yy.zz
5
5
  # xx - release
@@ -32,4 +32,7 @@ module Eia
32
32
  # Version 1.1.2
33
33
  # Was taking the wrong date from IBGE's output, not it gets the right one.
34
34
 
35
+ # Version 1.1.3
36
+ # Another fixup on data classification and parsing.
37
+
35
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rCamposCruz