td 0.10.47 → 0.10.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2012-09-17 version 0.10.48
3
+
4
+ * Fixed an encoding problem with job:result command to display results
5
+ to the console
6
+
7
+
2
8
  == 2012-09-13 version 0.10.47
3
9
 
4
10
  * Added account:usage subcommand
@@ -255,14 +255,14 @@ module Command
255
255
  job.result_each {|row|
256
256
  # TODO limit number of rows to show
257
257
  rows << row.map {|v|
258
+ # TODO encoding check
258
259
  if v.is_a?(String)
259
- # TODO encoding check
260
260
  s = v.to_s
261
- s.force_encoding('ASCII-8BIT') if s.respond_to?(:force_encoding)
262
- s
263
261
  else
264
- v.to_json
262
+ s = v.to_json
265
263
  end
264
+ s.force_encoding('UTF-8') if s.respond_to?(:force_encoding)
265
+ s
266
266
  }
267
267
  }
268
268
 
data/lib/td/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.10.47'
3
+ VERSION = '0.10.48'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.47
4
+ version: 0.10.48
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: 2012-09-13 00:00:00.000000000 Z
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 0.8.26
69
+ version: 0.8.27
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 0.8.26
77
+ version: 0.8.27
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: td-logger
80
80
  requirement: !ruby/object:Gem::Requirement