maintain 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -144,7 +144,7 @@ module Maintain
144
144
  end
145
145
 
146
146
  def maintainee
147
- Object.const_get(@maintainee)
147
+ @maintainee.split('::').inject(Object) {|mod, const| mod.const_get(const) }
148
148
  end
149
149
 
150
150
  def method_free?(method_name, class_method = false)
@@ -1,4 +1,4 @@
1
- # Configuration point number one: setting and configuring states
1
+ # Specs for aggregation of state
2
2
 
3
3
  require 'lib/maintain'
4
4
 
data/spec/bitwise_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Basic class method specs
1
+ # Tests for the bitwise / bitmask functionality.
2
2
 
3
3
  require 'lib/maintain'
4
4
 
data/spec/hooks_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Comparing state values
1
+ # Hooks on state entrance / exit. Needs more attention.
2
2
 
3
3
  require 'lib/maintain'
4
4
 
data/spec/integer_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Basic class method specs
1
+ # Tests on integer-specific functionality
2
2
 
3
3
  require 'lib/maintain'
4
4
 
@@ -12,7 +12,7 @@ describe Maintain do
12
12
 
13
13
  # Basic overview / class methods
14
14
  it "should extend things that include it" do
15
- MaintainTest.should respond_to(:maintains)
15
+ MaintainTest.should respond_to(:maintain)
16
16
  end
17
17
 
18
18
  it "should alias the maintain method as `maintains`" do
@@ -1,4 +1,4 @@
1
- # Comparing state values
1
+ # Specs for assigning states
2
2
 
3
3
  require 'lib/maintain'
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flip Sasser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-19 00:00:00 -05:00
12
+ date: 2010-03-22 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15