gem2pkg 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/gem2pkg.gemspec +1 -1
- data/lib/gem2pkg.rb +7 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -6,7 +6,7 @@ My primary motivation for creating this was to bundle the 'chef' gem and its dep
|
|
6
6
|
|
7
7
|
## Requirements
|
8
8
|
|
9
|
-
This gem requires rubygems 1.
|
9
|
+
This gem requires rubygems 1.8.0 or greater to be installed.
|
10
10
|
|
11
11
|
If rvm is installed, use gem2pkg with the system ruby (rvm use system). Since we're building packages to be installed on OSX systems that do not not have RVM installed, we want to be safe and use the same environment to build the package.
|
12
12
|
|
data/gem2pkg.gemspec
CHANGED
data/lib/gem2pkg.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'yaml'
|
4
4
|
require 'rubygems'
|
5
5
|
require 'rubygems/dependency_installer'
|
6
6
|
require 'erb'
|
@@ -48,6 +48,11 @@ class Gem2Pkg
|
|
48
48
|
return -2
|
49
49
|
end
|
50
50
|
|
51
|
+
if Gem::VERSION < "1.8.0"
|
52
|
+
puts "You have rubygems #{Gem::VERSION} installed-- gem2pkg requires rubygems >= 1.8.0"
|
53
|
+
return -3
|
54
|
+
end
|
55
|
+
|
51
56
|
gemspec = Gem::Specification.find_by_name(gemname)
|
52
57
|
if gemspec == nil
|
53
58
|
dep = Gem::Dependency.new(gemname)
|
@@ -60,7 +65,7 @@ class Gem2Pkg
|
|
60
65
|
|
61
66
|
puts "Gem is not installed locally-- install with:"
|
62
67
|
puts "gem install #{gemname} -v #{gemspec.version}"
|
63
|
-
return -
|
68
|
+
return -5
|
64
69
|
end
|
65
70
|
|
66
71
|
puts "Making installer for gem #{gemname} (#{gemspec.version})"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem2pkg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Schumacher
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements: []
|
65
65
|
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.8.
|
67
|
+
rubygems_version: 1.8.15
|
68
68
|
signing_key:
|
69
69
|
specification_version: 3
|
70
70
|
summary: OSX packages from Ruby Gems!
|