sprout 0.7.182-darwin → 0.7.183-darwin

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.

Binary file
@@ -73,11 +73,11 @@ module Sprout
73
73
  response = f.read
74
74
  progress.finish
75
75
  }
76
- rescue SocketError => e
77
- raise RemoteFileLoaderError.new("[ERROR] #{e.to_s}")
78
- rescue OpenURI::HTTPError => e
79
- raise RemoteFileLoaderError.new("[ERROR] Failed to load file from: '#{uri.to_s}'\n[REMOTE ERROR] #{e.io.read.strip}")
80
- rescue Errno::ECONNREFUSED => e
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
- if(File.exists?(fpath) && !File.directory?(fpath))
137
- hackpath = fpath + 'hack'
138
- zf.extract(e, hackpath)
139
- File.copy(hackpath, fpath)
140
- File.delete(hackpath)
141
- else
142
- zf.extract(e, fpath)
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 => e
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 e
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
- @project_lib ||= ProjectModel.instance.lib_dir
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
@@ -2,7 +2,7 @@ module Sprout
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 182
5
+ TINY = 183
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  MAJOR_MINOR = [MAJOR, MINOR].join('.')
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.182
4
+ version: 0.7.183
5
5
  platform: darwin
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-17 00:00:00 -07:00
12
+ date: 2008-05-23 00:00:00 -07:00
13
13
  default_executable: sprout
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -79,6 +79,7 @@ files:
79
79
  - samples/gem_wrap
80
80
  - samples/gem_wrap/rakefile.rb
81
81
  - bin/sprout
82
+ - lib/corelib.swc
82
83
  - lib/platform.rb
83
84
  - lib/progress_bar.rb
84
85
  - lib/sprout