eia 1.0.0 → 1.0.1

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: ed927fcb4b162ddc30273c63406d12164aeaa70e
4
- data.tar.gz: 5282fbdedfb933c36dbd9cca95a2ca8aecf3ba6b
3
+ metadata.gz: c1eff9eb923274d2c74f7118cbcbfedf811797d8
4
+ data.tar.gz: 0ed4c7783fa7deafe3ff6ee7c7641b852c3b1cf3
5
5
  SHA512:
6
- metadata.gz: 006b197bce6cebb3e49a03055fa5849b436a530308efd4cfc2b16b0ac17c905b2542f86216e62d3e523ff3e20eb9469dd7d30ce4d51187adc6b3cd91da81e7b8
7
- data.tar.gz: 5a65e19e64c8fd35ba9d99b1111cf220fc449a4e8b2a280e810e4a25153bec031a6c5aad4dacfd0dfe93e53f22a45ffc1a3dd50e290ba6c4714ef48a413bd0b9
6
+ metadata.gz: 61cf88c0aec526f5b1942b12cf0a52397710c4e22fef84c3a7de0c9fadd7190cb2910b175bf7b54c3c40dd188cf175135c5b8f193885bbecb2c164e600bff124
7
+ data.tar.gz: 9116b28d1511939004ada9ede003a32a2b752266a808289a9d65db86d5b9bef0983e457a0a79f9b79d21e062d483cdb19373ff2107f030c5e2d0a9b03c56d500
@@ -8,8 +8,8 @@ class DataIBGE
8
8
  @value = value
9
9
 
10
10
  #The standard is:
11
- # 5 : "Trimestral Móvel"
12
- # 6 : "Ano"
11
+ # 4 : "Trimestral Móvel"
12
+ # 5 : "Ano"
13
13
  @periodicity = periodicity
14
14
  end
15
15
 
@@ -68,9 +68,9 @@ class IBGE
68
68
  identifier = heading["D1C"]
69
69
 
70
70
  if identifier.include? "Trimestre Móvel" then
71
- periodicity = 5
71
+ periodicity = 4
72
72
  elsif identifier.include? "Ano" then
73
- periodicity = 6
73
+ periodicity = 5
74
74
  else
75
75
  puts "Error! Unexpected case! Found is: #{identifier}. Report to the dev team."
76
76
  return Array.new
@@ -1,5 +1,5 @@
1
1
  module Eia
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
 
4
4
  #Standard for version: xx.yy.zz
5
5
  # xx - release
@@ -22,4 +22,8 @@ module Eia
22
22
  # Fully supports most data points from IBGE.
23
23
  # Tests cover all features.
24
24
  # Appropriate error treatment.
25
+
26
+ # Version 1.0.1
27
+ # Fixes periodicty, as to be able to relate possible periodicities from 0 to 5
28
+
25
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rCamposCruz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement