Pat Allan
acea68de02
Adding frozen_string_literal pragma to Railties.
2017-08-14 19:08:09 +02:00
Matthew Draper
87b3e226d6
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
...
This reverts commit 3420a14590
, reversing
changes made to afb66a5a59
.
2017-07-02 02:15:17 +09:30
Matthew Draper
3420a14590
Merge pull request #29540 from kirs/rubocop-frozen-string
...
Enforce frozen string in Rubocop
2017-07-02 01:11:50 +09:30
Kir Shatrov
cfade1ec7e
Enforce frozen string in Rubocop
2017-07-01 02:11:03 +03:00
yuuji.yaginuma
6fbd405a2e
Clear screenshots files in tmp:clear
task
...
If system test fails, it creates screenshot under `tmp/screenshots`.
34fe2a4fc7/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb (L45)
But currently, screenshot files is not cleared by `tmp:clear` task.
This patch make clears screenshot files with `tmp:clear` task as well
as other tmp files.
2017-06-27 07:13:00 +09:00
Xavier Noria
69ab3eb57e
applies new string literal convention in railties/lib
...
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:15:47 +02:00
Xavier Noria
fbfc91de32
issue FileUtils commands directly in Rake tasks
...
Rake includes (an extended version of) FileUtils in tasks.
It is more idiomatic that they use this provided interface.
2016-04-11 16:55:05 +02:00
Xavier Noria
0caf8ffd7d
revises fileutils dependencies in railties
...
With the exception of what is loaded in active_support/rails,
each file is responsible for its own dependencies. You cannot
rely on runtime order of execution.
2016-04-11 13:16:17 +02:00
yuuji.yaginuma
ab18d37fa4
do not create unnecessary directory
...
This was added in a4c358f
, but `config.assets` has been removed in 5172d93
.
Also, do not use env path to `Sprockets::Cache::FileStore` even `sprockets-rails`.
ref: https://github.com/rails/sprockets-rails/blob/master/lib/sprockets/railtie.rb#L129
2016-04-10 20:43:07 +09:00
yuuji.yaginuma
9e99bb512d
fix task description for tmp:create
2015-01-25 21:25:35 +09:00
Robin Dupret
1fd44213aa
Remove the tmp/sessions folder and its clear task
...
Commit 1aea470
introduced this directory but this was at a time when the
default way to store sessions was on the file system under the tmp
directory.
Let's remove references to it from the documentation as well.
[Robin Dupret & yui-knk]
2015-01-03 19:42:07 +01:00
Robin Dupret
5ad7f8ab41
Use Ruby 1.9 Hash syntax in railties
2012-10-14 18:26:58 +02:00
Guillermo Iguaran
a4c358f84c
Assets cache shouldn't be shared between different environments
2012-09-28 15:20:17 -05:00
Aaron Patterson
fa736e69a1
oops, should be directory
2012-08-13 17:15:20 -04:00
Aaron Patterson
621e079290
speed up cache directory creation
...
Let Rake control the cache directories. If the directory already
exists, rake will skip creating it (vs the previous task which would
always try to mkdir_p)
2012-08-13 13:28:03 -04:00
José Valim
704ee0df65
Use cache/assets instead.
2011-07-12 22:55:34 -03:00
José Valim
8f0e0b63f5
assets.cache_store now defaults to filesystem. You will want to share tmp/assets_cache between deploys.
2011-07-12 22:30:17 -03:00
David Heinemeier Hansson
29acc17c0f
Cut down on tasks shown in rake -T
2010-06-09 16:19:03 -04:00
Yehuda Katz + Carl Lerche
f0dd77c6be
Move railties/lib/* into railties/lib/*
2009-09-24 16:11:41 -07:00