gem-dependencies 0.1.5 → 0.1.6

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: 629db1d813ffb06c09816710072c443a9dfa0ab3
4
- data.tar.gz: 6d177aad6afd4ffe862110559eb2b5fc0367757f
3
+ metadata.gz: 76099a530e8a135d8efb5e3539fe5fabf055b891
4
+ data.tar.gz: c99e09f218d659dbedf02a70ff59d5e217e5b20e
5
5
  SHA512:
6
- metadata.gz: ccc32ab9282d058f1fd61d470251b6c7cc800a84d2955eaa7174fc606f126a5d05e179e20578ee04be258d68c3bf4b51aaf2ba60fd870aeefbea46226a843dcb
7
- data.tar.gz: 4da620bd16b9b2670c3b89b7424c167ae746d3f028a8b6ed7379919b0afc93db410409cf07647ca464f8c995eff4ab5ed8f07c951b234944198db8ab8320f17c
6
+ metadata.gz: 926943656f11d43aefcc6abfb5eef18ba1afe40edc9c6e7fbab57b7fd379ed21837cb405e6f32889e36f7466b52a5fd995dc6cbc2f3c2e654e2a483abc871f56
7
+ data.tar.gz: d5bcd47e8f61137459c2a7527152ea170fb51ad588afc0c7ba30da72e6e5ff076b51cb17955448d02d6808bba71297b66d6e49b37cc6275795b5c5b7df174f60
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "gem-dependencies"
5
- s.version = "0.1.5"
5
+ s.version = "0.1.6"
6
6
  s.summary = "RubyGems plugin to simplify installing binary gems on runtime systems."
7
7
  s.description = "This gem makes it easy to install binary gems on machines without a compiler."
8
8
  s.homepage = "https://github.com/shreeve/gem-dependencies"
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env ruby
2
-
3
1
  # =============================================================================
4
2
  # gem_dependencies.rb: Simplifies installing binary gems on runtime systems
5
3
  #
@@ -45,9 +43,13 @@ module Gem
45
43
  @@deps = YAML.load(fetch(env))['gems'] unless defined?(@@deps)
46
44
 
47
45
  case deps = @@deps[spec.name]
48
- when String
49
- when Array
50
- when Hash
46
+ when nil # no deps provided, assume one extension file relative to the index
47
+ path = File.join(File.dirname(URI.parse(env).path), "#{spec.full_name}.tar.gz")
48
+ path << "?raw=true" if path.begin_with?("https://github.com/")
49
+ deps = [path]
50
+ when String # string of space-delimited dependencies and extensions
51
+ when Array # array of dependencies and extensions
52
+ when Hash # hash of dependencies and extensions, indexed by version requirements
51
53
  reqs, deps = deps.find do |reqs, info|
52
54
  Gem::Requirement.new(reqs.split(',')).satisfied_by?(spec.version)
53
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
metadata.gz.sig CHANGED
Binary file