td 0.10.50 → 0.10.51

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2012-09-21 version 0.10.51
3
+
4
+ * job:list and job:show show database name
5
+ * Widened display table size of job:list
6
+
7
+
2
8
  == 2012-09-20 version 0.10.50
3
9
 
4
10
  * Changed packaging method from Jeweler to Bundler
@@ -38,9 +38,16 @@ You need to authorize the account, before executing any other commands.
38
38
 
39
39
  == Windows
40
40
 
41
- First of all, install cygwin.
42
- Then install gcc and ruby packages using cygwin installer.
41
+ Install following binary packages:
43
42
 
43
+ * MinGW with MSYS Basic System and using mingw-get-inst
44
+ * Git for Windows, with Windows Command Prompt support
45
+ * Ruby 1.9.2 using RubyInstaller for Windows, with PATH update
46
+
47
+ Then run following commands on MinGW Shell:
48
+
49
+ $ mingw-get install msys-vim
50
+ $ mingw-get install msys-wget
44
51
  $ gem install bundler
45
52
  $ rake exe:build
46
53
 
data/Rakefile CHANGED
@@ -91,7 +91,11 @@ def download_resource(url)
91
91
  return path
92
92
  end
93
93
  FileUtils.mkdir_p File.dirname(path)
94
- sh "curl '#{url}' -o '#{path}'"
94
+ begin
95
+ sh "curl '#{url}' -o '#{path}'"
96
+ rescue
97
+ sh "wget '#{url}' -O '#{path}'"
98
+ end
95
99
  path
96
100
  end
97
101
 
@@ -4,7 +4,7 @@ task 'exe:build' => :build do
4
4
  create_build_dir('exe') do |dir|
5
5
  # create ./installers/
6
6
  FileUtils.mkdir_p "installers"
7
- installer_path = download_resource('http://heroku-toolbelt.s3.amazonaws.com/rubyinstaller.exe')
7
+ installer_path = download_resource('http://rubyforge.org/frs/download.php/76054/rubyinstaller-1.9.3-p194.exe')
8
8
  FileUtils.cp installer_path, "installers/rubyinstaller.exe"
9
9
 
