quandl_client 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -1
- data/UPGRADE.md +6 -0
- data/lib/quandl/client/base/validation.rb +16 -1
- data/lib/quandl/client/version.rb +1 -1
- data/quandl_client.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7278e536a6376371bf70c8193dfb0f29cdcd0771
|
4
|
+
data.tar.gz: afd3ba65934356351641bf69480d0dbf93ddd4e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82736f05381039f4a5eaac31c2839fa5f1f0dc95735d1b5c6ec8543a2044bea66231f6cae152bdb0efee0a90dbfd805a039fcde36648d5a09d6676f76ff5d528
|
7
|
+
data.tar.gz: d2e0440edffb910f845d9ad6ef3ca1a9d053007ad75cc0e3aed88db5dc1502701661fdbaead13ed205fd22a18a78688633f86c4ed5098e7e40b3c35f7f89a05e
|
data/Gemfile
CHANGED
@@ -5,5 +5,8 @@ use_local_gems = ENV['BUNDLE_LOCAL_GEMS'] == "true" && ENV['BUNDLE_LOCAL_DIR']
|
|
5
5
|
local_gem_dir = ENV['BUNDLE_LOCAL_DIR']
|
6
6
|
|
7
7
|
if use_local_gems
|
8
|
-
gem 'her', path: "#{local_gem_dir}/her"
|
8
|
+
# gem 'her', path: "#{local_gem_dir}/her"
|
9
|
+
gem 'quandl_data', path: "#{local_gem_dir}/quandl/data"
|
10
|
+
gem 'quandl_operation', path: "#{local_gem_dir}/quandl/operation"
|
11
|
+
gem 'quandl_babelfish', path: "#{local_gem_dir}/quandl/babelfish"
|
9
12
|
end
|
data/UPGRADE.md
CHANGED
@@ -49,7 +49,22 @@ module Validation
|
|
49
49
|
def parse_error
|
50
50
|
error_messages[:response_errors].try( :[], :parse_error )
|
51
51
|
end
|
52
|
-
|
52
|
+
|
53
|
+
def human_error_messages
|
54
|
+
return if errors.blank?
|
55
|
+
m = "#{status}\n"
|
56
|
+
m += " errors: \n"
|
57
|
+
m += error_messages.collect do |error_type, messages|
|
58
|
+
next human_error_message(error_type, messages) unless messages.is_a?(Hash)
|
59
|
+
messages.collect{|n,m| human_error_message(n, m) }
|
60
|
+
end.flatten.compact.join
|
61
|
+
end
|
62
|
+
|
63
|
+
def human_error_message(name, message)
|
64
|
+
message = message.join(', ') if message.respond_to?(:join)
|
65
|
+
" #{name}: #{message}\n"
|
66
|
+
end
|
67
|
+
|
53
68
|
def error_messages
|
54
69
|
valid?
|
55
70
|
errors_client.deep_merge(errors_server).deep_merge(errors_params)
|
data/quandl_client.gemspec
CHANGED
@@ -25,8 +25,8 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_development_dependency "guard"
|
26
26
|
s.add_development_dependency "guard-rspec"
|
27
27
|
|
28
|
-
s.add_runtime_dependency "quandl_data", "~> 1.
|
29
|
-
|
28
|
+
s.add_runtime_dependency "quandl_data", "~> 1.3"
|
29
|
+
|
30
30
|
s.add_runtime_dependency "activesupport", ">= 3.0.0"
|
31
31
|
s.add_runtime_dependency "her", "~> 0.6"
|
32
32
|
s.add_runtime_dependency "yajl-ruby", "~> 1.1.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hilscher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1.
|
117
|
+
version: '1.3'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1.
|
124
|
+
version: '1.3'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: activesupport
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|