quandl_client 0.0.16 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ODYzNjljZGUwNWEyOTY3OTllOWUxNGM3YzhjZTU3MDE1ZDI1NGY5OQ==
5
+ data.tar.gz: !binary |-
6
+ MGIxNWExNWIzODcwNWY2MDM4YjIwMDBkNjA5YWYyZTAwNjBiZGYyMA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ OGE0MWFhZDllNmUzMDA2MDcxNDkyZDhjMTVmYmM0NTlhMWZkNWU4ZTQ1NjU2
10
+ NDMzM2VkZDQxYTFjZTQwMWQzNjcwZjBiZDUyOGJmN2FmOTQ1Zjk1M2VlZDc2
11
+ NmNkNWU5YzAwMDQ1MmM0MjIzMjIwOGVlOWIzN2FlMzRiZGRmMzU=
12
+ data.tar.gz: !binary |-
13
+ ZmQ1ZWVkMjc1ZGFhMTg4OWRkMDFmNmYyMjgzODdjZTk1NGI0MDc0MTU2NDE5
14
+ ODc1MGI5ZGM1MjczNmViNzE1NzRlOWVkMWUxMjVlMTU1ZWRjM2ZlN2MyZWYz
15
+ NjlkYjk3MDBiZjg1MmEzZGUxMWNhN2M0YmE0NzQwMTUzZTczNzU=
@@ -1,4 +1,4 @@
1
- require 'scope_builder'
1
+ require 'scope_composer'
2
2
  require "quandl/data"
3
3
 
4
4
  module Quandl
@@ -7,9 +7,9 @@ module Search
7
7
 
8
8
  included do
9
9
 
10
- include ScopeBuilder::Model
10
+ include ScopeComposer::Model
11
11
 
12
- scope_builder_for :search
12
+ scope_composer_for :search
13
13
 
14
14
  search_helper :all, ->{ connection.where(attributes).fetch }
15
15
  search_helper :connection, -> { self.class.parent }
@@ -17,7 +17,7 @@ class Dataset
17
17
  search_scope :source_code, ->(c){ where( code: c.to_s.upcase )}
18
18
 
19
19
  # SHOW
20
- scope_builder_for :show
20
+ scope_composer_for :show
21
21
  show_scope :rows, :exclude_data, :exclude_headers, :trim_start, :trim_end, :transform, :collapse
22
22
  show_helper :find, ->(id){ connection.where(attributes).find( id ) }
23
23
  show_helper :connection, -> { self.class.parent }
@@ -1,6 +1,6 @@
1
1
  module Quandl
2
2
  module Client
3
- VERSION = '0.0.16'
3
+ VERSION = '0.1.0'
4
4
  API_VERSION = 'v1'
5
5
 
6
6
  class << self
@@ -5,7 +5,7 @@ require "quandl/client/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "quandl_client"
7
7
  s.version = Quandl::Client::VERSION
8
- s.authors = ["Blkae Hilscher"]
8
+ s.authors = ["Blake Hilscher"]
9
9
  s.email = ["blake@hilscher.ca"]
10
10
  s.homepage = "http://blake.hilscher.ca/"
11
11
  s.license = "MIT"
@@ -25,8 +25,10 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_runtime_dependency "activesupport", ">= 3.0.0"
27
27
  s.add_runtime_dependency "her", "~> 0.6.7"
28
- s.add_runtime_dependency "scope_builder", "~> 0.0.6"
29
- s.add_runtime_dependency "quandl_data", "~> 0.0.8"
30
28
  s.add_runtime_dependency "yajl-ruby", "~> 1.1.0"
31
29
  s.add_runtime_dependency 'json', '~> 1.7.7'
30
+
31
+ s.add_runtime_dependency "quandl_data", "~> 0.1.0"
32
+ s.add_runtime_dependency "scope_composer", "~> 0.1.0"
33
+
32
34
  end
@@ -5,7 +5,7 @@ describe Dataset do
5
5
 
6
6
  describe "#update" do
7
7
 
8
- before(:all){ Quandl::Client.token = '93yzptKyhdkrqLhmezdi' }
8
+ before(:all){ Quandl::Client.token = AUTH_TOKEN }
9
9
 
10
10
  let(:source){ create(:source) }
11
11
  let(:dataset){ create(:dataset, source_code: source.code ) }
@@ -22,7 +22,7 @@ describe Dataset do
22
22
 
23
23
  describe "#find" do
24
24
 
25
- before(:all){ Quandl::Client.token = '93yzptKyhdkrqLhmezdi' }
25
+ before(:all){ Quandl::Client.token = AUTH_TOKEN }
26
26
 
27
27
  let(:source){ create(:source) }
28
28
  let(:dataset){ create(:dataset, source_code: source.code ) }
@@ -61,7 +61,7 @@ describe Dataset do
61
61
 
