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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a0a6add38d6b83213e2f2177645be64c691ce22
4
- data.tar.gz: 6ffb832c4cc1104578cbeabb8cb4307a1791b487
3
+ metadata.gz: 84498078ec4cc6f821a23903c5d3b39fbc2d7cf5
4
+ data.tar.gz: 9f066774d16608373eb6c4e73fb5117b9042ddf5
5
5
  SHA512:
6
- metadata.gz: 49edd354228950d99f8d793adbec9da0f6e4955c514a46bfd3ad13255995fb9418c9a0f6edd5518cd78161a57a372e89e1406e01fed459e7d7c92dd8e061e5ad
7
- data.tar.gz: cd9af66422ed8f04ba180b733ccb96f2258b8cad585825435bd6dd17fd2c28c54787d86984c525b7a57a69019b84e7f408118bbc09a40a133a1b31dd20b72282
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
- Please check the URL and try again.
166
+
167
+ #{ge.message}
167
168
  ERROR
168
169
  end
169
170
 
@@ -16,5 +16,5 @@
16
16
 
17
17
  module Mortar
18
18
  # see http://semver.org/
19
- VERSION = "0.12.1"
19
+ VERSION = "0.12.2"
20
20
  end
@@ -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.1
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-10-31 00:00:00.000000000 Z
11
+ date: 2013-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc