quandl_data 1.5.0 → 1.5.1
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/VERSION +1 -1
- data/lib/quandl/data/attributes.rb +16 -1
- data/quandl_data.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b68b0916411ec1dc33efc5724c20ab92b03a5abf
|
4
|
+
data.tar.gz: b05383c20272e709bb12b23e75c9b6fe72cd755d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1543b142d08291f2a05f07076be6c2f93c0dd7aafe19c85e52c00e624d7a50be0aedd4578b206216a4af16f5d61852530d8a3d586b6c7cfeee19f9177888dfcd
|
7
|
+
data.tar.gz: 929a2b7d45efde2f4d52b82074ef2789ea001b48099c0b62f564b89b3b4128088cdc8ebc1528a7662fe0117655b1343a13a917e616a76334c45609334e7cc0a5
|
data/UPGRADE.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.1
|
@@ -11,7 +11,6 @@ module Attributes
|
|
11
11
|
define_attributes :headers, :pristine_data, :cleaned, :data_array
|
12
12
|
|
13
13
|
delegate *Array.forwardable_methods, to: :data_array
|
14
|
-
delegate :to_json, :as_json, to: :data_array
|
15
14
|
|
16
15
|
def headers=(value)
|
17
16
|
write_attribute(:headers, Array(value).flatten )
|
@@ -33,6 +32,22 @@ module Attributes
|
|
33
32
|
valid? unless cleaned?
|
34
33
|
end
|
35
34
|
|
35
|
+
def to_json
|
36
|
+
ensure_json_support
|
37
|
+
data_array.try(:to_json)
|
38
|
+
end
|
39
|
+
|
40
|
+
def as_json
|
41
|
+
ensure_json_support
|
42
|
+
data_array.try(:as_json)
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def ensure_json_support
|
48
|
+
require 'active_support/core_ext/object' unless Object.respond_to?(:as_json)
|
49
|
+
end
|
50
|
+
|
36
51
|
end
|
37
52
|
end
|
38
53
|
end
|
data/quandl_data.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
-
s.add_runtime_dependency "quandl_operation", "~> 0.
|
20
|
+
s.add_runtime_dependency "quandl_operation", "~> 0.4"
|
21
21
|
s.add_runtime_dependency "quandl_babelfish", "~> 0.0"
|
22
22
|
s.add_runtime_dependency "activemodel", ">= 3.0.0"
|
23
23
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hilscher
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: quandl_babelfish
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|