kelredd-gemsconfig 0.1.1 → 0.2.0

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.
@@ -7,15 +7,18 @@ module Gemsconfig
7
7
  def initialize(name, attrs)
8
8
  attrs ||= {}
9
9
  @name = name
10
- @lib = attrs[:lib] || attrs['lib']
10
+ @lib = attrs[:lib]
11
+ @lib = attrs['lib'] if @lib.nil?
11
12
  @version = attrs[:version] || attrs['version']
12
13
  @source = attrs[:source] || attrs['source']
13
14
  end
14
15
 
15
16
  def load
16
17
  begin
17
- gem name, version_spec if @version
18
- require (@lib || @name)
18
+ unless @lib == false
19
+ gem name, version_spec if @version
20
+ require (@lib || @name)
21
+ end
19
22
  rescue LoadError => err
20
23
  raise LoadError, "\nGemsconfig: could not load configured gem '#{@name}'#{" (#{@lib})" if @lib} - #{err.message}\n\nTry:\nrake gemsconfig:install\n--or--\n#{install_gem_command}\n\n"
21
24
  end
@@ -2,8 +2,8 @@ module Gemsconfig
2
2
  module Version
3
3
 
4
4
  MAJOR = 0
5
- MINOR = 1
6
- TINY = 1
5
+ MINOR = 2
6
+ TINY = 0
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-gemsconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-05 00:00:00 -07:00
12
+ date: 2009-06-25 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15