Permalink
Browse files

version bump. we do not longer require ActiveSupport.

  • Loading branch information...
1 parent 57dc90e commit 420063a27b4e7c0e213728d5c2a617e6b6e7e2df @apotonick apotonick committed Oct 3, 2010
Showing with 7 additions and 10 deletions.
  1. +6 −7 hooks.gemspec
  2. +1 −3 lib/hooks.rb
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{hooks}
- s.version = "0.1"
+ s.version = "0.1.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nick Sutterer"]
- s.date = %q{2010-09-24}
+ s.date = %q{2010-10-03}
s.description = %q{Declaratively define hooks, add callbacks and run them with the options you like.}
s.email = %q{apotonick@gmail.com}
s.extra_rdoc_files = [
@@ -20,15 +20,17 @@ Gem::Specification.new do |s|
"Gemfile.lock",
"README.rdoc",
"Rakefile",
- "lib/hooks.rb"
+ "lib/hooks.rb",
+ "lib/hooks/inheritable_attribute.rb"
]
s.homepage = %q{http://nicksda.apotomo.de/category/hooks}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Generic hooks with callbacks for Ruby.}
s.test_files = [
- "test/test_helper.rb",
+ "test/inheritable_attribute_test.rb",
+ "test/test_helper.rb",
"test/hooks_test.rb"
]
@@ -37,12 +39,9 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0"])
else
- s.add_dependency(%q<activesupport>, [">= 2.3.0"])
end
else
- s.add_dependency(%q<activesupport>, [">= 2.3.0"])
end
end
View
@@ -1,4 +1,3 @@
-#require 'active_support/core_ext/class/inheritable_attributes.rb'
require "hooks/inheritable_attribute"
# Almost like ActiveSupport::Callbacks but 76,6% less complex.
@@ -17,7 +16,7 @@
#
# cat.run_hook :after_dinner
module Hooks
- VERSION = "0.1"
+ VERSION = "0.1.1"
def self.included(base)
base.extend InheritableAttribute
@@ -64,7 +63,6 @@ def #{hook}(method=nil, &block)
end
def setup_hook_accessors(accessor_name)
- #class_inheritable_array(accessor_name, :instance_writer => false)
inheritable_attr(accessor_name)
send("#{accessor_name}=", []) # initialize ivar.
end

0 comments on commit 420063a

Please sign in to comment.