eia 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/eia/data.rb +2 -2
- data/lib/eia/version.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 565c041ebd4637125406a245a1dd37308bebf32a
|
|
4
|
+
data.tar.gz: 02827d9c2a55f2c35e96f99d0399cd1a44625020
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1d3c2ad80b88bb14f055f850c6cc067e75998f5d4fbd44a6eb33ece40c9e1e87c0b0c4b71e1ea9b6b73db471743521fe4976e5a481598aeb9454c105c19c3ef
|
|
7
|
+
data.tar.gz: f04e8224f56a0779105325d1d3bccc0a8544ff45184dbcac5340c18cc87057406df7c7a96704975c5e64b03673bf8bddec0a563411b7273a4440cb3907215167
|
data/lib/eia/data.rb
CHANGED
|
@@ -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 ==
|
|
19
|
+
if periodicity == 5 then
|
|
20
20
|
return "01/01/#{date}"
|
|
21
|
-
elsif periodicity ==
|
|
21
|
+
elsif periodicity == 4 then
|
|
22
22
|
y = date[0..3]
|
|
23
23
|
m = date[4..5]
|
|
24
24
|
|
data/lib/eia/version.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module Eia
|
|
2
|
-
VERSION = "1.1.
|
|
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
|