gem_tools 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.0.6 2008-09-26
2
+ * Fix the setup routine
3
+ * Add the missing gems.template.yml to the manifest
4
+ * Handle a missing gems.yml better
5
+
1
6
  == 0.0.5 2008-09-02
2
7
  * Fix the help message
3
8
 
@@ -8,10 +13,8 @@
8
13
  * Fix the borked binary, not sure why this didn't show up previously
9
14
 
10
15
  == 0.0.2 2008-08-06
11
-
12
16
  * Add the bin files to the gem...:
13
17
 
14
18
  == 0.0.1 2008-08-01
15
-
16
19
  * Ported Rails plugin to a Gem:
17
20
  * Initial release
data/bin/gemtools CHANGED
@@ -33,6 +33,8 @@ Commands are:
33
33
  dryrun
34
34
  Print out the commands that would have been run
35
35
 
36
+ setup
37
+ generate a started gems.yml
36
38
  Options are:
37
39
  BANNER
38
40
 
@@ -50,8 +52,8 @@ BANNER
50
52
  if MANDATORY_OPTIONS && MANDATORY_OPTIONS.find { |option| options[option.to_sym].nil? }
51
53
  puts opts; exit
52
54
  end
53
- end.parse!
54
55
 
55
- OPTIONS = options
56
+ OPTIONS = opts
57
+ end.parse!
56
58
 
57
59
  GemTools.run command
@@ -0,0 +1,16 @@
1
+ # specify an alternate gems repository
2
+ # source: http://local_mirror.example.com
3
+ # specify a different gem command
4
+ # gem_command: 'jruby -S gem'
5
+ gems:
6
+ # - name: postgres
7
+ # # the version to use
8
+ # version: '0.7.1'
9
+ # # use a specfic source URL
10
+ # source: 'http://mongrel.rubyforge.org/releases'
11
+ # # load with GemTools.load_gems
12
+ # load: true
13
+ # # any extra config that needs to be passed to gem install
14
+ # config: '--with-pgsql-include-dir=/usr/local/pgsql/include --with-pgsql-lib-dir=/usr/local/pgsql/lib'
15
+ # # require name is different than the gem name
16
+ # require_name: foo-bar
@@ -2,7 +2,7 @@ module GemTools
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/gem_tools.rb CHANGED
@@ -5,7 +5,7 @@ module GemTools
5
5
  extend self
6
6
 
7
7
  def run(cmd)
8
- send(cmd.to_sym) rescue help
8
+ send(cmd.to_sym)# rescue help
9
9
  end
10
10
 
11
11
  def setup
@@ -43,7 +43,10 @@ module GemTools
43
43
  require 'yaml'
44
44
  require 'erb'
45
45
  config_file = find_config
46
- raise 'Could not find a gems.yml, checked . and ./config' unless File.exist?(config_file)
46
+ unless config_file
47
+ puts 'Could not find a gems.yml, checked . and ./config'
48
+ exit 1
49
+ end
47
50
  YAML.load(ERB.new(File.open(config_file).read).result)
48
51
  end
49
52
 
@@ -117,6 +120,7 @@ module GemTools
117
120
  config_file = File.join(dir, 'gems.yml')
118
121
  return config_file if File.exist?(config_file)
119
122
  end
123
+ nil
120
124
  end
121
125
  end
122
126
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Moen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-09 00:00:00 -05:00
12
+ date: 2008-09-26 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,7 @@ files:
42
42
  - lib/gem_tools.rb
43
43
  - lib/gem_tools/version.rb
44
44
  - bin/gemtools
45
+ - config/gems.template.yml
45
46
  has_rdoc: true
46
47
  homepage: http://underpantsgnome.rubyforge.org
47
48
  post_install_message: |