10
10
  variables = {
@@ -1 +1,2 @@
1
+ @cd %USERPROFILE%
1
2
  @cmd /k td
@@ -1,29 +1,13 @@
1
1
  @ECHO OFF
2
2
 
3
- :: determine if this is x86 or x64
4
- if "%processor_architecture%" == "IA64" goto x64
5
- if "%processor_architecture%" == "AMD64" goto x64
6
- if "%ProgramFiles%" == "%ProgramW6432%" goto x64
7
- goto x86
8
-
9
- :x86
10
- set TDRubyPath=%ProgramFiles%\ruby-1.9.3
11
- goto launch
12
-
13
- :x64
14
- set TDRubyPath=%ProgramFiles(x86)%\ruby-1.9.3
15
- goto launch
16
-
17
- :launch
18
-
19
3
  :: determine if this is an NT operating system
20
4
  if not "%~f0" == "~f0" goto WinNT
21
5
  goto Win9x
22
6
 
23
7
  :Win9x
24
- @"%TDRubyPath%\bin\ruby.exe" "td" %1 %2 %3 %4 %5 %6 %7 %8 %9
8
+ @"%~dp0\..\ruby-1.9.3\bin\ruby.exe" "td" %1 %2 %3 %4 %5 %6 %7 %8 %9
25
9
  goto :EOF
26
10
 
27
11
  :WinNT
28
- @"%TDRubyPath%\bin\ruby.exe" "%~dpn0" %*
12
+ @"%~dp0\..\ruby-1.9.3\bin\ruby.exe" "%~dpn0" %*
29
13
  goto :EOF
@@ -21,7 +21,6 @@ Name: custom; Description: "Custom Installation"; flags: iscustom
21
21
  [Components]
22
22
  Name: "toolbelt"; Description: "Treasure Data Toolbelt"; Types: "client custom"
23
23
  Name: "toolbelt/client"; Description: "Treasure Data Client"; Types: "client custom"; Flags: fixed
24
- <%#Name: "toolbelt/foreman"; Description: "Foreman"; Types: "client custom"%>
25
24
 
26
25
  [Files]
27
26
  Source: "td\*.*"; DestDir: "{app}"; Flags: recursesubdirs; Components: "toolbelt/client"
@@ -31,21 +30,15 @@ Source: "installers\rubyinstaller.exe"; DestDir: "{tmp}"; Components: "toolbelt/
31
30
  Name: "{group}\Treasure Data command prompt"; Filename: "{app}\td-cmd.bat"
32
31
 
33
32
  [Registry]
34
- Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: "expandsz"; ValueName: "TreasureDataPath"; \
35
- ValueData: "{app}"
36
33
  Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: "expandsz"; ValueName: "Path"; \
37
34
  ValueData: "{olddata};{app}\bin"; Check: NeedsAddPath(ExpandConstant('{app}\bin'))
38
- Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: "expandsz"; ValueName: "Path"; \
39
- ValueData: "{olddata};{pf}\ruby-1.9.3\bin"; Check: NeedsAddPath(ExpandConstant('{pf}\ruby-1.9.3\bin'))
40
35
  Root: HKCU; Subkey: "Environment"; ValueType: "expandsz"; ValueName: "HOME"; \
41
36
  ValueData: "%USERPROFILE%"; Flags: createvalueifdoesntexist
42
37
 
43
38
  [Run]
44
- Filename: "{tmp}\rubyinstaller.exe"; Parameters: "/verysilent /noreboot /nocancel /noicons /dir=""{pf}/ruby-1.9.3"""; \
39
+ Filename: "{tmp}\rubyinstaller.exe"; Parameters: "/verysilent /noreboot /nocancel /noicons /dir=""{app}/ruby-1.9.3"""; \
45
40
  Flags: shellexec waituntilterminated; StatusMsg: "Installing Ruby"; Components: "toolbelt/client"
46
- <%#Filename: "{pf}\ruby-1.9.3\bin\gem.bat"; Parameters: "install foreman --no-rdoc --no-ri"; %>
47
- <%# Flags: runhidden shellexec waituntilterminated; StatusMsg: "Installing Foreman"; Components: "toolbelt/foreman"%>
48
- Filename: "{app}\td-cmd.bat"; Description: "Run command prompt"; Flags: postinstall
41
+ ; Filename: "{app}\td-cmd.bat"; Description: "Run command prompt"; Flags: postinstall
49
42
 
50
43
  [Code]
51
44
 
@@ -64,11 +64,11 @@ module Command
64
64
  start = job.start_at
65
65
  elapsed = cmd_format_elapsed(start, job.end_at)
66
66
  priority = job_priority_name_of(job.priority)
67
- rows << {:JobID => job.job_id, :Status => job.status, :Type => job.type, :Query => job.query.to_s, :Start => (start ? start.localtime : ''), :Elapsed => elapsed, :Priority => priority, :Result => job.result_url, :Organization => job.org_name}
67
+ rows << {:JobID => job.job_id, :Database => job.db_name, :Status => job.status, :Type => job.type, :Query => job.query.to_s, :Start => (start ? start.localtime : ''), :Elapsed => elapsed, :Priority => priority, :Result => job.result_url, :Organization => job.org_name}
68
68
  has_org = true if job.org_name
69
69
  }
70
70
 
71
- puts cmd_render_table(rows, :fields => (has_org ? [:Organization] : [])+[:JobID, :Status, :Start, :Elapsed, :Priority, :Result, :Type, :Query])
71
+ puts cmd_render_table(rows, :fields => (has_org ? [:Organization] : [])+[:JobID, :Status, :Start, :Elapsed, :Priority, :Result, :Type, :Database, :Query], :max_width => 140)
72
72
  end
73
73
 
74
74
  def job_show(op)
@@ -110,6 +110,7 @@ module Command
110
110
  puts "Type : #{job.type}"
111
111
  puts "Priority : #{job_priority_name_of(job.priority)}"
112
112
  puts "Result : #{job.result_url}"
113
+ puts "Database : #{job.db_name}"
113
114
  puts "Query : #{job.query}"
114
115
 
115
116
  if wait && !job.finished?
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.10.50'
3
+ VERSION = '0.10.51'
4
4
 
5
5
  end
data/td.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.add_dependency "msgpack", "~> 0.4.4"
20
20
  gem.add_dependency "json", ">= 1.4.3"
21
21
  gem.add_dependency "hirb", ">= 0.4.5"
22
- gem.add_dependency "td-client", "~> 0.8.29"
22
+ gem.add_dependency "td-client", "~> 0.8.31"
23
23
  gem.add_dependency "td-logger", "~> 0.3.12"
24
24
  gem.add_development_dependency "rake", "~> 0.9"
25
25
  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.50
4
+ version: 0.10.51
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-21 00:00:00.000000000 Z
12
+ date: 2012-09-22 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.29
69
+ version: 0.8.31
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.29
77
+ version: 0.8.31
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: td-logger
80
80
  requirement: !ruby/object:Gem::Requirement