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
@@ -4,7 +4,9 @@
4
4
 
5
5
  require 'quandl/cassinatra'
6
6
 
7
- Quandl::Cassinatra.use 'localhost/rest_api_location/'
7
+ Quandl::Cassinatra.use 'http://192.168.33.10:8983/wikiposit_cassandra/'
8
+
9
+ include Quandl::Cassinatra
8
10
 
9
11
  ```
10
12
 
@@ -10,11 +10,11 @@ module Searchable
10
10
  module ClassMethods
11
11
 
12
12
  def valid_transformation?(type)
13
- valid_transformations.include?( type )
13
+ Quandl::Operation::Transform.valid_transformation?(type)
14
14
  end
15
15
 
16
16
  def valid_transformations
17
- [ :diff, :rdiff, :cumul, :normalize ]
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)) }
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Cassinatra
3
- VERSION = '0.0.9'
3
+ VERSION = '0.0.10'
4
4
  end
5
5
  end
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.9
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-15 00:00:00.000000000 Z
12
+ date: 2013-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake