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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc9bd170b3c9b0df54c718ea25e29ccd7dc6e332
4
- data.tar.gz: 04b3c490398d6ad42684c2f8d6fcce574823c9b4
3
+ metadata.gz: 2896ad47179253dfb76d2d439c2e29aa5815c697
4
+ data.tar.gz: f08dd7aea8c503df1bdd36b14de37db78c56922b
5
5
  SHA512:
6
- metadata.gz: 5f660f2d47ccd84f54f710f2706a5bfff738930d9a6f2e2bdd808c37b63a4f76ab4a83839d5dcf4ce90fbe62f2d66901f141f7c9e93c60e57de45ff6cdb12b4d
7
- data.tar.gz: a213be4d902bfc3324a6e39e7452a5181deb5893e6c7ef3c93ce67035f4a8c1bde39e7680385cc26fd6f64faf20f19be3963ef94de4804a021e85251e9acc4d2
6
+ metadata.gz: 2af4b6f398840391dc327f18f7f0a5ec960dc40b43bc853cae02ad2429ca7c0c9c56d16d00e409d1ee407435d43de6033200c41563a74e98cc62f8e326eba3f9
7
+ data.tar.gz: b791b0af1ce405be676da45c786708840d1eb0d6749af38d9d2d2edaf8f82c994e3c7dd79ae09c33fa6cdb5db14549a5b51aff81c744b0ca606599e1030de7a7
data/UPGRADE.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.2.5
2
+
3
+ * QUGC-40 respond with error status if errors are blank
4
+ * QUGC-37 field names should be case insensitive
5
+
6
+
1
7
  ## 0.2.4
2
8
 
3
9
  * assigning data will force to_table if possible
@@ -6,9 +6,9 @@ module Client
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  def human_errors
9
- return if errors.blank?
10
- m = "#{client.full_url} #{client.status}\n"
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
- YAML.load( node[:attributes] ).symbolize_keys!
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
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Format
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
- code: "BLAKE_TEST_1"
2
- name: "A new title"
1
+ CODE: "BLAKE_TEST_1"
2
+ NAME: "A new title"
3
3
  description: "The description Date, Open, High"
4
4
  private: false
5
5
  -
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
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-27 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake