Commit Graph

10636 Commits

Author SHA1 Message Date
Akira Matsuda
dcecbb4234 File encoding is defaulted to utf-8 in Ruby >= 2.1 2015-09-18 17:05:05 +09:00
Wojciech Wnętrzak
472358d030 Fix displaying mailer previews on non local requests.
When config `action_mailer.show_previews` is set, previews are displayed
regardless of local request check.
2015-09-17 15:57:09 +02:00
Eric Guo
0949df04f8 Bundler tzinfo-data in windows, even first generated new app are Mac 2015-09-15 09:37:23 +08:00
Rafael Mendonça França
65f189da2d Merge pull request #21568 from amitsuroliya/mysql_version_update
Updated MySQL documentation link to MySQL latest version 5.7 everywhe…
2015-09-13 03:46:25 -03:00
Eric Guo
3ac70bd383 dev and edge have some common, so factor it out. 2015-09-13 01:06:16 +08:00
amitkumarsuroliya
08c0ef777f Updated MySQL documentation link to MySQL latest version 5.7 everywhere [ci skip]
Bumps from `5.6` to `5.7`
2015-09-10 07:38:18 +05:30
arvind
dad0c2677c Replace AR with ActiveRecord to make it more readable [ci skip] 2015-09-08 16:02:16 +05:30
Kasper Timm Hansen
e75b92c032 Merge pull request #21519 from y-yagi/test_runner_raise_error
raise LoadError when a non-existent file or directory is specified to the test runner
2015-09-08 10:01:32 +02:00
yuuji.yaginuma
df744b56cc modify to pass the correct argument to the test runner from rake
test runner sets file to be tested in plugin_rails_options,
but in plugin_rails_options, processing has been made to the argument of the
actual command rather than the argument of Minitest.run.

For example, if you run `./bin rake db:migrate test`, the options[:patterns], `db:migrate test` was incorrectly set.
2015-09-08 08:07:29 +09:00
FUJI Goro (gfx)
3215c6b743 Fix strange messages for rails g foo 2015-09-07 17:42:27 +09:00
yuuji.yaginuma
084a3908fc raise LoadError when a non-existent file or directory is specified to the test runner
Currently, if a file or directory that does not exist was specified in the test runner,
that argument is ignored.
This commit has been modified to cause an error if there is no file or directory.
2015-09-07 08:13:50 +09:00
Brandon Keepers
1ab3c5a86c Include MIT-LICENSE in railties gem 2015-09-01 14:17:10 -04:00
yuuji.yaginuma
ab8338fb22 make ENV a required argument 2015-08-29 07:53:17 +09:00
Rafael Mendonça França
2a6071a5e8 Disable warnings in railties tests 2015-08-27 23:49:30 -03:00
Yves Senn
8748a3ee4c Merge pull request #21392 from y-yagi/rm_require_support_files
remove require of files under support that do not use
2015-08-27 13:46:10 +02:00
yuuji.yaginuma
46eb6a0c1f remove require of files under support that do not use
I do not know why files under the support has been require.
However, under the support even rails application does not use.
In addition, since the default under the support file nor is generated, it requires I think not necessary
2015-08-27 08:33:02 +09:00
Ronak Jangir
8d7bf97798 Removed duplicate requiring minitest/mock as it is already required in method_call_assertions 2015-08-26 19:43:54 +05:30
NehaGautam
c23e06c969 remove unused require ‘set’ 2015-08-25 18:54:53 +05:30
Aaron Patterson
c25cf09c13 override controller_class on the request
Just like the other places.  We need to refactor this because the code
is almost identical to that in the action pack tests
2015-08-24 15:18:29 -07:00
Rafael Mendonça França
1c1ad2b746 Merge pull request #21267 from davidcornu/rails-server-port-env-var
Use the PORT environment variable for rails server
2015-08-24 12:11:36 -03:00
Aaron Patterson
d226ba5b6a smooth move aaron.... 💣 2015-08-20 13:49:05 -07:00
Aaron Patterson
51211a94bd point at rack master 2015-08-20 13:45:11 -07:00
yuuji.yaginuma
4d90bd02e8 fix path of annotations.rake [ci skip] 2015-08-20 21:46:21 +09:00
Kasper Timm Hansen
c83b117d4b Merge pull request #21279 from ronakjangir47/test_cleanup
Cleaned up generators tests using internal assertion helper
2015-08-20 07:37:59 +02:00
Ronak Jangir
63a70ad6ff Cleaned up generators tests using internal assertion helper 2015-08-20 09:22:56 +05:30
Andrei Istratii
d0e0fbafb2 Migrate to Sprockets 4. 2015-08-19 21:45:46 +03:00
David Cornu
306c14c411 Use the PORT environment variable for rails server 2015-08-18 08:43:11 -04:00
printercu
0b7a37aa02 Fixed syslog example in production config template 2015-08-17 16:40:48 +03:00
Daniel Morris
0a888f0c0d Updated tests for the generated version number change 2015-08-16 23:45:55 +01:00
Daniel Morris
c3a9e97f84 Plugins are generated with the version 0.1.0
The semantic versioning specification uses MAJOR.MINOR.PATCH – it would
make more sense to set the version to 0.1.0 for initial development
since a patch release cannot be created before a minor feature release.
2015-08-16 23:22:15 +01:00
Robin Dupret
cbca29a959 Add a changelog entry for #21124 [ci skip]
[Kir Shatrov & Robin Dupret]
2015-08-16 14:42:09 +02:00
Robin Dupret
b803798b9d Tiny documentation fixes [ci skip]
* Add missing `def` and remove useless `do` keywords.
* Move `:nodoc:` in front of the methods' definition so that methods
  under these ones are correctly visible on the API.
