diff --git a/lib/strokedb.rb b/lib/strokedb.rb index 2b93ad1f..819df360 100644 --- a/lib/strokedb.rb +++ b/lib/strokedb.rb @@ -20,7 +20,7 @@ module StrokeDB # Coverage threshold - bump this float anytime your changes increase the spec coverage # DO NOT LOWER THIS NUMBER. EVER. - COVERAGE = 91.9 + COVERAGE = 92 # UUID regexp (like 1e3d02cc-0769-4bd8-9113-e033b246b013) UUID_RE = /([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/ diff --git a/lib/strokedb/util/attach_dsl.rb b/lib/strokedb/util/attach_dsl.rb index 4f2f94b6..75de242c 100644 --- a/lib/strokedb/util/attach_dsl.rb +++ b/lib/strokedb/util/attach_dsl.rb @@ -26,33 +26,4 @@ def dsl end end -if $0 == __FILE__ - - module MetaDSL - def on_initialize(&block) - store_dsl_options("on_initialize", block) - end - end - - module HasMany - attach_dsl MetaDSL - def has_many(*args) - store_dsl_options("has_many", { :module => HasMany, :args => args } ) - puts "has_many defined in #{self.inspect}" - end - on_initialize do |doc| - blah_blah - end - end - - module App1 - attach_dsl HasMany - has_many :blah, :blah => :blah - end - - p App1.dsl - p App1.dsl["has_many"][:module].dsl - -end -