diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-03-11 22:07:48 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-03-11 22:07:48 +1100 |
commit | 965fe59bff249ad91131a444e1fbd63dc4411db3 (patch) | |
tree | ec2d54d5eaad9e32bce1758e6a67c364279bbd39 /activemodel | |
parent | 79f02a473cb6aef00003745f23802314c8c89e7d (diff) | |
parent | 4adcbb6b2d6cef49ac28df4254ac74e09f14dcf7 (diff) | |
download | rails-965fe59bff249ad91131a444e1fbd63dc4411db3.tar.gz rails-965fe59bff249ad91131a444e1fbd63dc4411db3.tar.bz2 rails-965fe59bff249ad91131a444e1fbd63dc4411db3.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/CHANGELOG | 11 | ||||
-rw-r--r-- | activemodel/CHANGES | 12 | ||||
-rwxr-xr-x | activemodel/Rakefile | 13 | ||||
-rw-r--r-- | activemodel/activemodel.gemspec | 5 | ||||
-rw-r--r-- | activemodel/lib/active_model/version.rb | 2 |
5 files changed, 25 insertions, 18 deletions
diff --git a/activemodel/CHANGELOG b/activemodel/CHANGELOG index 7489c0daa5..eae337e737 100644 --- a/activemodel/CHANGELOG +++ b/activemodel/CHANGELOG @@ -1,5 +1,16 @@ *Edge* +* ActiveModel::Observer#add_observer! + + It has a custom hook to define after_find that should really be in a + ActiveRecord::Observer subclass: + + def add_observer!(klass) + klass.add_observer(self) + klass.class_eval 'def after_find() end' unless + klass.respond_to?(:after_find) + end + * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 [DHH] * Add validates_format_of :without => /regexp/ option. #430 [Elliot Winkler, Peer Allan] diff --git a/activemodel/CHANGES b/activemodel/CHANGES deleted file mode 100644 index 217a6d6bf7..0000000000 --- a/activemodel/CHANGES +++ /dev/null @@ -1,12 +0,0 @@ -Changes from extracting bits to ActiveModel - -* ActiveModel::Observer#add_observer! - - It has a custom hook to define after_find that should really be in a - ActiveRecord::Observer subclass: - - def add_observer!(klass) - klass.add_observer(self) - klass.class_eval 'def after_find() end' unless - klass.respond_to?(:after_find) - end diff --git a/activemodel/Rakefile b/activemodel/Rakefile index f098ce0671..14c02f183f 100755 --- a/activemodel/Rakefile +++ b/activemodel/Rakefile @@ -32,13 +32,13 @@ require 'rake/rdoctask' # Generate the RDoc documentation Rake::RDocTask.new do |rdoc| - rdoc.rdoc_dir = "#{dir}/doc" + rdoc.rdoc_dir = "doc" rdoc.title = "Active Model" rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object' rdoc.options << '--charset' << 'utf-8' rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo' - rdoc.rdoc_files.include("#{dir}/README", "#{dir}/CHANGES") - rdoc.rdoc_files.include("#{dir}/lib/**/*.rb") + rdoc.rdoc_files.include("README", "CHANGELOG") + rdoc.rdoc_files.include("lib/**/*.rb") end @@ -50,3 +50,10 @@ spec = eval(File.read("#{dir}/activemodel.gemspec")) Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec end + +desc "Release to gemcutter" +task :release => :package do + require 'rake/gemcutter' + Rake::Gemcutter::Tasks.new(spec).define + Rake::Task['gem:push'].invoke +end diff --git a/activemodel/activemodel.gemspec b/activemodel/activemodel.gemspec index 64ae6e0760..b4fbe26d97 100644 --- a/activemodel/activemodel.gemspec +++ b/activemodel/activemodel.gemspec @@ -1,9 +1,10 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'activemodel' - s.version = '3.0.0.beta' + s.version = '3.0.0.beta1' s.summary = "A toolkit for building other modeling frameworks like ActiveRecord" s.description = %q{Extracts common modeling concerns from ActiveRecord to share between similar frameworks like ActiveResource.} + s.required_ruby_version = '>= 1.8.7' s.author = "David Heinemeier Hansson" s.email = "david@loudthinking.com" @@ -12,7 +13,7 @@ Gem::Specification.new do |s| s.has_rdoc = true - s.add_dependency('activesupport', '= 3.0.0.beta') + s.add_dependency('activesupport', '= 3.0.0.beta1') s.require_path = 'lib' s.files = Dir["CHANGELOG", "MIT-LICENSE", "README", "lib/**/*"] diff --git a/activemodel/lib/active_model/version.rb b/activemodel/lib/active_model/version.rb index f569447bc8..d51423ae1b 100644 --- a/activemodel/lib/active_model/version.rb +++ b/activemodel/lib/active_model/version.rb @@ -2,7 +2,7 @@ module ActiveModel module VERSION #:nodoc: MAJOR = 3 MINOR = 0 - TINY = "0.beta" + TINY = "0.beta1" STRING = [MAJOR, MINOR, TINY].join('.') end |