sprout 0.7.241-mswin32 → 0.7.244-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sprout.rb +1 -1
- data/lib/sprout/archive_unpacker.rb +12 -2
- data/lib/sprout/tasks/sftp_task.rb +1 -1
- data/lib/sprout/tasks/tool_task.rb +1 -1
- data/lib/sprout/version.rb +1 -1
- data/rakefile.rb +1 -1
- metadata +27 -4
data/lib/sprout.rb
CHANGED
@@ -34,7 +34,7 @@ require 'sprout/bundle_resolver'
|
|
34
34
|
require 'rubygems/installer'
|
35
35
|
require 'rubygems/source_info_cache'
|
36
36
|
require 'rubygems/version'
|
37
|
-
require '
|
37
|
+
require 'digest/md5'
|
38
38
|
|
39
39
|
require 'sprout/tool_task_model'
|
40
40
|
require 'sprout/project_model'
|
@@ -36,6 +36,8 @@ module Sprout
|
|
36
36
|
unpack_zip(file_name, dir)
|
37
37
|
when 'targz'
|
38
38
|
unpack_targz(file_name, dir)
|
39
|
+
when 'tbz2'
|
40
|
+
unpack_tbz2(file_name, dir)
|
39
41
|
when 'dmg'
|
40
42
|
unpack_dmg(file_name, dir)
|
41
43
|
when 'exe'
|
@@ -107,8 +109,16 @@ module Sprout
|
|
107
109
|
path = File.expand_path(dir)
|
108
110
|
return File.join(path, basename)
|
109
111
|
end
|
110
|
-
|
112
|
+
|
113
|
+
def unpack_tbz2(tgz_file, dir)
|
114
|
+
unpack_tar_zip tgz_file, dir, 'tar.bz2'
|
115
|
+
end
|
116
|
+
|
111
117
|
def unpack_targz(tgz_file, dir)
|
118
|
+
unpack_tar_zip tgz_file, dir, 'tar.gz'
|
119
|
+
end
|
120
|
+
|
121
|
+
def unpack_tar_zip(tgz_file, dir, ext)
|
112
122
|
if(!File.exists?(dir))
|
113
123
|
FileUtils.makedirs(dir)
|
114
124
|
end
|
@@ -117,7 +127,7 @@ module Sprout
|
|
117
127
|
|
118
128
|
# Recurse and unpack gzipped children (Adobe did this double
|
119
129
|
# gzip with the Linux FlashPlayer for some reason)
|
120
|
-
Dir.glob("#{dir}
|
130
|
+
Dir.glob("#{dir}/**/*.#{ext}").each do |child|
|
121
131
|
if(child != tgz_file && dir != File.dirname(child))
|
122
132
|
unpack_targz(child, File.dirname(child))
|
123
133
|
end
|
@@ -125,7 +125,7 @@ module Sprout
|
|
125
125
|
if(get_confirmation)
|
126
126
|
puts ">> Connecting to Remote Server: #{@username}@#{@host}:#{@remote_path}"
|
127
127
|
|
128
|
-
Net::SFTP.start(@host, @username, @password) do |sftp|
|
128
|
+
Net::SFTP.start(@host, @username, :password => @password, :keys => []) do |sftp|
|
129
129
|
begin
|
130
130
|
dir = sftp.opendir(@remote_path)
|
131
131
|
rescue Net::SFTP::Operations::StatusException
|
@@ -335,7 +335,7 @@ module Sprout
|
|
335
335
|
if(param_hash.has_key? other_param.to_s)
|
336
336
|
param_hash[name.to_s] = param_hash[other_param.to_s]
|
337
337
|
else
|
338
|
-
raise ToolTaskError.new("TaskBase.
|
338
|
+
raise ToolTaskError.new("TaskBase.add_param_alias called with")
|
339
339
|
end
|
340
340
|
end
|
341
341
|
|
data/lib/sprout/version.rb
CHANGED
data/rakefile.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 491
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
9
|
+
- 244
|
10
|
+
version: 0.7.244
|
10
11
|
platform: mswin32
|
11
12
|
authors:
|
12
13
|
- Luke Bayes
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-05-28 00:00:00 -07:00
|
18
19
|
default_executable: sprout
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rubyzip
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 57
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
- 9
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: archive-tar-minitar
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 9
|
41
46
|
segments:
|
42
47
|
- 0
|
43
48
|
- 5
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: rubigen
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - "="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 11
|
55
62
|
segments:
|
56
63
|
- 1
|
57
64
|
- 5
|
@@ -63,9 +70,11 @@ dependencies:
|
|
63
70
|
name: net-sftp
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ">="
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 7
|
69
78
|
segments:
|
70
79
|
- 2
|
71
80
|
- 0
|
@@ -77,9 +86,11 @@ dependencies:
|
|
77
86
|
name: net-ssh
|
78
87
|
prerelease: false
|
79
88
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
80
90
|
requirements:
|
81
91
|
- - ">="
|
82
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: 41
|
83
94
|
segments:
|
84
95
|
- 2
|
85
96
|
- 0
|
@@ -91,9 +102,11 @@ dependencies:
|
|
91
102
|
name: rake
|
92
103
|
prerelease: false
|
93
104
|
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
94
106
|
requirements:
|
95
107
|
- - ">="
|
96
108
|
- !ruby/object:Gem::Version
|
109
|
+
hash: 3
|
97
110
|
segments:
|
98
111
|
- 0
|
99
112
|
version: "0"
|
@@ -103,9 +116,11 @@ dependencies:
|
|
103
116
|
name: win32-open3
|
104
117
|
prerelease: false
|
105
118
|
requirement: &id007 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
106
120
|
requirements:
|
107
121
|
- - "="
|
108
122
|
- !ruby/object:Gem::Version
|
123
|
+
hash: 29
|
109
124
|
segments:
|
110
125
|
- 0
|
111
126
|
- 2
|
@@ -117,9 +132,11 @@ dependencies:
|
|
117
132
|
name: net-sftp
|
118
133
|
prerelease: false
|
119
134
|
requirement: &id008 !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
120
136
|
requirements:
|
121
137
|
- - ">="
|
122
138
|
- !ruby/object:Gem::Version
|
139
|
+
hash: 7
|
123
140
|
segments:
|
124
141
|
- 2
|
125
142
|
- 0
|
@@ -131,9 +148,11 @@ dependencies:
|
|
131
148
|
name: net-ssh
|
132
149
|
prerelease: false
|
133
150
|
requirement: &id009 !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
134
152
|
requirements:
|
135
153
|
- - ">="
|
136
154
|
- !ruby/object:Gem::Version
|
155
|
+
hash: 41
|
137
156
|
segments:
|
138
157
|
- 2
|
139
158
|
- 0
|
@@ -211,23 +230,27 @@ rdoc_options:
|
|
211
230
|
require_paths:
|
212
231
|
- lib
|
213
232
|
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
214
234
|
requirements:
|
215
235
|
- - ">="
|
216
236
|
- !ruby/object:Gem::Version
|
237
|
+
hash: 3
|
217
238
|
segments:
|
218
239
|
- 0
|
219
240
|
version: "0"
|
220
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
+
none: false
|
221
243
|
requirements:
|
222
244
|
- - ">="
|
223
245
|
- !ruby/object:Gem::Version
|
246
|
+
hash: 3
|
224
247
|
segments:
|
225
248
|
- 0
|
226
249
|
version: "0"
|
227
250
|
requirements: []
|
228
251
|
|
229
252
|
rubyforge_project: sprout
|
230
|
-
rubygems_version: 1.3.
|
253
|
+
rubygems_version: 1.3.7
|
231
254
|
signing_key:
|
232
255
|
specification_version: 3
|
233
256
|
summary: Sprout is an open-source, cross-platform project generation, configuration and build tool, that currently suports ActionScript 2, ActionScript 3, Flex and AIR development.
|