credentials 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.4.1 / 2010-01-25
2
+
3
+ * Minor patch to Rulebook fo metaclass support.
4
+
1
5
  === 2.4.0 / 2010-01-25
2
6
 
3
7
  * Implemented Foo.metaclass.credentials { |foo| ... } to allow
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.4.1
data/credentials.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{credentials}
8
- s.version = "2.4.0"
8
+ s.version = "2.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Powell"]
@@ -18,11 +18,11 @@ module Credentials
18
18
  }.freeze
19
19
 
20
20
  def initialize(klass)
21
- self.klass = klass
22
- superklass = if klass.to_s =~ /^#<Class:#<([\w_]+)/ # there must be a better way
23
- $1.constantize
21
+ if klass.to_s =~ /^#<Class:#<([\w_]+(?:\:\:[\w_]+)*)/ # there must be a better way
22
+ self.klass = superklass = $1.constantize
24
23
  else
25
- klass.superclass
24
+ self.klass = klass
25
+ superklass = klass.superclass
26
26
  end
27
27
 
28
28
  @rules = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Powell