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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96bcb5f9ffb52af6a7448692809d6a6780353eea
4
- data.tar.gz: 3c54dcbb44783c244fab3635dd5386b15a45edd9
3
+ metadata.gz: 7278e536a6376371bf70c8193dfb0f29cdcd0771
4
+ data.tar.gz: afd3ba65934356351641bf69480d0dbf93ddd4e9
5
5
  SHA512:
6
- metadata.gz: 2a5687a55d8381f1e6dbcf80c8d722a74c9681da244c6f7d44659d8ab77b9f245c8f67bca8ec9eb33a796e49b29996d483ccac85f5f8c40a7beca9d1543c778e
7
- data.tar.gz: 2189f13d9f07eab27de81362e2554180cc964034d48c89ab127ac260beb2758fd3906f88577272da91c9e8730444d1c1aa4840d059f217a7cbf75a8b7f3e7494
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
@@ -1,3 +1,9 @@
1
+ ## 2.3.1
2
+
3
+ * bump quandl_data
4
+ * add human_error_messsages
5
+
6
+
1
7
  ## 2.3.0
2
8
 
3
9
  * add auth_token attribute to user
@@ -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)
@@ -1,6 +1,6 @@
1
1
  module Quandl
2
2
  module Client
3
- VERSION = '2.3.0'
3
+ VERSION = '2.3.1'
4
4
  API_VERSION = 'v2'
5
5
 
6
6
  class << self
@@ -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.2"
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.0
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-05 00:00:00.000000000 Z
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.2'
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.2'
124
+ version: '1.3'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: activesupport
127
127
  requirement: !ruby/object:Gem::Requirement