62
62
  context "with token" do
63
63
 
64
- before(:all){ Quandl::Client.token = '93yzptKyhdkrqLhmezdi' }
64
+ before(:all){ Quandl::Client.token = AUTH_TOKEN }
65
65
 
66
66
  let(:source){ create(:source) }
67
67
  let(:dataset){ create(:dataset, source_code: source.code ) }
@@ -25,7 +25,7 @@ describe Source do
25
25
 
26
26
  context "with token" do
27
27
 
28
- before(:all){ Quandl::Client.token = '93yzptKyhdkrqLhmezdi' }
28
+ before(:all){ Quandl::Client.token = AUTH_TOKEN }
29
29
 
30
30
  describe "#save" do
31
31
 
data/spec/spec_helper.rb CHANGED
@@ -9,6 +9,8 @@ Dir.glob( factory_dir ).each{|f| require(f); puts f }
9
9
  require "quandl/client"
10
10
 
11
11
  include Quandl::Client
12
+ Quandl::Client.use 'http://staging.quandl.com/api/'
13
+ AUTH_TOKEN = ENV['QUANDL_AUTH_TOKEN']
12
14
 
13
15
  RSpec.configure do |config|
14
16
  config.include FactoryGirl::Syntax::Methods
metadata CHANGED
@@ -1,192 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_client
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.16
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
- - Blkae Hilscher
7
+ - Blake Hilscher
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2013-07-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ~>
17
+ - !ruby/object:Gem::Version
18
+ version: '10.0'
19
+ type: :development
20
+ prerelease: false
15
21
  name: rake
16
22
  version_requirements: !ruby/object:Gem::Requirement
17
- none: false
18
23
  requirements:
19
24
  - - ~>
20
25
  - !ruby/object:Gem::Version
21
26
  version: '10.0'
27
+ - !ruby/object:Gem::Dependency
22
28
  requirement: !ruby/object:Gem::Requirement
23
- none: false
24
29
  requirements:
25
30
  - - ~>
26
31
  - !ruby/object:Gem::Version
27
- version: '10.0'
32
+ version: '2.13'
28
33
  type: :development
29
34
  prerelease: false
30
- - !ruby/object:Gem::Dependency
31
35
  name: rspec
32
36
  version_requirements: !ruby/object:Gem::Requirement
33
- none: false
34
37
  requirements:
35
38
  - - ~>
36
39
  - !ruby/object:Gem::Version
37
40
  version: '2.13'
41
+ - !ruby/object:Gem::Dependency
38
42
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
43
  requirements:
41
- - - ~>
44
+ - - ! '>='
42
45
  - !ruby/object:Gem::Version
43
- version: '2.13'
46
+ version: '0'
44
47
  type: :development
45
48
  prerelease: false
46
- - !ruby/object:Gem::Dependency
47
49
  name: factory_girl_rails
48
50
  version_requirements: !ruby/object:Gem::Requirement
49
- none: false
50
51
  requirements:
51
52
  - - ! '>='
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
54
56
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
57
  requirements:
57
- - - ! '>='
58
+ - - ~>
58
59
  - !ruby/object:Gem::Version
59
- version: '0'
60
+ version: '1.2'
60
61
  type: :development
61
62
  prerelease: false
62
- - !ruby/object:Gem::Dependency
63
63
  name: fivemat
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
- none: false
66
65
  requirements:
67
66
  - - ~>
68
67
  - !ruby/object:Gem::Version
69
68
  version: '1.2'
69
+ - !ruby/object:Gem::Dependency
70
70
  requirement: !ruby/object:Gem::Requirement
71
- none: false
72
71
  requirements:
73
- - - ~>
72
+ - - ! '>='
74
73
  - !ruby/object:Gem::Version
75
- version: '1.2'
74
+ version: '0'
76
75
  type: :development
77
76
  prerelease: false
78
- - !ruby/object:Gem::Dependency
79
77
  name: pry
80
78
  version_requirements: !ruby/object:Gem::Requirement
81
- none: false
82
79
  requirements:
83
80
  - - ! '>='
84
81
  - !ruby/object:Gem::Version
85
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
86
84
  requirement: !ruby/object:Gem::Requirement
87
- none: false
88
85
  requirements:
89
86
  - - ! '>='
90
87
  - !ruby/object:Gem::Version
91
- version: '0'
92
- type: :development
88
+ version: 3.0.0
89
+ type: :runtime
93
90
  prerelease: false
94
- - !ruby/object:Gem::Dependency
95
91
  name: activesupport
96
92
  version_requirements: !ruby/object:Gem::Requirement
97
- none: false
98
93
  requirements:
99
94
  - - ! '>='
100
95
  - !ruby/object:Gem::Version
101
96
  version: 3.0.0
