td-client 0.8.73 → 0.8.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/td/client/model.rb +1 -1
- data/lib/td/client/version.rb +1 -1
- data/spec/td/client/model_schedule_spec.rb +26 -0
- metadata +41 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e7c8e5d2d7a083101d43af5aac57da1832683b2
|
4
|
+
data.tar.gz: 95dd9d3cd7e6ee9a743e774dbabcc0c78981d9e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a031a8d19b916bb07ca496612388349fb922577f15dbaddbd8b54c78f054d5ebd4bb894ea877f13a5bdd8e4166fd30b69c46918cb989510b035deac3631ee2ac
|
7
|
+
data.tar.gz: d528d13d61573d7f89b50a8b2a6cb05656705f4a39cad03ae59aa2b10cd49f95a08b318f847c1c8d6e685ad97dc0d3ccfb1a66b99c43642bad0f98e008b8826f
|
data/lib/td/client/model.rb
CHANGED
data/lib/td/client/version.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'td/client/spec_resources'
|
3
|
+
|
4
|
+
describe 'Schedule Model' do
|
5
|
+
describe '#run' do
|
6
|
+
let(:api_key) { '1234567890abcd' }
|
7
|
+
let(:api) { double(:api) }
|
8
|
+
let(:client) { Client.new(api_key) }
|
9
|
+
let(:name) { 'schedule' }
|
10
|
+
let(:schedule) {
|
11
|
+
Schedule.new(client, name, '0 0 * * * *', 'select 1')
|
12
|
+
}
|
13
|
+
let(:time) { "2013-01-01 00:00:00" }
|
14
|
+
let(:num) { 1 }
|
15
|
+
|
16
|
+
before do
|
17
|
+
API.stub(:new).with(api_key, {}).and_return(api)
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'success call api' do
|
21
|
+
api.should_receive(:run_schedule).with(name, time, num).and_return([])
|
22
|
+
|
23
|
+
schedule.run(time, num)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,105 +1,105 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Treasure Data, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.4.4
|
20
|
-
- -
|
20
|
+
- - "!="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.5.0
|
23
|
-
- -
|
23
|
+
- - "!="
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: 0.5.1
|
26
|
-
- -
|
26
|
+
- - "!="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 0.5.2
|
29
|
-
- -
|
29
|
+
- - "!="
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: 0.5.3
|
32
|
-
- - <
|
32
|
+
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.6.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 0.4.4
|
42
|
-
- -
|
42
|
+
- - "!="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 0.5.0
|
45
|
-
- -
|
45
|
+
- - "!="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.5.1
|
48
|
-
- -
|
48
|
+
- - "!="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: 0.5.2
|
51
|
-
- -
|
51
|
+
- - "!="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 0.5.3
|
54
|
-
- - <
|
54
|
+
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 0.6.0
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: json
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: 1.7.6
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 1.7.6
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: httpclient
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: 2.5.2
|
78
|
-
- - <
|
78
|
+
- - "<"
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: 2.6.0
|
81
81
|
type: :runtime
|
82
82
|
prerelease: false
|
83
83
|
version_requirements: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: 2.5.2
|
88
|
-
- - <
|
88
|
+
- - "<"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 2.6.0
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - ~>
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '2.8'
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - ~>
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '2.8'
|
105
105
|
- !ruby/object:Gem::Dependency
|
@@ -134,70 +134,70 @@ dependencies:
|
|
134
134
|
name: coveralls
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: webmock
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - ~>
|
151
|
+
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '1.16'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
156
|
version_requirements: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- - ~>
|
158
|
+
- - "~>"
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '1.16'
|
161
161
|
- !ruby/object:Gem::Dependency
|
162
162
|
name: simplecov
|
163
163
|
requirement: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
|
-
- -
|
165
|
+
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: 0.5.4
|
168
168
|
type: :development
|
169
169
|
prerelease: false
|
170
170
|
version_requirements: !ruby/object:Gem::Requirement
|
171
171
|
requirements:
|
172
|
-
- -
|
172
|
+
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: 0.5.4
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
176
|
name: rake
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
|
-
- -
|
179
|
+
- - ">="
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
type: :development
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
|
-
- -
|
186
|
+
- - ">="
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
189
|
- !ruby/object:Gem::Dependency
|
190
190
|
name: yard
|
191
191
|
requirement: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
|
-
- -
|
193
|
+
- - ">="
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
type: :development
|
197
197
|
prerelease: false
|
198
198
|
version_requirements: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
|
-
- -
|
200
|
+
- - ">="
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
description: Treasure Data API library for Ruby
|
@@ -206,6 +206,10 @@ executables: []
|
|
206
206
|
extensions: []
|
207
207
|
extra_rdoc_files: []
|
208
208
|
files:
|
209
|
+
- data/ca-bundle.crt
|
210
|
+
- lib/td-client.rb
|
211
|
+
- lib/td/client.rb
|
212
|
+
- lib/td/client/api.rb
|
209
213
|
- lib/td/client/api/access_control.rb
|
210
214
|
- lib/td/client/api/account.rb
|
211
215
|
- lib/td/client/api/bulk_import.rb
|
@@ -220,15 +224,11 @@ files:
|
|
220
224
|
- lib/td/client/api/server_status.rb
|
221
225
|
- lib/td/client/api/table.rb
|
222
226
|
- lib/td/client/api/user.rb
|
223
|
-
- lib/td/client/api.rb
|
224
227
|
- lib/td/client/api_error.rb
|
225
228
|
- lib/td/client/compat_gzip_reader.rb
|
226
229
|
- lib/td/client/model.rb
|
227
230
|
- lib/td/client/version.rb
|
228
|
-
- lib/td/client.rb
|
229
231
|
- lib/td/core_ext/openssl/ssl/sslcontext/set_params.rb
|
230
|
-
- lib/td-client.rb
|
231
|
-
- data/ca-bundle.crt
|
232
232
|
- spec/spec_helper.rb
|
233
233
|
- spec/td/client/access_control_api_spec.rb
|
234
234
|
- spec/td/client/account_api_spec.rb
|
@@ -242,6 +242,7 @@ files:
|
|
242
242
|
- spec/td/client/import_api_spec.rb
|
243
243
|
- spec/td/client/job_api_spec.rb
|
244
244
|
- spec/td/client/model_job_spec.rb
|
245
|
+
- spec/td/client/model_schedule_spec.rb
|
245
246
|
- spec/td/client/partial_delete_api_spec.rb
|
246
247
|
- spec/td/client/result_api_spec.rb
|
247
248
|
- spec/td/client/sched_api_spec.rb
|
@@ -260,17 +261,17 @@ require_paths:
|
|
260
261
|
- lib
|
261
262
|
required_ruby_version: !ruby/object:Gem::Requirement
|
262
263
|
requirements:
|
263
|
-
- -
|
264
|
+
- - ">="
|
264
265
|
- !ruby/object:Gem::Version
|
265
266
|
version: '0'
|
266
267
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
268
|
requirements:
|
268
|
-
- -
|
269
|
+
- - ">="
|
269
270
|
- !ruby/object:Gem::Version
|
270
271
|
version: '0'
|
271
272
|
requirements: []
|
272
273
|
rubyforge_project:
|
273
|
-
rubygems_version: 2.
|
274
|
+
rubygems_version: 2.4.5
|
274
275
|
signing_key:
|
275
276
|
specification_version: 4
|
276
277
|
summary: Treasure Data API library for Ruby
|
@@ -287,6 +288,7 @@ test_files:
|
|
287
288
|
- spec/td/client/import_api_spec.rb
|
288
289
|
- spec/td/client/job_api_spec.rb
|
289
290
|
- spec/td/client/model_job_spec.rb
|
291
|
+
- spec/td/client/model_schedule_spec.rb
|
290
292
|
- spec/td/client/partial_delete_api_spec.rb
|
291
293
|
- spec/td/client/result_api_spec.rb
|
292
294
|
- spec/td/client/sched_api_spec.rb
|