lib/compressible.rb in compressible-0.0.2.4 vs lib/compressible.rb in compressible-0.0.2.6

- old
+ new

@@ -1,13 +1,9 @@ require 'rubygems' require 'yaml' -begin - gem "activesupport", "= 2.3.5" - require 'active_support' -rescue Gem::LoadError => e - puts e.inspect -end +require 'active_support' + this = File.dirname(__FILE__) require File.join(this, "ext.rb") module Compressible @@ -24,5 +20,9 @@ Compressible.send(:include, Compressible::Configurable) Compressible.send(:include, Compressible::Assetable) Compressible.send(:include, Compressible::Readable) Compressible.send(:include, Compressible::Writable) + +def Compressible(*args, &block) + Compressible.define!(*args, &block) +end