td 0.11.14 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 970c5f406c0af987d8e95c4d569eaab07d0d77a6
4
- data.tar.gz: ca5eca4aa36566e7d30197ea564c2727f59ccbf4
3
+ metadata.gz: bc5f6252aeace112a6886530da039c0761077ac0
4
+ data.tar.gz: 1dfddbf8f907474702693cd7be2a23fa940d0f14
5
5
  SHA512:
6
- metadata.gz: 992fb900d224d6d31f16becc16d9f3bdc06c08903fc679f937ebae31bd55ca9543b15302d34d5d78813edf23a3ca4e0ecf412eee67e809583f7351e7612b903a
7
- data.tar.gz: 4f6e03812097e77553e7ea8e3941837922a2cbd76cbc5bd05449de0562863960cafa515ed945b85e262ed26c824c030c6ff93c6c340dc6655c24301ef0c98520
6
+ metadata.gz: a6212b8724a6c971d5b75437c1eb540f3d72a9afddeefc23ddcea00fcedb6bc1b5a4846f6560412027eea4ae0ab7bdcef4467beab81c9395985dcbf217c96263
7
+ data.tar.gz: 65523ca21f55cdf2e852a6993020d61c5a55ea14e8a4b46b6c1280067960558be7b89b5fd3c22d2568ed63cc78e3e3445e49d7318d94330e6bebeef864f5c9e3
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ == 2015-08-10 version 0.12.0
2
+
3
+ * Improve error message from APIError
4
+ split API backtrace from error message
5
+ * Update Toolbelt Ruby version to 2.2.2.
6
+ So, can't `td update` from td version 0.11.14.
7
+ Please, re-install.
8
+
1
9
  == 2015-08-03 version 0.11.14
2
10
 
3
11
  * fix connector:history was broken.
@@ -187,12 +187,13 @@ EOF
187
187
  if ![ParameterConfigurationError, BulkImportExecutionError, UpdateError, ImportError,
188
188
  APIError, ForbiddenError, NotFoundError, AuthError].include?(e.class) ||
189
189
  !ENV['TD_TOOLBELT_DEBUG'].nil? || $verbose
190
- $stderr.puts "Error #{$!.class}: backtrace:"
191
- $!.backtrace.each {|bt|
192
- $stderr.puts " #{bt}"
193
- }
194
- $stdout.puts ""
190
+ show_backtrace "Error #{$!.class}: backtrace:", $!.backtrace
191
+ end
192
+
193
+ if $!.respond_to? :api_backtrace
194
+ show_backtrace "Error backtrace from server:", $!.api_backtrace.split("\n")
195
195
  end
196
+
196
197
  $stdout.print "Error: "
197
198
  if [ForbiddenError, NotFoundError, AuthError].include?(e.class)
198
199
  $stdout.print "#{e.class} - "
@@ -212,6 +213,16 @@ EOS
212
213
  end
213
214
  return 0
214
215
  end
216
+
217
+ private
218
+
219
+ def show_backtrace(message, backtrace)
220
+ $stderr.puts message
221
+ backtrace.each {|bt|
222
+ $stderr.puts " #{bt}"
223
+ }
224
+ $stdout.puts ""
225
+ end
215
226
  end # class Runner
216
227
 
217
228
  end # module Command
@@ -142,7 +142,7 @@ module ModuleDefinition
142
142
  end
143
143
 
144
144
  def version_endpoint
145
- "#{endpoint_root}/version.#{package_category}"
145
+ "#{endpoint_root}/latest_version.#{package_category}"
146
146
  end
147
147
 
148
148
  def update_package_endpoint
@@ -1,3 +1,3 @@
1
1
  module TreasureData
2
- TOOLBELT_VERSION = '0.11.14'
2
+ TOOLBELT_VERSION = '0.12.0'
3
3
  end
data/td.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency "yajl-ruby", "~> 1.1"
22
22
  gem.add_dependency "hirb", ">= 0.4.5"
