sprout 0.7.182 → 0.7.183
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/corelib.swc +0 -0
- data/lib/sprout/remote_file_loader.rb +19 -15
- data/lib/sprout/tasks/library_task.rb +5 -1
- data/lib/sprout/version.rb +1 -1
- metadata +3 -2
data/lib/corelib.swc
ADDED
Binary file
|
@@ -73,11 +73,11 @@ module Sprout
|
|
73
73
|
response = f.read
|
74
74
|
progress.finish
|
75
75
|
}
|
76
|
-
rescue SocketError =>
|
77
|
-
raise RemoteFileLoaderError.new("[ERROR] #{
|
78
|
-
rescue OpenURI::HTTPError =>
|
79
|
-
raise RemoteFileLoaderError.new("[ERROR] Failed to load file from: '#{uri.to_s}'\n[REMOTE ERROR] #{
|
80
|
-
rescue Errno::ECONNREFUSED =>
|
76
|
+
rescue SocketError => sock_err
|
77
|
+
raise RemoteFileLoaderError.new("[ERROR] #{sock_err.to_s}")
|
78
|
+
rescue OpenURI::HTTPError => http_err
|
79
|
+
raise RemoteFileLoaderError.new("[ERROR] Failed to load file from: '#{uri.to_s}'\n[REMOTE ERROR] #{http_err.io.read.strip}")
|
80
|
+
rescue Errno::ECONNREFUSED => econ_err
|
81
81
|
raise Errno::ECONNREFUSED.new("[ERROR] Connection refused at: '#{uri.to_s}'")
|
82
82
|
end
|
83
83
|
|
@@ -133,24 +133,28 @@ module Sprout
|
|
133
133
|
# If you're going to use this code, be sure you extract
|
134
134
|
# into a new, empty directory as existing files will be
|
135
135
|
# clobbered...
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
136
|
+
begin
|
137
|
+
if(File.exists?(fpath) && !File.directory?(fpath))
|
138
|
+
hackpath = fpath + 'hack'
|
139
|
+
zf.extract(e, hackpath)
|
140
|
+
File.copy(hackpath, fpath)
|
141
|
+
File.delete(hackpath)
|
142
|
+
else
|
143
|
+
zf.extract(e, fpath)
|
144
|
+
end
|
145
|
+
rescue NotImplementedError => ni_err
|
146
|
+
puts "[WARNING] #{ni_err} for: #{e}"
|
143
147
|
end
|
144
148
|
end
|
145
149
|
end
|
146
|
-
rescue StandardError =>
|
150
|
+
rescue StandardError => err
|
151
|
+
FileUtils.rm_rf(dir)
|
147
152
|
if(retries < 3)
|
148
153
|
puts ">> [ZIP ERROR ENCOUNTERED] trying again with: #{dir}"
|
149
|
-
FileUtils.rm_rf(dir)
|
150
154
|
FileUtils.makedirs(dir)
|
151
155
|
retry
|
152
156
|
end
|
153
|
-
raise
|
157
|
+
raise err
|
154
158
|
end
|
155
159
|
end
|
156
160
|
end
|
@@ -62,7 +62,11 @@ module Sprout
|
|
62
62
|
#
|
63
63
|
# By default, libraries are installed into Sprout::ProjectModel +lib_dir+.
|
64
64
|
def project_lib
|
65
|
-
|
65
|
+
if(library_path.index('.swc'))
|
66
|
+
@project_lib ||= ProjectModel.instance.swc_dir
|
67
|
+
else
|
68
|
+
@project_lib ||= ProjectModel.instance.lib_dir
|
69
|
+
end
|
66
70
|
end
|
67
71
|
|
68
72
|
# Unlike other rake tasks, Library tasks are actually
|
data/lib/sprout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.183
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Bayes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-05-
|
12
|
+
date: 2008-05-23 00:00:00 -07:00
|
13
13
|
default_executable: sprout
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- samples/gem_wrap
|
71
71
|
- samples/gem_wrap/rakefile.rb
|
72
72
|
- bin/sprout
|
73
|
+
- lib/corelib.swc
|
73
74
|
- lib/platform.rb
|
74
75
|
- lib/progress_bar.rb
|
75
76
|
- lib/sprout
|