2015-08-16 14:16:20 +02:00
Sean Griffin
c82d2d2676 Merge pull request #21021 from sgrif/sg-no-routes-comment
Replace the giant comment in routes.rb with a link to the guides
2015-08-12 19:57:33 -06:00
Kasper Timm Hansen
a0fa45c0e6 Merge pull request #21124 from kirs/feature/reload-i18n
Reload I18n.load_path in development
2015-08-10 07:34:13 +02:00
Rafael Mendonça França
6e6cfb665a Merge pull request #21176 from y-yagi/fix_scaffold_tests_inside_api_engine
make generated scaffold functional tests work inside API engines
2015-08-09 23:50:27 -03:00
Rafael Mendonça França
2ca686110c Whitespaces 2015-08-09 22:33:19 -03:00
Kir Shatrov
f50e90a1ae Reload I18n locales in development 2015-08-10 00:17:49 +02:00
yuuji.yaginuma
22d863d272 make generated scaffold functional tests work inside API engines
* set engine's route in setup
* use fixture with engine namespace
2015-08-09 21:32:39 +09:00
eileencodes
12f08acbac Fix deprecation warning in tests
Using the string version of the class reference is now deprecated when
referencing middleware. This should be written as a class not as a string.

Deprecation warning that this change fixes:
```
DEPRECATION WARNING: Passing strings or symbols to the middleware
builder is deprecated, please change
them to actual class references.  For example:
  "ActionDispatch::ShowExceptions" => ActionDispatch::ShowExceptions
```
2015-08-08 10:38:09 -04:00
Mehmet Emin İNAÇ
c7375fd162 Added bin/update script to update application automatically
use system!

fix changelog

use bundle check first and use rake

use system instead system! for bundle check
2015-08-07 04:01:34 +03:00
Ersin Akinci
38f28f7704 Only load statistics.rake once from inside engine
When running rake stats from inside an engine,
the engine's Rakefile attempts to reload
statistics.rake after the test app loads it, which
results in STATS_DIRECTORIES being redefined and
an annoying warning. This patch skips loading
statistics.rake from tasks.rb if rake's current
scope isn't empty, i.e. if we are running from
inside an engine and not the test app dir or a
normal app.

Fixes #20510.
2015-08-06 17:34:29 -03:00
Rafael Mendonça França
ce1bd47698 Merge pull request #21043 from y-yagi/loading_fixtures_in_engine_integration_tests
set the correct path to `ActionDispatch::IntegrationTest.fixture_path`
2015-08-06 17:29:19 -03:00
yuuji.yaginuma
35a734d671 stop using deprecated render :text in railties 2015-08-06 15:50:28 +09:00
Aaron Patterson
a31bfe6983 routes in the env via the request object 2015-08-05 17:13:19 -07:00
Aaron Patterson
df71e48be8 allocate a request object to avoid hash allocations
This decouples the `call` method from knowing the SCRIPT_NAME key and
offloads decisions about how to access script_name
2015-08-05 16:55:03 -07:00
Kasper Timm Hansen
8468fb1c6b Use exist? instead of deprecated exists? 2015-08-05 21:39:54 +02:00
Kasper Timm Hansen
2d00aa7a93 Merge pull request #20961 from ccallebs/add-dev-mode-caching
Add dev caching toggle / server options
2015-08-05 21:37:57 +02:00
Chuck Callebs
a01e58afd9 Add rake dev:cache task to enable dev mode caching.
Taken from @Sonopa's commits on PR #19091.

Add support for dev caching via "rails s" flags.

Implement suggestions from @kaspth.

Remove temporary cache file if server does not have flags.

Break at 80 characters in railties/CHANGELOG.md

Remove ability to disable cache based on server options.

Add more comprehensive options: --dev-caching / --no-dev-caching
2015-08-04 23:41:23 -04:00
Rafael Mendonça França
17eb64213a Merge pull request #21105 from os97673/allow-minitest-plugins
Allow Minitest to load plugins. Fixes #21102
2015-08-03 16:13:17 -03:00
Mehmet Emin İNAÇ
271c8e12af Inform user to add script in correct location into the application.js manifest file [ci skip]
use it

change the warning
2015-08-03 19:42:14 +03:00