make-rubygem-debs 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/make-rubygem-debs +26 -5
  2. metadata +6 -6
@@ -41,11 +41,32 @@ end
41
41
 
42
42
  require_relative '/home/chris/make-rubygem-debs/lib/make-rubygem-debs'
43
43
 
44
+
45
+ help_text = "http://rubygems.org/gems/make-rubygem-debs
46
+
47
+ gem install make-rubygem-debs
48
+
49
+ This is a simple script to generate .debs for all of the gems in a
50
+ Bundler-enabled Ruby on Rails webapp, using fpm. To use it:
51
+
52
+ $ make-rubygem-debs /path/to/my/rails/app
53
+
54
+ It will create a 'rubygem-debs' sub-directory and make debs for each rubygem
55
+ dependency there for you. You can then do whatever you need to with them."
56
+
57
+
44
58
  if __FILE__ == $PROGRAM_NAME
45
- topdir = if not ARGV.empty?
46
- ARGV[0]
47
- else
48
- Dir.pwd
49
- end
59
+ topdir = Dir.pwd
60
+ if not ARGV.empty?
61
+ if %w(-h --help -?).include? ARGV[0]
62
+ puts help_text
63
+ exit 0
64
+ elsif File.exist? ARGV[0] and File.ftype(ARGV[0]) == 'directory'
65
+ topdir = ARGV[0]
66
+ else
67
+ raise ArgumentError, "Not a directory: #{ARGV[0]}."
68
+ end
69
+ end
70
+
50
71
  MakeRubygemDebs::make_rubygem_debs topdir
51
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: make-rubygem-debs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-24 00:00:00.000000000 Z
12
+ date: 2012-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fpm
16
- requirement: &8148040 !ruby/object:Gem::Requirement
16
+ requirement: &10353000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *8148040
24
+ version_requirements: *10353000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &8147580 !ruby/object:Gem::Requirement
27
+ requirement: &10352300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *8147580
35
+ version_requirements: *10352300
36
36
  description: A simple script to generate .debs for all of the gems in a Bundler-enabled
37
37
  RoR app, using fpm.
38
38
  email: cgore@cgore.com