97
+ - !ruby/object:Gem::Dependency
102
98
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
99
  requirements:
105
- - - ! '>='
100
+ - - ~>
106
101
  - !ruby/object:Gem::Version
107
- version: 3.0.0
102
+ version: 0.6.7
108
103
  type: :runtime
109
104
  prerelease: false
110
- - !ruby/object:Gem::Dependency
111
105
  name: her
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
- none: false
114
107
  requirements:
115
108
  - - ~>
116
109
  - !ruby/object:Gem::Version
117
110
  version: 0.6.7
111
+ - !ruby/object:Gem::Dependency
118
112
  requirement: !ruby/object:Gem::Requirement
119
- none: false
120
113
  requirements:
121
114
  - - ~>
122
115
  - !ruby/object:Gem::Version
123
- version: 0.6.7
116
+ version: 1.1.0
124
117
  type: :runtime
125
118
  prerelease: false
126
- - !ruby/object:Gem::Dependency
127
- name: scope_builder
119
+ name: yajl-ruby
128
120
  version_requirements: !ruby/object:Gem::Requirement
129
- none: false
130
121
  requirements:
131
122
  - - ~>
132
123
  - !ruby/object:Gem::Version
133
- version: 0.0.6
124
+ version: 1.1.0
125
+ - !ruby/object:Gem::Dependency
134
126
  requirement: !ruby/object:Gem::Requirement
135
- none: false
136
127
  requirements:
137
128
  - - ~>
138
129
  - !ruby/object:Gem::Version
139
- version: 0.0.6
130
+ version: 1.7.7
140
131
  type: :runtime
141
132
  prerelease: false
142
- - !ruby/object:Gem::Dependency
143
- name: quandl_data
133
+ name: json
144
134
  version_requirements: !ruby/object:Gem::Requirement
145
- none: false
146
135
  requirements:
147
136
  - - ~>
148
137
  - !ruby/object:Gem::Version
149
- version: 0.0.8
138
+ version: 1.7.7
139
+ - !ruby/object:Gem::Dependency
150
140
  requirement: !ruby/object:Gem::Requirement
151
- none: false
152
141
  requirements:
153
142
  - - ~>
154
143
  - !ruby/object:Gem::Version
155
- version: 0.0.8
144
+ version: 0.1.0
156
145
  type: :runtime
157
146
  prerelease: false
158
- - !ruby/object:Gem::Dependency
159
- name: yajl-ruby
147
+ name: quandl_data
160
148
  version_requirements: !ruby/object:Gem::Requirement
161
- none: false
162
149
  requirements:
163
150
  - - ~>
164
151
  - !ruby/object:Gem::Version
165
- version: 1.1.0
152
+ version: 0.1.0
153
+ - !ruby/object:Gem::Dependency
166
154
  requirement: !ruby/object:Gem::Requirement
167
- none: false
168
155
  requirements:
169
156
  - - ~>
170
157
  - !ruby/object:Gem::Version
171
- version: 1.1.0
158
+ version: 0.1.0
172
159
  type: :runtime
173
160
  prerelease: false
174
- - !ruby/object:Gem::Dependency
175
- name: json
161
+ name: scope_composer
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
- none: false
178
163
  requirements:
179
164
  - - ~>
180
165
  - !ruby/object:Gem::Version
181
- version: 1.7.7
182
- requirement: !ruby/object:Gem::Requirement
183
- none: false
184
- requirements:
185
- - - ~>
186
- - !ruby/object:Gem::Version
187
- version: 1.7.7
188
- type: :runtime
189
- prerelease: false
166
+ version: 0.1.0
190
167
  description: An orm for the cassinatra rest interface.
191
168
  email:
192
169
  - blake@hilscher.ca
@@ -227,27 +204,26 @@ files:
227
204
  homepage: http://blake.hilscher.ca/
228
205
  licenses:
229
206
  - MIT
207
+ metadata: {}
230
208
  post_install_message:
231
209
  rdoc_options: []
232
210
  require_paths:
233
211
  - lib
234
212
  required_ruby_version: !ruby/object:Gem::Requirement
235
- none: false
236
213
  requirements:
237
214
  - - ! '>='
238
215
  - !ruby/object:Gem::Version
239
216
  version: '0'
240
217
  required_rubygems_version: !ruby/object:Gem::Requirement
241
- none: false
242
218
  requirements:
243
219
  - - ! '>='
244
220
  - !ruby/object:Gem::Version
245
221
  version: '0'
246
222
  requirements: []
247
223
  rubyforge_project:
248
- rubygems_version: 1.8.25
224
+ rubygems_version: 2.0.5
249
225
  signing_key:
250
- specification_version: 3
226
+ specification_version: 4
251
227
  summary: Client rest orm.
252
228
  test_files:
253
229
  - spec/factories/dataset.rb