Commit Graph

434 Commits

Author SHA1 Message Date
Matthew Draper
6c08d480f1 Start Rails 5.2 development 2017-03-22 10:11:39 +10:30
claudiob
cd3c0357d7 Remove 5.0.0 entry from 5.1.0 CHANGELOG [ci skip]
The entry for PR #25430 is currently present both in the CHANGELOG
for Rails 5.0 and for Rails 5.1:

9d3a352777/railties/CHANGELOG.md (L61-L72)

Since the PR was backported to 5-0-stable in #25499, I believe it
should be removed from the CHANGELOG of 5.1, otherwise it looks like
something changed from 5.0 to 5.1
2017-03-20 21:46:41 -07:00
yuuji.yaginuma
a42351acbc Add app:update task to engines
Occasionally we update the file generated by engine.
Therefore, I think that there is a task for updating as well as
application in the engine, it is convenient for updating.
2017-03-20 15:37:45 +09:00
claudiob
39996ecae6 Add CHANGELOG entry for --skip-coffee [ci skip]
Was added in #25248 by @bluesh55
2017-03-14 18:12:01 -07:00
Jon Moss
82aa2c124f Move "fixes" to a new line
[ci skip]
2017-03-13 19:46:51 -04:00
Kasper Timm Hansen
ef4dfcc3b3 [ci skip] 🎬 expensive: take two 2017-03-06 20:27:00 +01:00
Robin Dupret
4a77213eea Avoid running system tests by default
These tests may be expansive so let's only allow users to run them
through `bin/rails test:system` or by passing a path to the `test`
command.

The same applies for `bin/rake test`.

