quandl_ruby 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -12
- data/lib/quandl/version.rb +1 -1
- metadata +2 -3
- data/lib/quandl/search.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c4e1275b38f72481ecec655e6393cead8598f6d
|
4
|
+
data.tar.gz: adf9cd4f1b014dbf635c0468ac349d0be1f6f1f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97a8a487ad2e96dcae14907b0340806cfef57294088a15d566be4c051aea4cf486342deab21509a4dfa54b49d6b450a69f4daac06a396ea5206fa62c1117050d
|
7
|
+
data.tar.gz: 5c6f32de6584288f9ef2741a2c6e3411d505ff8560820f13b813dc6509229760ea82f865c85296647fd25a4cb4bc02f17c9626b4d9830a56863a78c78bd64915
|
data/README.md
CHANGED
@@ -42,7 +42,6 @@ This library includes the following classes all namespaced under the `Quandl` mo
|
|
42
42
|
|
43
43
|
- [Dataset](http://www.quandl.com/help/api#A-Simple-Example)
|
44
44
|
- [Multiset](http://www.quandl.com/help/api#Multiple-Datasets)
|
45
|
-
- [Search](http://www.quandl.com/help/api#Doing-a-Search)
|
46
45
|
- [Metadata](http://www.quandl.com/help/api#Getting-Metadata)
|
47
46
|
- [Favorites](http://www.quandl.com/help/api#Getting-Favourites)
|
48
47
|
|
@@ -146,17 +145,6 @@ comparison = Quandl::Multiset.get(datasets).
|
|
146
145
|
# With `/` as opposed to `.` to maintain consistency with Quandl::Dataset
|
147
146
|
```
|
148
147
|
|
149
|
-
### Doing A Search
|
150
|
-
|
151
|
-
Note that Quandl::Search does not have access to the API option-setting methods. Instead, it has #per_page and #page, which correspond with the `per_page` and `page` url parameters of the Quandl API
|
152
|
-
|
153
|
-
```ruby
|
154
|
-
# Get search results for crude oil
|
155
|
-
# Example from: http://www.quandl.com/help/api#Doing-a-Search
|
156
|
-
query = 'crude oil'
|
157
|
-
results = Quandl::Search.get(query).per_page(20).page(4)
|
158
|
-
```
|
159
|
-
|
160
148
|
### Getting Metadata
|
161
149
|
|
162
150
|
```ruby
|
data/lib/quandl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_ruby
|
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
|
- Kash Nouroozi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,7 +60,6 @@ files:
|
|
60
60
|
- lib/quandl/multiset.rb
|
61
61
|
- lib/quandl/parse.rb
|
62
62
|
- lib/quandl/request.rb
|
63
|
-
- lib/quandl/search.rb
|
64
63
|
- lib/quandl/version.rb
|
65
64
|
- quandl.gemspec
|
66
65
|
homepage: https://github.com/knrz/Quandl-Ruby
|
data/lib/quandl/search.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
module Quandl
|
2
|
-
class Search < Quandl::Base
|
3
|
-
[:page, :per_page].each do |filter|
|
4
|
-
define_method(filter) do |n|
|
5
|
-
@options[filter] = n.to_i
|
6
|
-
self
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
def reload!
|
11
|
-
raw_data = Quandl::Request.new('datasets', {
|
12
|
-
query: query,
|
13
|
-
options: options
|
14
|
-
}).get
|
15
|
-
response = Quandl.parse(raw_data, (options[:format] || :json).to_sym)
|
16
|
-
@data = response.delete(:data)
|
17
|
-
@metadata = response
|
18
|
-
self
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|