scaffoldhub 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scaffoldhub (0.0.13)
4
+ scaffoldhub (0.0.14)
5
5
  rails
6
6
 
7
7
  GEM
@@ -6,6 +6,6 @@ require 'scaffoldhub/helper'
6
6
  require 'scaffoldhub/runner'
7
7
 
8
8
  module Scaffoldhub
9
- VERSION = '0.0.13'
9
+ VERSION = '0.0.14'
10
10
  SCAFFOLD_HUB_SERVER = 'www.scaffoldhub.org'
11
11
  end
@@ -21,10 +21,13 @@ module Scaffoldhub
21
21
  end
22
22
  rescue Errno::ENOENT => e
23
23
  say_status :error, e.message, :red
24
+ raise e
24
25
  rescue Scaffoldhub::NotFoundException => e
25
- say_status :error, "HTTP 404 not found error for #{e.message}", :red
26
+ say_status :error, "HTTP 404 error - did you misspell \"#{scaffold_name}\"?", :red
27
+ raise e
26
28
  rescue Scaffoldhub::NetworkErrorException => e
27
29
  say_status :error, "HTTP error connecting to #{e.message}", :red
30
+ raise e
28
31
  end
29
32
  end
30
33
 
@@ -34,13 +37,13 @@ module Scaffoldhub
34
37
  template_file.download! unless template_file.nil?
35
38
  rescue Errno::ENOENT => e
36
39
  say_status :error, e.message, :red
37
- nil
40
+ raise e
38
41
  rescue Scaffoldhub::NotFoundException => e
39
- say_status :error, "HTTP 404 not found error for #{e.message}", :red
40
- nil
42
+ say_status :error, "HTTP 404 error - did you misspell \"#{scaffold_name}\"?", :red
43
+ raise e
41
44
  rescue Scaffoldhub::NetworkErrorException => e
42
45
  say_status :error, "HTTP error connecting to #{e.message}", :red
43
- nil
46
+ raise e
44
47
  end
45
48
  end
46
49
 
@@ -51,13 +54,13 @@ module Scaffoldhub
51
54
  end
52
55
  rescue Errno::ENOENT => e
53
56
  say_status :error, e.message, :red
54
- nil
57
+ raise e
55
58
  rescue Scaffoldhub::NotFoundException => e
56
- say_status :error, "HTTP 404 not found error for #{e.message}", :red
57
- nil
59
+ say_status :error, "HTTP 404 error - did you misspell \"#{scaffold_name}\"?", :red
60
+ raise e
58
61
  rescue Scaffoldhub::NetworkErrorException => e
59
62
  say_status :error, "HTTP error connecting to #{e.message}", :red
60
- nil
63
+ raise e
61
64
  end
62
65
  end
63
66
 
@@ -57,7 +57,7 @@ describe Scaffoldhub::Helper do
57
57
  it 'should raise an exception if the template file doesn\'t exist' do
58
58
  File.expects(:exists?).with('/some/path/src1').returns(false)
59
59
  @gen.expects(:say_status).with(:error, 'No such file or directory - /some/path/src1', :red)
60
- @gen.copy_files
60
+ lambda { @gen.copy_files }.should raise_error(Errno::ENOENT)
61
61
  end
62
62
  end
63
63
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffoldhub
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 14
10
+ version: 0.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Shaughnessy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-27 00:00:00 -04:00
18
+ date: 2011-05-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency