td 0.11.8 → 0.11.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/lib/td/version.rb +1 -1
- data/td.gemspec +1 -1
- metadata +36 -47
- data/dist/exe.rake +0 -46
- data/dist/pkg.rake +0 -54
- data/dist/resources/exe/td +0 -30
- data/dist/resources/exe/td-cmd.bat +0 -2
- data/dist/resources/exe/td.bat +0 -13
- data/dist/resources/exe/td.iss +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3acbc09262773106c3a2635cf158f204d130b645
|
4
|
+
data.tar.gz: 7827d370f2da079c98f41e88956c9714303dece5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26334fe3feb928becaeff73400504d27e8c92b7655b3a04c0eed21a054620ca8cf0a3cacf422242dab8f1c85395d9a9e503f1bfb764aed28e2699ce192609b95
|
7
|
+
data.tar.gz: 8801b5016d6eb543c5c5382b9bb6ea5076674619a72f85f7a1c1871412f73483b75d0b3b1e79e1c7af817505acbf1fe561e2cc519d068d0474c85d1bb04400f8
|
data/ChangeLog
CHANGED
data/lib/td/version.rb
CHANGED
data/td.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.authors = ["Treasure Data, Inc."]
|
12
12
|
gem.email = "support@treasure-data.com"
|
13
13
|
gem.has_rdoc = false
|
14
|
-
gem.files = `git ls-files`.split("\n")
|
14
|
+
gem.files = `git ls-files`.split("\n").select { |f| !f.start_with?('dist') }
|
15
15
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
16
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
gem.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,183 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.8
|
4
|
+
version: 0.11.8.1
|
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-03-19 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: 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
105
|
version: 0.8.68
|
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
112
|
version: 0.8.68
|
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: 0.9.9
|
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: 0.9.9
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: rake
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- - ~>
|
145
|
+
- - "~>"
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0.9'
|
148
148
|
type: :development
|
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.9'
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: rspec
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- - ~>
|
159
|
+
- - "~>"
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: 2.11.0
|
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: 2.11.0
|
169
169
|
- !ruby/object:Gem::Dependency
|
170
170
|
name: simplecov
|
171
171
|
requirement: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
|
-
- - ~>
|
173
|
+
- - "~>"
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: 0.5.4
|
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: 0.5.4
|
183
183
|
description: CLI to manage data on Treasure Data, the Hadoop-based cloud data warehousing
|
@@ -187,7 +187,7 @@ executables:
|
|
187
187
|
extensions: []
|
188
188
|
extra_rdoc_files: []
|
189
189
|
files:
|
190
|
-
- .gitignore
|
190
|
+
- ".gitignore"
|
191
191
|
- ChangeLog
|
192
192
|
- Gemfile
|
193
193
|
- README.rdoc
|
@@ -197,17 +197,6 @@ files:
|
|
197
197
|
- contrib/completion/td-completion.bash
|
198
198
|
- data/sample_apache.json
|
199
199
|
- data/sample_apache_gen.rb
|
200
|
-
- dist/exe.rake
|
201
|
-
- dist/pkg.rake
|
202
|
-
- dist/resources/exe/td
|
203
|
-
- dist/resources/exe/td-cmd.bat
|
204
|
-
- dist/resources/exe/td.bat
|
205
|
-
- dist/resources/exe/td.iss
|
206
|
-
- dist/resources/pkg/Distribution.erb
|
207
|
-
- dist/resources/pkg/PackageInfo.erb
|
208
|
-
- dist/resources/pkg/postinstall
|
209
|
-
- dist/resources/pkg/ruby-2.0.0-p0.pkg
|
210
|
-
- dist/resources/pkg/td
|
211
200
|
- java/logging.properties
|
212
201
|
- lib/td.rb
|
213
202
|
- lib/td/command/account.rb
|
@@ -269,17 +258,17 @@ require_paths:
|
|
269
258
|
- lib
|
270
259
|
required_ruby_version: !ruby/object:Gem::Requirement
|
271
260
|
requirements:
|
272
|
-
- -
|
261
|
+
- - ">="
|
273
262
|
- !ruby/object:Gem::Version
|
274
263
|
version: '1.9'
|
275
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
276
265
|
requirements:
|
277
|
-
- -
|
266
|
+
- - ">="
|
278
267
|
- !ruby/object:Gem::Version
|
279
268
|
version: '0'
|
280
269
|
requirements: []
|
281
270
|
rubyforge_project:
|
282
|
-
rubygems_version: 2.
|
271
|
+
rubygems_version: 2.2.2
|
283
272
|
signing_key:
|
284
273
|
specification_version: 4
|
285
274
|
summary: CLI to manage data on Treasure Data, the Hadoop-based cloud data warehousing
|
data/dist/exe.rake
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
|
2
|
-
desc "build Windows exe package"
|
3
|
-
task 'exe:build' => :build do
|
4
|
-
create_build_dir('exe') do |dir|
|
5
|
-
# create ./installers/
|
6
|
-
FileUtils.mkdir_p "installers"
|
7
|
-
installer_path = download_resource('http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.9.3-p545.exe?direct')
|
8
|
-
FileUtils.cp installer_path, "installers/rubyinstaller.exe"
|
9
|
-
|
10
|
-
variables = {
|
11
|
-
:version => version,
|
12
|
-
:basename => "td-#{version}",
|
13
|
-
:outdir => ".",
|
14
|
-
}
|
15
|
-
|
16
|
-
# create ./td/
|
17
|
-
mkchdir("td") do
|
18
|
-
mkchdir('vendor/gems') do
|
19
|
-
install_use_gems(Dir.pwd)
|
20
|
-
end
|
21
|
-
install_resource 'exe/td', 'bin/td', 0755
|
22
|
-
install_resource 'exe/td.bat', 'bin/td.bat', 0755
|
23
|
-
install_resource 'exe/td-cmd.bat', 'td-cmd.bat', 0755
|
24
|
-
end
|
25
|
-
|
26
|
-
zip_files(project_root_path("pkg/td-update-exe-#{version}.zip"), 'td')
|
27
|
-
|
28
|
-
# create td.iss and run Inno Setup
|
29
|
-
install_erb_resource 'exe/td.iss', 'td.iss', 0644, variables
|
30
|
-
|
31
|
-
inno_dir = ENV["INNO_DIR"] || 'C:/Program Files (x86)/Inno Setup 5'
|
32
|
-
inno_bin = ENV["INNO_BIN"] || "#{inno_dir}/Compil32.exe"
|
33
|
-
puts "INNO_BIN: #{inno_bin}"
|
34
|
-
|
35
|
-
sh "\"#{inno_bin}\" /cc \"td.iss\""
|
36
|
-
FileUtils.cp "td-#{version}.exe", project_root_path("pkg/td-#{version}.exe")
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
desc "clean Windows exe package"
|
41
|
-
task "exe:clean" do
|
42
|
-
FileUtils.rm_rf build_dir_path('exe')
|
43
|
-
FileUtils.rm_rf project_root_path("pkg/td-#{version}.exe")
|
44
|
-
FileUtils.rm_rf project_root_path("pkg/td-update-exe-#{version}.zip")
|
45
|
-
end
|
46
|
-
|
data/dist/pkg.rake
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
|
2
|
-
desc "build Mac OS X pkg package"
|
3
|
-
task 'pkg:build' => :build do
|
4
|
-
create_build_dir('pkg') do |dir|
|
5
|
-
FileUtils.mkdir_p "bundle"
|
6
|
-
FileUtils.mkdir_p "bundle/Resources"
|
7
|
-
FileUtils.mkdir_p "bundle/td-client.pkg"
|
8
|
-
FileUtils.mkdir_p "bundle/td-client.pkg"
|
9
|
-
|
10
|
-
# create ./bundle/td-client.pkg/Payload
|
11
|
-
mkchdir('td-client.build') do
|
12
|
-
mkchdir('vendor/gems') do
|
13
|
-
install_use_gems(Dir.pwd)
|
14
|
-
end
|
15
|
-
install_resource 'pkg/td', 'bin/td', 0755
|
16
|
-
sh "pax -wz -x cpio . > ../bundle/td-client.pkg/Payload"
|
17
|
-
end
|
18
|
-
|
19
|
-
zip_files(project_root_path("pkg/td-update-pkg-#{version}.zip"), 'td-client.build')
|
20
|
-
|
21
|
-
# create ./bundle/td-client.pkg/Bom
|
22
|
-
sh "mkbom -s td-client.build bundle/td-client.pkg/Bom"
|
23
|
-
|
24
|
-
# create ./bundle/td-client.pkg/Scripts/
|
25
|
-
install_resource 'pkg/postinstall', 'bundle/td-client.pkg/Scripts/postinstall', 0755
|
26
|
-
|
27
|
-
variables = {
|
28
|
-
:version => version,
|
29
|
-
:kbytes => `du -ks td-client.build | cut -f 1`.strip.to_i,
|
30
|
-
:num_files => `find td-client.build | wc -l`,
|
31
|
-
}
|
32
|
-
|
33
|
-
# create ./bundle/td-client.pkg/PackageInfo
|
34
|
-
install_erb_resource('pkg/PackageInfo.erb', 'bundle/td-client.pkg/PackageInfo', 0644, variables)
|
35
|
-
|
36
|
-
# create ./bundle/Distribution
|
37
|
-
install_erb_resource('pkg/Distribution.erb', 'bundle/Distribution', 0644, variables)
|
38
|
-
|
39
|
-
sh "pkgutil --expand #{project_root_path('dist/resources/pkg/ruby-2.0.0-p0.pkg')} ruby"
|
40
|
-
mv "ruby/ruby-2.0.0-p0.pkg", "bundle/ruby.pkg"
|
41
|
-
|
42
|
-
# create td-a.b.c.pkg
|
43
|
-
sh "pkgutil --flatten bundle td-#{version}.pkg"
|
44
|
-
FileUtils.cp "td-#{version}.pkg", project_root_path("pkg/td-#{version}.pkg")
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
desc "clean Mac OS X pkg package"
|
49
|
-
task "pkg:clean" do
|
50
|
-
FileUtils.rm_rf build_dir_path('pkg')
|
51
|
-
FileUtils.rm_rf project_root_path("pkg/td-#{version}.pkg")
|
52
|
-
FileUtils.rm_rf project_root_path("pkg/td-update-pkg-#{version}.zip")
|
53
|
-
end
|
54
|
-
|
data/dist/resources/exe/td
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
|
4
|
-
# avoid conflicts with rvm
|
5
|
-
ENV.delete 'GEM_HOME'
|
6
|
-
ENV.delete 'GEM_PATH'
|
7
|
-
|
8
|
-
# attempt to load rubygems
|
9
|
-
begin
|
10
|
-
require "rubygems"
|
11
|
-
rescue LoadError
|
12
|
-
end
|
13
|
-
|
14
|
-
# resolve bin path, ignoring symlinks
|
15
|
-
require "pathname"
|
16
|
-
here = File.dirname(Pathname.new(__FILE__).realpath)
|
17
|
-
|
18
|
-
# add locally installed gems to libpath
|
19
|
-
gem_dir = File.expand_path("../vendor/gems", here)
|
20
|
-
Dir["#{gem_dir}/**/lib"].each do |libdir|
|
21
|
-
$:.unshift libdir
|
22
|
-
end
|
23
|
-
|
24
|
-
# inject any code in ~/.td/updated/vendor/gems over top
|
25
|
-
require 'td/updater'
|
26
|
-
TreasureData::Updater.inject_libpath
|
27
|
-
|
28
|
-
# start up the CLI
|
29
|
-
require 'td/command/runner'
|
30
|
-
exit TreasureData::Command::Runner.new.run ARGV
|
data/dist/resources/exe/td.bat
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
@ECHO OFF
|
2
|
-
|
3
|
-
:: determine if this is an NT operating system
|
4
|
-
if not "%~f0" == "~f0" goto WinNT
|
5
|
-
goto Win9x
|
6
|
-
|
7
|
-
:Win9x
|
8
|
-
@"%~dp0\..\ruby-1.9.3\bin\ruby.exe" "td" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
9
|
-
goto :EOF
|
10
|
-
|
11
|
-
:WinNT
|
12
|
-
@"%~dp0\..\ruby-1.9.3\bin\ruby.exe" "%~dpn0" %*
|
13
|
-
goto :EOF
|
data/dist/resources/exe/td.iss
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
[Setup]
|
2
|
-
AppName=Treasure Data
|
3
|
-
AppVersion=<%= version %>
|
4
|
-
DefaultDirName={pf}\Treasure Data
|
5
|
-
DefaultGroupName=Treasure Data
|
6
|
-
Compression=lzma2
|
7
|
-
SolidCompression=yes
|
8
|
-
OutputBaseFilename=<%= basename %>
|
9
|
-
OutputDir=<%= outdir %>
|
10
|
-
ChangesEnvironment=yes
|
11
|
-
UsePreviousSetupType=no
|
12
|
-
AlwaysShowComponentsList=no
|
13
|
-
|
14
|
-
; For Ruby expansion ~ 32MB (installed) - 12MB (installer)
|
15
|
-
ExtraDiskSpaceRequired=20971520
|
16
|
-
|
17
|
-
[Types]
|
18
|
-
Name: client; Description: "Full Installation";
|
19
|
-
Name: custom; Description: "Custom Installation"; flags: iscustom
|
20
|
-
|
21
|
-
[Components]
|
22
|
-
Name: "toolbelt"; Description: "Treasure Data Toolbelt"; Types: "client custom"
|
23
|
-
Name: "toolbelt/client"; Description: "Treasure Data Client"; Types: "client custom"; Flags: fixed
|
24
|
-
|
25
|
-
[Files]
|
26
|
-
Source: "td\*.*"; DestDir: "{app}"; Flags: recursesubdirs; Components: "toolbelt/client"
|
27
|
-
Source: "installers\rubyinstaller.exe"; DestDir: "{tmp}"; Components: "toolbelt/client"
|
28
|
-
|
29
|
-
[Icons]
|
30
|
-
Name: "{group}\Treasure Data command prompt"; Filename: "{app}\td-cmd.bat"
|
31
|
-
|
32
|
-
[Registry]
|
33
|
-
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: "expandsz"; ValueName: "Path"; \
|
34
|
-
ValueData: "{olddata};{app}\bin"; Check: NeedsAddPath(ExpandConstant('{app}\bin'))
|
35
|
-
Root: HKCU; Subkey: "Environment"; ValueType: "expandsz"; ValueName: "HOME"; \
|
36
|
-
ValueData: "%USERPROFILE%"; Flags: createvalueifdoesntexist
|
37
|
-
|
38
|
-
[Run]
|
39
|
-
Filename: "{tmp}\rubyinstaller.exe"; Parameters: "/verysilent /noreboot /nocancel /noicons /dir=""{app}/ruby-1.9.3"""; \
|
40
|
-
Flags: shellexec waituntilterminated; StatusMsg: "Installing Ruby"; Components: "toolbelt/client"
|
41
|
-
; Filename: "{app}\td-cmd.bat"; Description: "Run command prompt"; Flags: postinstall
|
42
|
-
|
43
|
-
[Code]
|
44
|
-
|
45
|
-
function NeedsAddPath(Param: string): boolean;
|
46
|
-
var
|
47
|
-
OrigPath: string;
|
48
|
-
begin
|
49
|
-
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
|
50
|
-
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
|
51
|
-
'Path', OrigPath)
|
52
|
-
then begin
|
53
|
-
Result := True;
|
54
|
-
exit;
|
55
|
-
end;
|
56
|
-
// look for the path with leading and trailing semicolon
|
57
|
-
// Pos() returns 0 if not found
|
58
|
-
Result := Pos(';' + Param + ';', ';' + OrigPath + ';') = 0;
|
59
|
-
end;
|
60
|
-
|
61
|
-
function IsProgramInstalled(Name: string): boolean;
|
62
|
-
var
|
63
|
-
ResultCode: integer;
|
64
|
-
begin
|
65
|
-
Result := Exec(Name, 'version', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
|
66
|
-
end;
|