Skip to content

Commit 112ebfa

Browse files
committed
Bump version and update readme.
1 parent a6f5497 commit 112ebfa

File tree

4 files changed

+46
-25
lines changed

4 files changed

+46
-25
lines changed

CHANGELOG.rdoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
== 2.5.0
1+
== 2.6.0.beta1
22

33
* It's now possible to use Annotate in standalone ActiveRecord (non-Rails)
44
projects again.
@@ -28,12 +28,21 @@
2828
* Expose all `position_*` variables as CLI params.
2929
* Make `ENV ['position']` work as a default for all the `ENV ['position_*']`
3030
variables.
31+
* Make rake tasks more resilient to unusual circumstances / code loading
32+
behavior.
33+
* Resolve annotate vs. annotate_models ambiguity once and for all by settling
34+
on `annotate_models` _and_ `annotate_routes`. This avoids a name collision
35+
with RMagick while not needlessly overloading the term.
3136
* Fixed that schema kept prepending additional newlines
3237
* Updates to make annotate smarter about when to touch a model
3338
* Recognize column+type, and don't change a file unless the column+type
3439
combination of the new schema are different than that of the old (i.e., don't
3540
regenerate if columns happen to be in a different order. That's just how life
3641
is sometimes)
42+
* Change annotate to use options hash instead of ENV.
43+
44+
== 2.5.0
45+
3746
* Works better with Rails 3
3847
* Bugfix: schema kept prepending additional newlines
3948
* Updates to make annotate smarter about when to touch a model
@@ -51,8 +60,7 @@
5160
* Allow task loading from Rakefile for gems (plugin installation already
5261
auto-detects).
5362
* Add skip_on_db_migrate option as well for people that don't want it
54-
* Fix options parsing to convert strings to proper booleans. Change annotate to
55-
use options hash instead of ENV.
63+
* Fix options parsing to convert strings to proper booleans
5664
* Add support for Fabrication fabricators
5765
* Leave magic encoding comment intact
5866
* Fix issue #14 - RuntimeError: Already memoized

README.rdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
== Annotate (aka AnnotateModels)
22

3+
IMPORTANT: If you're upgrading from a previous version, including 2.5.0,
4+
re-run the generator task!
5+
36
Add a comment summarizing the current schema to the top or bottom of each of
47
your...
58

annotate.gemspec

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
1-
here = File.dirname __FILE__
2-
require "#{here}/lib/annotate"
1+
# This file is auto-generated!
2+
# DO NOT EDIT THIS FILE DIRECTLY!
3+
# Instead, edit the Rakefile and run 'rake gems:gemspec'.# -*- encoding: utf-8 -*-
34

45
Gem::Specification.new do |s|
5-
s.name = %q{annotate}
6-
s.version = Annotate.version
7-
s.description = %q{Annotates Rails/ActiveRecord Models, routes, fixtures, and others based on the database schema.}
8-
s.summary = %q{Annotates Rails Models, routes, fixtures, and others based on the database schema.}
9-
s.authors = ["Cuong Tran", "Alex Chaffee", "Marcos Piccinini", "Turadg Aleahmad"]
10-
s.email = ["alex@stinky.com", "ctran@pragmaquest.com", "x@nofxx.com", "turadg@aleahmad.net"]
6+
s.name = "annotate"
7+
s.version = "2.6.0.beta1"
118

12-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
9+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
10+
s.authors = ["Cuong Tran", "Alex Chaffee", "Marcos Piccinini", "Turadg Aleahmad", "Jon Frisby"]
11+
s.date = "2012-08-27"
12+
s.description = "Annotates Rails/ActiveRecord Models, routes, fixtures, and others based on the database schema."
13+
s.email = ["alex@stinky.com", "ctran@pragmaquest.com", "x@nofxx.com", "turadg@aleahmad.net", "jon@cloudability.com"]
14+
s.executables = ["annotate", "annotate_models", "annotate_routes"]
1315
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "TODO.rdoc"]
14-
15-
s.files = %w( README.rdoc CHANGELOG.rdoc TODO.rdoc )
16-
s.files += Dir.glob("lib/**/*")
17-
s.files += Dir.glob("tasks/**/*")
18-
s.files += ["bin/annotate"] # todo: annotate_models
19-
20-
s.homepage = %q{http://github.com/ctran/annotate_models}
21-
s.rdoc_options = ["--charset=UTF-8"]
16+
s.files = ["CHANGELOG.rdoc", "README.rdoc", "TODO.rdoc", "VERSION", "annotate.gemspec", "bin/annotate", "bin/annotate_models", "bin/annotate_routes", "lib/annotate.rb", "lib/annotate/active_record_patch.rb", "lib/annotate/annotate_models.rb", "lib/annotate/annotate_routes.rb", "lib/annotate/tasks.rb", "lib/annotate/version.rb", "lib/generators/annotate/USAGE", "lib/generators/annotate/install_generator.rb", "lib/generators/annotate/templates/auto_annotate_models.rake", "lib/tasks/annotate_routes.rake", "lib/tasks/migrate.rake"]
17+
s.homepage = "http://github.com/ctran/annotate_models"
18+
s.licenses = ["Ruby"]
2219
s.require_paths = ["lib"]
23-
s.rubyforge_project = %q{annotate}
20+
s.rubyforge_project = "annotate"
21+
s.rubygems_version = "1.8.24"
22+
s.summary = "Annotates Rails Models, routes, fixtures, and others based on the database schema."
2423

25-
s.add_runtime_dependency 'rake'
26-
s.add_runtime_dependency 'activerecord'
27-
end
24+
if s.respond_to? :specification_version then
25+
s.specification_version = 3
2826

27+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28+
s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
29+
s.add_runtime_dependency(%q<activerecord>, [">= 2.3.0"])
30+
else
31+
s.add_dependency(%q<rake>, [">= 0.8.7"])
32+
s.add_dependency(%q<activerecord>, [">= 2.3.0"])
33+
end
34+
else
35+
s.add_dependency(%q<rake>, [">= 0.8.7"])
36+
s.add_dependency(%q<activerecord>, [">= 2.3.0"])
37+
end
38+
end

lib/annotate/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Annotate
22
def self.version
3-
"2.5.0"
3+
'2.6.0.beta1'
44
end
55
end

0 commit comments

Comments
 (0)