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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/gem-dependencies.gemspec +1 -1
- data/lib/rubygems/gem_dependencies.rb +7 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76099a530e8a135d8efb5e3539fe5fabf055b891
|
4
|
+
data.tar.gz: c99e09f218d659dbedf02a70ff59d5e217e5b20e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 926943656f11d43aefcc6abfb5eef18ba1afe40edc9c6e7fbab57b7fd379ed21837cb405e6f32889e36f7466b52a5fd995dc6cbc2f3c2e654e2a483abc871f56
|
7
|
+
data.tar.gz: d5bcd47e8f61137459c2a7527152ea170fb51ad588afc0c7ba30da72e6e5ff076b51cb17955448d02d6808bba71297b66d6e49b37cc6275795b5c5b7df174f60
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/gem-dependencies.gemspec
CHANGED
@@ -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
|
+
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
|
49
|
-
|
50
|
-
|
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
metadata.gz.sig
CHANGED
Binary file
|