23
23
  gem.add_dependency "parallel", "~> 0.6.1"
24
- gem.add_dependency "td-client", "~> 0.8.74"
24
+ gem.add_dependency "td-client", "~> 0.8.75"
25
25
  gem.add_dependency "td-logger", "~> 0.3.21"
26
26
  gem.add_dependency "rubyzip", "~> 1.1.7"
27
27
  gem.add_dependency "zip-zip", "~> 0.3"
metadata CHANGED
@@ -1,211 +1,211 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.14
4
+ version: 0.12.0
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-08-03 00:00:00.000000000 Z
11
+ date: 2015-08-11 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.5.12
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.5.12
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: yajl-ruby
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ~>
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: '1.1'
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.1'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: hirb
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.4.5
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: 0.4.5
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: parallel
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ~>
89
+ - - "~>"
90
90
  - !ruby/object:Gem::Version
91
91
  version: 0.6.1
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ~>
96
+ - - "~>"
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.6.1
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: td-client
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ~>
103
+ - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: 0.8.74
105
+ version: 0.8.75
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ~>
110
+ - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: 0.8.74
112
+ version: 0.8.75
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: td-logger
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 0.3.21
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ~>
124
+ - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.3.21
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: rubyzip
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ~>
131
+ - - "~>"
132
132
  - !ruby/object:Gem::Version
133
133
  version: 1.1.7
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ~>
138
+ - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: 1.1.7
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: zip-zip
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ~>
145
+ - - "~>"
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0.3'
148
148
  type: :runtime
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ~>
152
+ - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0.3'
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: rake
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - ~>
159
+ - - "~>"
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0.9'
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - ~>
166
+ - - "~>"
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0.9'
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: rspec
171
171
  requirement: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - ~>
173
+ - - "~>"
174
174
  - !ruby/object:Gem::Version
175
175
  version: 2.11.0
176
176
  type: :development
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
- - - ~>
180
+ - - "~>"
181
181
  - !ruby/object:Gem::Version
182
182
  version: 2.11.0
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: simplecov
185
185
  requirement: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - ~>
187
+ - - "~>"
188
188
  - !ruby/object:Gem::Version
189
189
  version: 0.10.0
190
190
  type: :development
191
191
  prerelease: false
192
192
  version_requirements: !ruby/object:Gem::Requirement
193
193
  requirements:
194
- - - ~>
194
+ - - "~>"
195
195
  - !ruby/object:Gem::Version
196
196
  version: 0.10.0
197
197
  - !ruby/object:Gem::Dependency
198
198
  name: coveralls
199
199
  requirement: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - '>='
201
+ - - ">="
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  type: :development
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
- - - '>='
208
+ - - ">="
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  description: CLI to manage data on Treasure Data, the Hadoop-based cloud data warehousing
@@ -215,9 +215,9 @@ executables:
215
215
  extensions: []
216
216
  extra_rdoc_files: []
217
217
  files:
218
- - .coveralls.yml
219
- - .gitignore
220
- - .travis.yml
218
+ - ".coveralls.yml"
219
+ - ".gitignore"
220
+ - ".travis.yml"
221
221
  - ChangeLog
222
222
  - Gemfile
223
223
  - README.rdoc
@@ -294,17 +294,17 @@ require_paths:
294
294
  - lib
295
295
  required_ruby_version: !ruby/object:Gem::Requirement
296
296
  requirements:
297
- - - '>='
297
+ - - ">="
298
298
  - !ruby/object:Gem::Version
299
299
  version: '1.9'
300
300
  required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  requirements:
302
- - - '>='
302
+ - - ">="
303
303
  - !ruby/object:Gem::Version
304
304
  version: '0'
305
305
  requirements: []
306
306
  rubyforge_project:
307
- rubygems_version: 2.0.14
307
+ rubygems_version: 2.4.5
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: CLI to manage data on Treasure Data, the Hadoop-based cloud data warehousing