aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RELEASING_RAILS.rdoc17
-rw-r--r--actionpack/CHANGELOG.md2
-rw-r--r--activerecord/test/cases/migration_test.rb2
-rw-r--r--tasks/release.rb1
4 files changed, 21 insertions, 1 deletions
diff --git a/RELEASING_RAILS.rdoc b/RELEASING_RAILS.rdoc
index b7ebc4600c..1dfcfe2488 100644
--- a/RELEASING_RAILS.rdoc
+++ b/RELEASING_RAILS.rdoc
@@ -25,6 +25,12 @@ for Rails. You can check the status of his tests here:
Do not release with Red AWDwR tests.
+=== Are the postgres tests green? If not, make them green
+
+Currently Travis CI doesn't run the Active Record postgres tests. They are
+working to resolve this, but in the mean time, it is crucial to ensure that
+the tests are still green before release.
+
=== Do we have any git dependencies? If so, contact those authors.
Having git dependencies indicates that we depend on unreleased code.
@@ -60,6 +66,8 @@ for today:
=== Is Sam Ruby happy? If not, make him happy.
+=== Are the postgres tests green? If not, make them green
+
=== Contact the security team. CVE emails must be sent on this day.
=== Create a release branch.
@@ -87,6 +95,14 @@ branch.
=== Update the RAILS_VERSION file to include the RC.
+=== Build and test the gem.
+
+Run `rake install` to generate the gems and install them locally. Then try
+generating a new app and ensure that nothing explodes.
+
+This will stop you looking silly when you push an RC to rubygems.org and then
+realise it is broken.
+
=== Release the gem.
IMPORTANT: Due to YAML parse problems on the rubygems.org server, it is safest
@@ -154,6 +170,7 @@ Today, do this stuff in this order:
* Apply security patches to the release branch
* Update CHANGELOG with security fixes.
* Update RAILS_VERSION to remove the rc
+* Build and test the gem
* Release the gems
* Email security lists
* Email general announcement lists
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 3e2dbe4e13..4c265c41d8 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -64,6 +64,8 @@
## Rails 3.1.2 (unreleased) ##
+* Upgrade sprockets dependency to ~> 2.1.0
+
* Ensure that the format isn't applied twice to the cache key, else it becomes impossible
to target with expire_action.
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index d6c7edc461..75eb9c2bce 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -483,7 +483,7 @@ if ActiveRecord::Base.connection.supports_migrations?
# Do a manual insertion
if current_adapter?(:OracleAdapter)
- Person.connection.execute "insert into people (id, wealth, created_at, updated_at) values (people_seq.nextval, 12345678901234567890.0123456789, 0, 0)"
+ Person.connection.execute "insert into people (id, wealth, created_at, updated_at) values (people_seq.nextval, 12345678901234567890.0123456789, sysdate, sysdate)"
elsif current_adapter?(:OpenBaseAdapter) || (current_adapter?(:MysqlAdapter) && Mysql.client_version < 50003) #before mysql 5.0.3 decimals stored as strings
Person.connection.execute "insert into people (wealth, created_at, updated_at) values ('12345678901234567890.0123456789', 0, 0)"
elsif current_adapter?(:PostgreSQLAdapter)
diff --git a/tasks/release.rb b/tasks/release.rb
index 33aaee5a4b..191c014f9f 100644
--- a/tasks/release.rb
+++ b/tasks/release.rb
@@ -116,6 +116,7 @@ namespace :all do
task :tag do
sh "git tag #{tag}"
+ sh "git push --tags"
end
task :release => %w(ensure_clean_state build commit tag push)