Refs #28109.
2017-03-05 13:24:43 +01:00
Kasper Timm Hansen
6a3235b78d [ci skip] Add changelog entry for #28139.
Includes a script to ease an app's upgrade.
2017-03-02 20:11:57 +01:00
Kasper Timm Hansen
88857f3395 [ci skip] Add changelog entry for encrypted secrets.
Just dispatch to the command help itself for more info.
2017-03-01 20:55:29 +01:00
Rafael Mendonça França
f4acdd83ff
Preparing for 5.1.0.beta1 release 2017-02-23 14:53:21 -05:00
David Heinemeier Hansson
8e9e943919 Revert back to the original of using package.json in the root of the project (#28093) 2017-02-21 17:33:31 +01:00
Dominic Cleal
1c8a4cdf63
Collect all file patterns when running multiple rake test tasks
Replaces the rake_patterns instance variable with simple require, as
`autorun` will run tests from all eagerly required test files.

Fixes #27801
2017-02-04 13:54:52 +01:00
yuuji.yaginuma
4ed0f36689 add warnings option to test runner 2017-01-24 11:05:41 +09:00
Rafael Mendonça França
aa70abbc55
Merge pull request #27632 from dixpac/repo_initialize
Initalize git repo when creatin new rails app
2017-01-18 02:00:41 -05:00
Junichi Ito
b32997371f Install Byebug gem as default in Windows (mingw and x64_mingw) platform. 2017-01-18 01:06:15 +00:00
dixpac
8989a5057b Initalize git repo when creatin new rails app
* If `--skip-git` is not specified initalize git repo
 when creating new rails app
2017-01-12 17:21:56 +01:00
yuuji.yaginuma
2a5c116f12 make all rails commands work in engine
Currently, all rails commands can be executed in engine,
but `server`, `console`, `dbconsole` and `runner` do not work.

This make all rails commands work in engine.
Related to #22588
2017-01-09 10:07:48 +09:00
Prathamesh Sonpatki
b05fec04e9
Don't generate HTML/ERB templates for scaffold controller with --api flag
- Fixes #27591.
2017-01-07 18:06:32 +05:30
Rafael Mendonça França
50cb1b697c
Merge pull request #27399 from sinogermany/rails-env-for-empty-string-env-vars
Rails env for empty string env vars
2017-01-03 23:37:37 -05:00
Daniel Deng
498370c05b Rails.env falls back to dev mode when env var is empty 2017-01-04 15:03:30 +11:00
Rafael Mendonça França
f9ed83321a
Remove deprecated CONTROLLER environment variable for routes task 2017-01-03 20:42:14 -05:00
Rafael Mendonça França
f7782812f7
Remove deprecated tasks in railties 2017-01-03 20:42:14 -05:00
Rafael Mendonça França
7563bf7b46
Remove deprecated file `rails/rack/debugger 2017-01-03 20:42:14 -05:00
Rafael Mendonça França
0129ca2eeb
Remove deprecated config.serve_static_files 2017-01-03 20:42:14 -05:00
Rafael Mendonça França
c861decd44
Remove deprecated config.static_cache_control 2017-01-03 20:42:13 -05:00
Rafael França
eb6a6141a6 Merge branch 'master' into clear_all_environments_log_by_default 2016-12-29 02:18:38 -05:00
Jon Moss
fab3a73af4 Add backticks to show shell command
[ci skip]
2016-12-27 08:35:24 -05:00
Jon Moss
2053229456 Remove random extra spaces from Action Pack and Railties CHANGELOG.md
[ci skip]
2016-12-27 08:32:03 -05:00
David Heinemeier Hansson
cfdf6e1368 Add option to trigger JS framework-specific installation as part of webpack setup 2016-12-12 11:07:28 -08:00
David Heinemeier Hansson
0d20530e5e Make Yarn the default, drop default vendor/asset directories (#27300) 2016-12-08 10:33:23 -08:00
Josef Šimánek
fab83b9bde Fix binstop -> binstub typo in railties changelog.
[ci skip]
2016-12-05 02:11:33 +01:00
David Heinemeier Hansson
3dac36bd8e Yarn: Move node_modules, package.json, and yarn.lock file to vendor (#27245)
Move node_modules, package.json, and yarn.lock file to vendor
2016-12-01 18:51:43 +01:00
Robert Glaser
5e751962b4 fix typo in changelog 2016-11-30 09:57:42 +01:00
Liceth Ovalles
3b0a09c398 Add CHANGELOG entry for --yarn option 2016-11-29 10:08:26 -05:00
Guillermo Iguaran
ffb81ad6e3 rails-ujs is now shipped with Action View 2016-11-29 09:48:19 -05:00
Guillermo Iguaran
82d683a842 Add CHANGELOG entry 2016-11-21 18:58:36 -05:00
Isaac Sloan
7102c6ce89 deep symbolize keys on secrets.yml 2016-11-21 16:12:45 -07:00
yuuji.yaginuma
f5e738b604 move CHANGELOG entry to the appropriate file [ci skip]
Follow up to #27098
2016-11-19 16:18:21 +09:00
Tawan Sierek
064744bef6
Fix ActionDispatch::IntegrationTest#open_session
Reset a new session directly after its creation in
`ActionDispatch::IntegrationTest#open_session`. Reset the session to a clean
state before making it available to the client's test code.

Issue #22742 reports unexpected behavior of integration tests that run multiple
sessions. For example an `ActionDispatch::Flash` instance is shared across
multiple sessions, though a client code will rightfully assume that each new
session has its own flash hash.

The following test failed due to this behavior:

    class Issue22742Test < ActionDispatch::IntegrationTest
      test 'issue #22742' do
        integration_session # initialize first session
        a = open_session
        b = open_session

        refute_same(a.integration_session, b.integration_session)
      end
    end

Instead of creating a new `ActionDispatch::Integration::Session` instance,
the same instance is shared across all newly opened test sessions. This is
due to the way how new test sessions are created in
`ActionDispatch::IntegrationTest#open_session`. The already existing
`ActionDispatch::IntegrationTest` instance is duplicated  with `Object#dup`,
This approach was introduced in commit 15c31c7639b. `Object#dup` copies the
instance variables, but not the objects they reference. Therefore this issue
only occurred when the current test instance had been tapped in such a way that
the instance variable `@integration_session` was initialized before creating the
new test session.

Close #22742

[Tawan Sierek + Sina Sadeghian]
2016-11-18 15:07:16 -05:00
Tsukuru Tanimichi
592c06d7cb Add :skip_sprockets to Rails::PluginBuilder::PASSTHROUGH_OPTIONS
`rails plugin new` with `--full` and `--skip-sprockets` options generates a dummy application that throws `NoMethodError`.

```
% rails plugin new my_engine -S --full --skip-gemspec
% cd my_engine
% bin/rails test
rails aborted!
NoMethodError: undefined method `assets' for #<Rails::Application::Configuration:0x007f83aa1e6100>
```
2016-11-14 20:56:49 +09:00
yuuji.yaginuma
447e1a4881 clear all environments log files by default
In #22703, `log:clear` task has been changed to clear only standard environment
log files.
However, it is often to add a non-standard environment(e.g. "staging").
Therefore, I think than it is better to clear all environments log files by default.
2016-10-14 08:52:35 +09:00
Esteban Santana Santana
ddddedc487 Allow the use of listen's 3.1.x branch.
When the initial evented monitor feature was written, the latest version of listen
was the 3.0.x series. Since then the listen project has moved on to the 3.1.x series.
This patch allows the use of the new versions.
2016-10-03 16:58:17 +05:30
Michael Grosser
45dce0c003
support minitest after_run for parity to regular minitest
see f9605387e4/lib/minitest.rb (L51-L65)
2016-09-16 09:36:29 -07:00
yuuji.yaginuma
72831d75b6 run before_configuration callbacks as soon as application constant inherits from Rails::Application
Until Rails 4.1, `before_configuration` run as soon as the application constant
inherits from `Rails::Application`.
However, in d25fe31c40928712b5e08fe0afb567c3bc88eddf, it has been modified to
run at instantiation process.

This modify to `before_configuration` is run at same timing as to Rails 4.1.

Fixes #19880
2016-08-19 12:12:00 +09:00
Ben Pickles
09ed4e95ac A generated app should not include Uglifier with --skip-javascript option. 2016-07-26 19:18:30 +01:00
Rafael Mendonça França
a8a3a8cc69
Merge pull request #25438 from prathamesh-sonpatki/rm-session-store-initializer
Setup default session store internally, no longer through an initializer
2016-07-20 02:32:37 -03:00
Prathamesh Sonpatki
e5a6f7ee9e
Setup default session store internally, no longer through an application initializer
- By default the session store will be set to cookie store with
  application name as session key.
- Older apps are not affected as they will have the session store
  initializer generated by Rails in older versions, and Rails will not
  overwrite the session store if it is already set or disabled.
- But new apps will not have the initializer, instead the session store
  will be set to cookie store by default.
- Based on comment by DHH here - https://github.com/rails/rails/issues/25181#issuecomment-222312764.
2016-07-17 19:45:51 +05:30
Vipul A M
6a10978e68
Fix CHANGELOG grammar [ci skip] 2016-07-16 23:04:08 -07:00
Prathamesh Sonpatki
91251fdcbd
CHANGELOG for https://github.com/rails/rails/pull/25257 [ci skip]
- Also minor weekly CHANGELOG cleanup.
2016-07-17 11:27:06 +05:30
Prathamesh Sonpatki
724b0833bd
Cleanup CHANGELOGs [ci skip]
- Cleanup Active Record CHANGELOG.
- Add missing CHANGELOG for https://github.com/rails/rails/pull/25688.
- Clarify that assets requests logging is suppressed.
2016-07-09 18:11:35 +05:30