quandl_format 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/UPGRADE.md +6 -0
- data/lib/quandl/format/dataset/client.rb +3 -3
- data/lib/quandl/format/dataset/load.rb +5 -1
- data/lib/quandl/format/version.rb +1 -1
- data/spec/fixtures/data/valid.qdf +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2896ad47179253dfb76d2d439c2e29aa5815c697
|
4
|
+
data.tar.gz: f08dd7aea8c503df1bdd36b14de37db78c56922b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2af4b6f398840391dc327f18f7f0a5ec960dc40b43bc853cae02ad2429ca7c0c9c56d16d00e409d1ee407435d43de6033200c41563a74e98cc62f8e326eba3f9
|
7
|
+
data.tar.gz: b791b0af1ce405be676da45c786708840d1eb0d6749af38d9d2d2edaf8f82c994e3c7dd79ae09c33fa6cdb5db14549a5b51aff81c744b0ca606599e1030de7a7
|
data/UPGRADE.md
CHANGED
@@ -6,9 +6,9 @@ module Client
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
def human_errors
|
9
|
-
|
10
|
-
m
|
11
|
-
m += " errors: \n"
|
9
|
+
m = "#{client.human_status} \t #{client.full_url}"
|
10
|
+
return m if errors.blank?
|
11
|
+
m += "\n errors: \n"
|
12
12
|
m += errors.collect do |error_type, messages|
|
13
13
|
next human_error(error_type, messages) unless messages.is_a?(Hash)
|
14
14
|
messages.collect{|n,m| human_error(n, m) }
|
@@ -110,7 +110,11 @@ class Quandl::Format::Dataset::Load
|
|
110
110
|
protected
|
111
111
|
|
112
112
|
def parse_yaml_attributes(node)
|
113
|
-
|
113
|
+
attrs = {}
|
114
|
+
YAML.load( node[:attributes] ).symbolize_keys!.each do |key, value|
|
115
|
+
attrs[key.to_s.downcase.to_sym] = value
|
116
|
+
end
|
117
|
+
attrs
|
114
118
|
rescue Exception => err
|
115
119
|
log_yaml_parse_error(node, err)
|
116
120
|
nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hilscher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|