configlet 2.1.0 → 2.1.1

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.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/lib/configlet.rb +2 -2
  3. metadata +3 -3
@@ -1,3 +1,7 @@
1
+ === 2.1.1 / 2010-12-17
2
+
3
+ * Don't make decisions based on class when determining prefix.
4
+
1
5
  === 2.1.0 / 2010-12-14
2
6
 
3
7
  * Make config prefix optional, default to class name (ish).
@@ -13,7 +13,7 @@ module Configlet
13
13
 
14
14
  # Duh.
15
15
 
16
- VERSION = "2.1.0"
16
+ VERSION = "2.1.1"
17
17
 
18
18
  I = lambda { |v| v } #:nodoc:
19
19
 
@@ -88,7 +88,7 @@ module Configlet
88
88
 
89
89
  def config prefix = nil, &block
90
90
  self.prefix = prefix ||
91
- (Class === self ? self : self.class).
91
+ (respond_to?(:name) ? self : self.class).
92
92
  name.split("::").last.downcase.to_sym
93
93
 
94
94
  instance_eval(&block) if block_given?
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 1
8
- - 0
9
- version: 2.1.0
8
+ - 1
9
+ version: 2.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Barnette
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-14 00:00:00 -08:00
17
+ date: 2010-12-17 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency