Permalink
Browse files

+ Uses BasicObject now.

  • Loading branch information...
1 parent 9d49141 commit d345d34e8175a4fbcc602df79e78bd81e63f98e8 @kschiess committed Mar 4, 2011
Showing with 9 additions and 5 deletions.
  1. +6 −0 HISTORY.txt
  2. +1 −2 README
  3. +0 −1 lib/floor_manager/employee.rb
  4. +2 −2 lib/floor_manager/employee/dsl.rb
View
@@ -1,4 +1,10 @@
+== 0.1.2 / ???
+
+ * Now only works with Ruby 1.9s BasicObject. BlankSlate has outstanding
+ bugs that prevent this from working. (see
+ https://github.com/masover/blankslate/issues#issue/2)
+
== 0.1.1 / 2010-09-21
* Now uses rspec2 for tests.
View
3 README
@@ -43,8 +43,7 @@ Then just require it atop of your floor definitions as follows:
COMPATIBILITY
-This has only been tested with rails 2. Both Ruby 1.8 and Ruby 1.9 should
-work.
+Has been tested with Ruby 1.9.2 and ActiveRecord/DataMapper.
STATUS
@@ -1,6 +1,5 @@
require 'active_support/core_ext/string/inflections'
-require 'blankslate'
module FloorManager::Employee
@@ -1,12 +1,12 @@
module FloorManager::Employee
- class DSL < BlankSlate
+ class DSL < BasicObject
# A proxy that is the receiver of #set and #append in a construct like this:
#
# one :spy do
# relationship.set :gun
# end
#
- class AssocProxy < Struct.new(:employee, :field, :dsl)
+ class AssocProxy < ::Struct.new(:employee, :field, :dsl)
def set(*create_args)
dsl._add_attribute AttributeAction::AssocSet.new(field, create_args)
end

0 comments on commit d345d34

Please sign in to comment.