quandl_cassinatra 0.0.1 → 0.0.2
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 +45 -9
- data/lib/quandl/cassinatra/version.rb +1 -1
- data/quandl_cassinatra.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e602ca19fe314a7cb4fa1b044d40d2df8c6e0bbc
|
4
|
+
data.tar.gz: 5130855d3d528d8e35e1bb90bac43370344d6502
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ca061cb0b1e3b3d7afa17575b9418694993537e9a0157cfb9bd8cea471f5ee6d05c799e323fb87a529efbed8b294132b950f3e953a83a3df159d651b7dbccda
|
7
|
+
data.tar.gz: 2a6a612c3745ec37623554c913b9fbb4ed99484f513e05cd83fd1348a50c7c3b06293d460362a5e8e185bbdfe1e23842f71edb01a3ea738ad92f76b0e3a969f4
|
data/README.md
CHANGED
@@ -1,28 +1,64 @@
|
|
1
1
|
# Quandl::Cassinatra
|
2
2
|
|
3
|
-
|
3
|
+
```ruby
|
4
|
+
|
5
|
+
require 'quandl/cassinatra'
|
6
|
+
|
7
|
+
Quandl::Cassinatra.use 'localhost/rest_api_location/'
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
|
12
|
+
### Quandl::Cassinatra::Model::Dataset
|
13
|
+
|
14
|
+
#### Find / Scope
|
4
15
|
|
5
16
|
```ruby
|
6
17
|
|
7
18
|
require 'quandl/cassinatra'
|
8
19
|
|
9
|
-
|
20
|
+
d = Quandl::Cassinatra::Model::Dataset.limit(10).transform(:rdiff).collapse(:weekly).find(293)
|
21
|
+
d.data
|
22
|
+
=> [...]
|
10
23
|
|
11
|
-
|
12
|
-
|
24
|
+
d.column_ids
|
25
|
+
=> [1,2,3]
|
13
26
|
|
14
|
-
|
27
|
+
d.columns_count
|
28
|
+
d.created_at
|
29
|
+
d.frequency
|
30
|
+
d.rows_count
|
31
|
+
d.type
|
32
|
+
d.updated_at
|
15
33
|
|
34
|
+
```
|
16
35
|
|
17
|
-
|
36
|
+
#### Create
|
18
37
|
|
19
38
|
```ruby
|
20
39
|
|
21
40
|
require 'quandl/cassinatra'
|
22
41
|
|
23
|
-
|
24
|
-
|
42
|
+
d = Quandl::Cassinatra::Model::Dataset.new
|
43
|
+
d.id = 5893853
|
44
|
+
d.data = Quandl::Data::Random.table(rows: 10, columns: 4, nils: false).to_csv
|
45
|
+
d.save
|
46
|
+
|
47
|
+
d = Quandl::Cassinatra::Model::Dataset.find(5893853)
|
48
|
+
d.data
|
49
|
+
=> [...]
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
|
54
|
+
### Quandl::Cassinatra::Model::Multiset
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
|
58
|
+
require 'quandl/cassinatra'
|
25
59
|
|
26
|
-
|
60
|
+
m = Quandl::Cassinatra::Model::Multiset.with_columns('5893853.1,293.2').limit(10).collapse(:monthly)
|
61
|
+
m.data
|
62
|
+
=> [...]
|
27
63
|
|
28
64
|
```
|
data/quandl_cassinatra.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_cassinatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blkae Hilscher
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.0.3
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: json
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.7.7
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.7.7
|
125
139
|
description: An orm for the cassinatra rest interface.
|
126
140
|
email:
|
127
141
|
- blake@hilscher.ca
|