mortar 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mortar/plugin.rb +3 -2
- data/lib/mortar/version.rb +1 -1
- data/spec/mortar/plugin_spec.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84498078ec4cc6f821a23903c5d3b39fbc2d7cf5
|
4
|
+
data.tar.gz: 9f066774d16608373eb6c4e73fb5117b9042ddf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa8353b19c786213a84e2de3e4aacc818aca11266092655b456418eec95e7a6421a83fb26ade16bcc664fd8950aeaa84a7564fa5660f35f311b25a1a881b75a3
|
7
|
+
data.tar.gz: aafd11d89346694c04a41a77ce9abb2c30a6cf4316054901524ddc9f823a636e6962180c28340c08dec4449e24fa5d3a6c8bc9d6b79a8acd0137df6d5ea991e3
|
data/lib/mortar/plugin.rb
CHANGED
@@ -159,11 +159,12 @@ ERROR
|
|
159
159
|
Dir.chdir(self.class.directory) do
|
160
160
|
begin
|
161
161
|
git.git("clone #{uri}", check_success=true, check_git_directory=false)
|
162
|
-
rescue Mortar::Git::GitError
|
162
|
+
rescue Mortar::Git::GitError => ge
|
163
163
|
FileUtils.rm_rf path
|
164
164
|
raise Mortar::Plugin::ErrorInstallingPlugin, <<-ERROR
|
165
165
|
Unable to install plugin #{name}.
|
166
|
-
|
166
|
+
|
167
|
+
#{ge.message}
|
167
168
|
ERROR
|
168
169
|
end
|
169
170
|
|
data/lib/mortar/version.rb
CHANGED
data/spec/mortar/plugin_spec.rb
CHANGED
@@ -33,6 +33,19 @@ module Mortar
|
|
33
33
|
Plugin.list.should include 'plugin2'
|
34
34
|
end
|
35
35
|
|
36
|
+
it "gives good error message when install fails" do
|
37
|
+
begin
|
38
|
+
Plugin.new("bad_plugin").install
|
39
|
+
rescue Mortar::Plugin::ErrorInstallingPlugin => e
|
40
|
+
e.message.should == <<-MESSAGE
|
41
|
+
Unable to install plugin bad_plugin.
|
42
|
+
|
43
|
+
Error executing 'git clone bad_plugin':
|
44
|
+
fatal: repository 'bad_plugin' does not exist
|
45
|
+
MESSAGE
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
36
49
|
it "installs pulling from the plugin url" do
|
37
50
|
plugin_folder = "/tmp/mortar_plugin"
|
38
51
|
FileUtils.rm_rf(plugin_folder)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mortar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mortar Data
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|