td 0.10.50 → 0.10.51
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 +6 -0
- data/README.rdoc +9 -2
- data/Rakefile +5 -1
- data/dist/exe.rake +1 -1
- data/dist/resources/exe/td-cmd.bat +1 -0
- data/dist/resources/exe/td.bat +2 -18
- data/dist/resources/exe/td.iss +2 -9
- data/lib/td/command/job.rb +3 -2
- data/lib/td/version.rb +1 -1
- data/td.gemspec +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
data/README.rdoc
CHANGED
@@ -38,9 +38,16 @@ You need to authorize the account, before executing any other commands.
|
|
38
38
|
|
39
39
|
== Windows
|
40
40
|
|
41
|
-
|
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
data/dist/exe.rake
CHANGED
@@ -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://
|
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 = {
|
data/dist/resources/exe/td.bat
CHANGED
@@ -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
|
-
@"
|
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
|
-
@"
|
12
|
+
@"%~dp0\..\ruby-1.9.3\bin\ruby.exe" "%~dpn0" %*
|
29
13
|
goto :EOF
|
data/dist/resources/exe/td.iss
CHANGED
@@ -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=""{
|
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
|
-
|
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
|
|
data/lib/td/command/job.rb
CHANGED
@@ -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?
|
data/lib/td/version.rb
CHANGED
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.
|
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.
|
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-
|
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.
|
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.
|
77
|
+
version: 0.8.31
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: td-logger
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|