quandl_cassinatra 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -10,11 +10,11 @@ module Searchable
|
|
10
10
|
module ClassMethods
|
11
11
|
|
12
12
|
def valid_transformation?(type)
|
13
|
-
|
13
|
+
Quandl::Operation::Transform.valid_transformation?(type)
|
14
14
|
end
|
15
15
|
|
16
16
|
def valid_transformations
|
17
|
-
|
17
|
+
Quandl::Operation::Transform.valid_transformations
|
18
18
|
end
|
19
19
|
|
20
20
|
def search_scopes
|
@@ -41,6 +41,8 @@ module Searchable
|
|
41
41
|
end
|
42
42
|
|
43
43
|
search_scope :limit, ->(amount) { where( limit: amount.to_i ) }
|
44
|
+
search_scope :offset, ->(amount) { where( offset: amount.to_i ) }
|
45
|
+
search_scope :accuracy, ->(amount) { where( accuracy: amount.to_i ) }
|
44
46
|
search_scope :column, ->(index) { where( column: index.to_i ) }
|
45
47
|
search_scope :order, ->(dir) { where( order: (dir.to_sym == :asc) ? 'asc' : 'desc' ) }
|
46
48
|
search_scope :trim_start, ->(date) { where( trim_start: format_trim_date(date, :start)) }
|
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.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|