scaffoldhub 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/scaffoldhub.rb +1 -1
- data/lib/scaffoldhub/helper.rb +12 -9
- data/spec/helper_spec.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/scaffoldhub.rb
CHANGED
data/lib/scaffoldhub/helper.rb
CHANGED
@@ -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
|
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
|
-
|
40
|
+
raise e
|
38
41
|
rescue Scaffoldhub::NotFoundException => e
|
39
|
-
say_status :error, "HTTP 404
|
40
|
-
|
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
|
-
|
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
|
-
|
57
|
+
raise e
|
55
58
|
rescue Scaffoldhub::NotFoundException => e
|
56
|
-
say_status :error, "HTTP 404
|
57
|
-
|
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
|
-
|
63
|
+
raise e
|
61
64
|
end
|
62
65
|
end
|
63
66
|
|
data/spec/helper_spec.rb
CHANGED
@@ -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:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
18
|
+
date: 2011-05-29 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|