specific_install 0.2.12 → 0.2.13

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: 6358dbe68b20355e3a6fa98e5d13091200fe5cc7
4
- data.tar.gz: 4890a7e41dcb98300bfdcff0d5dd27f0ee037117
3
+ metadata.gz: 1b4150e9945dfd11ae1805180cfb553882fc4b07
4
+ data.tar.gz: 05184004d0b88f47e6a5048874f38c76cd6aac99
5
5
  SHA512:
6
- metadata.gz: 0fb631c434073ffe259bc666bfdc7ab3541759c95264b614d6cb4f92a2858cd9218cd78f050b4467107098c47560ff8830f441278fdd5cec20e0ece8d970ab1f
7
- data.tar.gz: 9afbdd54d15ac02b5050651baeaa1b5644afffe23f8a1eaf9b842c12490b1b88910b1f4e55ad28ea97c6bbf5c09d09140335aabcff46cf1271a224dc74b47aea
6
+ metadata.gz: ff5498b13499b77a2e9835568fa9a2c332f599c2c9f4c4b8e0cf4ef27192477bcb5bbd207293502eb65f04f2f65a7eb209a30a83cbad5daba0d99c3692fd3e0f
7
+ data.tar.gz: 15e3c433ecb0d6913cb6195278430a5bdcad080cc4cbb786ba342244deead241b459e5d9da7d535557cb4051cdbaa643b30fb792aa1d4477bc6f3acb4d4270d8
@@ -47,16 +47,24 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
47
47
  end
48
48
  end
49
49
 
50
+ def break_unless_git_present
51
+ unless system("which git")
52
+ abort("Please install git before using a git based link for specific_install")
53
+ end
54
+ end
55
+
50
56
  def determine_source_and_install
51
57
  case @loc
52
58
  when /^https?(.*)\.gem$/
53
59
  install_gem
54
60
  when /\.git$/
61
+ break_unless_git_present
55
62
  install_git
56
63
  when /^https?(.*)$/
64
+ break_unless_git_present
57
65
  install_http_repo
58
- # install_gem
59
66
  when %r(.*/.*)
67
+ break_unless_git_present
60
68
  install_shorthand
61
69
  else
62
70
  warn 'Error: must end with .git to be a git repository' +
@@ -1,3 +1,3 @@
1
1
  module SpecificInstall
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specific_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-02 00:00:00.000000000 Z
12
+ date: 2015-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: backports
@@ -160,3 +160,4 @@ summary: rubygems plugin that allows you you to install a gem from from its gith
160
160
  test_files:
161
161
  - spec/spec_helper.rb
162
162
  - spec/specific_install_spec.rb
163
+ has_rdoc: