Skip to content

Commit e62de52

Browse files
committed
Merge branch 'master' into serializers
2 parents afd7140 + fd86a1b commit e62de52

File tree

282 files changed

+21651
-19051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+21651
-19051
lines changed

.gitignore

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
pkg
2-
.bundle
3-
Gemfile.lock
1+
# Don't put *.swp, *.bak, etc here; those belong in a global ~/.gitignore.
2+
# Check out http://help.github.com/ignore-files/ for how to set that up.
3+
44
debug.log
5-
doc/rdoc
6-
activemodel/doc
7-
activeresource/doc
8-
activerecord/doc
9-
activerecord/sqlnet.log
10-
actionpack/doc
11-
actionmailer/doc
12-
activesupport/doc
13-
activesupport/test/tmp
14-
activemodel/test/fixtures/fixture_database.sqlite3
15-
actionpack/test/tmp
16-
activesupport/test/fixtures/isolation_test
17-
dist
18-
railties/test/500.html
19-
railties/test/fixtures/tmp
20-
railties/test/initializer/root/log
21-
railties/doc
22-
railties/guides/output
23-
railties/tmp
24-
.rvmrc
25-
.rbenv-version
26-
RDOC_MAIN.rdoc
5+
.Gemfile
6+
/.bundle
7+
/.rbenv-version
8+
/.rvmrc
9+
/Gemfile.lock
10+
/pkg
11+
/dist
12+
/doc/rdoc
13+
/*/doc
14+
/*/test/tmp
15+
/activerecord/sqlnet.log
16+
/activemodel/test/fixtures/fixture_database.sqlite3
17+
/activesupport/test/fixtures/isolation_test
18+
/railties/test/500.html
19+
/railties/test/fixtures/tmp
20+
/railties/test/initializer/root/log
21+
/railties/doc
22+
/railties/guides/output
23+
/railties/tmp
24+
/RDOC_MAIN.rdoc

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ script: 'ci/travis.rb'
22
rvm:
33
- 1.8.7
44
- 1.9.2
5-
#- 1.9.3 # Disable 1.9.3 builds until Travis is on 1.9.3-rc1.
5+
- 1.9.3
66
env:
77
- "GEM=railties"
88
- "GEM=ap,am,amo,ares,as"

Gemfile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ gemspec
44

55
if ENV['AREL']
66
gem "arel", :path => ENV['AREL']
7+
else
8+
gem "arel", :git => "git://github.com/rails/arel"
79
end
810

911
gem "bcrypt-ruby", "~> 3.0.0"
@@ -19,12 +21,7 @@ end
1921
# it being automatically loaded by sprockets
2022
gem "uglifier", ">= 1.0.3", :require => false
2123

22-
# Temp fix until rake 0.9.3 is out
23-
if RUBY_VERSION >= "1.9.3"
24-
gem "rake", "0.9.3.beta.1"
25-
else
26-
gem "rake", ">= 0.8.7"
27-
end
24+
gem "rake", ">= 0.8.7"
2825
gem "mocha", ">= 0.9.8"
2926

3027
group :doc do
@@ -39,14 +36,11 @@ gem "memcache-client", ">= 1.8.5"
3936

4037
platforms :mri_18 do
4138
gem "system_timer"
42-
gem "ruby-debug", ">= 0.10.3" unless ENV['TRAVIS']
4339
gem "json"
4440
end
4541

46-
platforms :mri_19 do
47-
# TODO: Remove the conditional when ruby-debug19 supports Ruby >= 1.9.3
48-
gem "ruby-debug19", :require => "ruby-debug" unless RUBY_VERSION > "1.9.2" || ENV['TRAVIS']
49-
end
42+
# Add your own local bundler stuff
43+
instance_eval File.read ".Gemfile" if File.exists? ".Gemfile"
5044

5145
platforms :mri do
5246
group :test do
@@ -73,7 +67,6 @@ platforms :ruby do
7367
end
7468

7569
platforms :jruby do
76-
gem "ruby-debug", ">= 0.10.3"
7770
gem "json"
7871
gem "activerecord-jdbcsqlite3-adapter", ">= 1.2.0"
7972

RELEASING_RAILS.rdoc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ for Rails. You can check the status of his tests here:
2525

2626
Do not release with Red AWDwR tests.
2727

28+
=== Are the postgres tests green? If not, make them green
29+
30+
Currently Travis CI doesn't run the Active Record postgres tests. They are
31+
working to resolve this, but in the mean time, it is crucial to ensure that
32+
the tests are still green before release.
33+
2834
=== Do we have any git dependencies? If so, contact those authors.
2935

3036
Having git dependencies indicates that we depend on unreleased code.
@@ -60,6 +66,8 @@ for today:
6066

6167
=== Is Sam Ruby happy? If not, make him happy.
6268

69+
=== Are the postgres tests green? If not, make them green
70+
6371
=== Contact the security team. CVE emails must be sent on this day.
6472

6573
=== Create a release branch.
@@ -81,8 +89,20 @@ You can review the commits for the 3.0.10 release like this:
8189

8290
[aaron@higgins rails (3-0-10)]$ git log v3.0.9..
8391

92+
If you're doing a stable branch release, you should also ensure that all of
93+
the CHANGELOG entries in the stable branch are also synced to the master
94+
branch.
95+
8496
=== Update the RAILS_VERSION file to include the RC.
8597

98+
=== Build and test the gem.
99+
100+
Run `rake install` to generate the gems and install them locally. Then try
101+
generating a new app and ensure that nothing explodes.
102+
103+
This will stop you looking silly when you push an RC to rubygems.org and then
104+
realise it is broken.
105+
86106
=== Release the gem.
87107

88108
IMPORTANT: Due to YAML parse problems on the rubygems.org server, it is safest
@@ -150,6 +170,7 @@ Today, do this stuff in this order:
150170
* Apply security patches to the release branch
151171
* Update CHANGELOG with security fixes.
152172
* Update RAILS_VERSION to remove the rc
173+
* Build and test the gem
153174
* Release the gems
154175
* Email security lists
155176
* Email general announcement lists
@@ -184,3 +205,34 @@ There are two simple steps for fixing the CI:
184205
2. Fix it
185206

186207
Repeat these steps until the CI is green.
208+
209+
=== Manually trigger docs generation
210+
211+
We have a post-receive hook in GitHub that calls the docs server on pushes.
212+
Triggers generation and publication of edge docs, updates the contrib app,
213+
and generates and publishes stable docs if a new stable tag is detected.
214+
215+
The hook unfortunately is not invoked by tag pushing, so once the new stable
216+
tag has been pushed to origin, please run
217+
218+
curl -X POST -d '' http://rails-hooks.hashref.com/rails-master-hook
219+
220+
You should see something like this:
221+
222+
Rails master hook tasks scheduled:
223+
224+
* updates the local checkout
225+
* updates Rails Contributors
226+
* generates and publishes edge docs
227+
228+
If a new stable tag is detected it also
229+
230+
* generates and publishes stable docs
231+
232+
This needs typically a few minutes.
233+
234+
Note you do not need to specify the tag, the docs server figures it out.
235+
236+
Also, don't worry if you call that multiple times or the hook is triggered
237+
again by some immediate regular push, if the scripts are running new calls
238+
are just queued (in a queue of size 1).

Rakefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,43 +97,43 @@ RDoc::Task.new do |rdoc|
9797
rdoc.options << '-g' # SDoc flag, link methods to GitHub
9898
rdoc.options << '-m' << RDOC_MAIN
9999

100-
rdoc.rdoc_files.include('railties/CHANGELOG')
100+
rdoc.rdoc_files.include('railties/CHANGELOG.md')
101101
rdoc.rdoc_files.include('railties/MIT-LICENSE')
102102
rdoc.rdoc_files.include('railties/README.rdoc')
103103
rdoc.rdoc_files.include('railties/lib/**/*.rb')
104104
rdoc.rdoc_files.exclude('railties/lib/rails/generators/**/templates/**/*.rb')
105105

106106
rdoc.rdoc_files.include('activerecord/README.rdoc')
107-
rdoc.rdoc_files.include('activerecord/CHANGELOG')
107+
rdoc.rdoc_files.include('activerecord/CHANGELOG.md')
108108
rdoc.rdoc_files.include('activerecord/lib/active_record/**/*.rb')
109109
rdoc.rdoc_files.exclude('activerecord/lib/active_record/vendor/*')
110110

111111
rdoc.rdoc_files.include('activeresource/README.rdoc')
112-
rdoc.rdoc_files.include('activeresource/CHANGELOG')
112+
rdoc.rdoc_files.include('activeresource/CHANGELOG.md')
113113
rdoc.rdoc_files.include('activeresource/lib/active_resource.rb')
114114
rdoc.rdoc_files.include('activeresource/lib/active_resource/*')
115115

116116
rdoc.rdoc_files.include('actionpack/README.rdoc')
117-
rdoc.rdoc_files.include('actionpack/CHANGELOG')
117+
rdoc.rdoc_files.include('actionpack/CHANGELOG.md')
118118
rdoc.rdoc_files.include('actionpack/lib/abstract_controller/**/*.rb')
119119
rdoc.rdoc_files.include('actionpack/lib/action_controller/**/*.rb')
120120
rdoc.rdoc_files.include('actionpack/lib/action_dispatch/**/*.rb')
121121
rdoc.rdoc_files.include('actionpack/lib/action_view/**/*.rb')
122122
rdoc.rdoc_files.exclude('actionpack/lib/action_controller/vendor/*')
123123

124124
rdoc.rdoc_files.include('actionmailer/README.rdoc')
125-
rdoc.rdoc_files.include('actionmailer/CHANGELOG')
125+
rdoc.rdoc_files.include('actionmailer/CHANGELOG.md')
126126
rdoc.rdoc_files.include('actionmailer/lib/action_mailer/base.rb')
127127
rdoc.rdoc_files.include('actionmailer/lib/action_mailer/mail_helper.rb')
128128
rdoc.rdoc_files.exclude('actionmailer/lib/action_mailer/vendor/*')
129129

130130
rdoc.rdoc_files.include('activesupport/README.rdoc')
131-
rdoc.rdoc_files.include('activesupport/CHANGELOG')
131+
rdoc.rdoc_files.include('activesupport/CHANGELOG.md')
132132
rdoc.rdoc_files.include('activesupport/lib/active_support/**/*.rb')
133133
rdoc.rdoc_files.exclude('activesupport/lib/active_support/vendor/*')
134134

135135
rdoc.rdoc_files.include('activemodel/README.rdoc')
136-
rdoc.rdoc_files.include('activemodel/CHANGELOG')
136+
rdoc.rdoc_files.include('activemodel/CHANGELOG.md')
137137
rdoc.rdoc_files.include('activemodel/lib/active_model/**/*.rb')
138138
end
139139

0 commit comments

Comments
 (0)