Commit Graph

67 Commits

Author SHA1 Message Date
Fumiaki MATSUSHIMA 61c4be4777 Output junit format test report 2019-04-04 14:34:46 +09:00
Richard Macklin fb0c81d349 Remove obsolete yarn.lock files and check in root yarn.lock file 2018-12-02 10:02:14 -08:00
bogdanvlviv f11cfd4068
Add `/yarn-error.log` to `.gitignore` 2018-10-21 22:44:11 +03:00
David Heinemeier Hansson 4838c1716a
Make Webpacker the default JavaScript compiler for Rails 6 (#33079)
* Use Webpacker by default on new apps

* Stop including coffee-rails by default

* Drop using a js_compressor by default

* Drop extra test for coffeescript inclusion by default

* Stick with skip_javascript to signify skipping webpack

* Don't install a JS runtime by default any more

* app/javascript will be the new default directory for JS

* Make it clear that this is just for configuring the default Webpack framework setup now

* Start using the Webpack tag in the default layout

* Irrelevant test

* jQuery is long gone

* Stop having asset pipeline compile default application.js

* Add rails-ujs by default to the Webpack setup

* Add Active Storage JavaScript to application.js pack by default

* Consistent quoting

* Add Turbolinks to default pack

* Add Action Cable to default pack

Need some work on how to set the global consumer that channels will
work with. @javan?

* Require all channels by default and use a separate consumer stub

* Channel generator now targets Webpack style

* Update task docs to match new generator style

* Use uniform import style

* Drop the JS assets generator

It was barely helpful as it was. It’s no longer helpful in a Webpacked
world. Sayonara!

* Add app/javascript to the stats directories

* Simpler import style

Which match the other imports.

* Address test failures from dropping JS compilation (and compression)

* webpacker-default: Modify `AssetsGeneratorTest`

Before:

```
$ bin/test test/generators/assets_generator_test.rb
Run options: --seed 46201

F

Failure:
AssetsGeneratorTest#test_assets [/Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/assets_generator_test.rb:12]:
Expected file "app/assets/javascripts/posts.js" to exist, but does not

bin/test /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/assets_generator_test.rb:10

.

Finished in 0.031343s, 63.8101 runs/s, 95.7152 assertions/s.
2 runs, 3 assertions, 1 failures, 0 errors, 0 skips
```

After:

```
$ bin/test test/generators/assets_generator_test.rb
Run options: --seed 43571

..

Finished in 0.030370s, 65.8545 runs/s, 65.8545 assertions/s.
2 runs, 2 assertions, 0 failures, 0 errors, 0 skips
```

* webpacker-default: Modify `ChannelGeneratorTest`

Before:

```
$ bin/test test/generators/channel_generator_test.rb
Run options: --seed 8986

.F

Failure:
ChannelGeneratorTest#test_channel_with_multiple_actions_is_created [/Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:43]:
Expected file "app/assets/javascripts/channels/chat.js" to exist, but does not

bin/test /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:34

.F

Failure:
ChannelGeneratorTest#test_channel_is_created [/Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:29]:
Expected file "app/assets/javascripts/channels/chat.js" to exist, but does not

bin/test /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:22

E

Error:
ChannelGeneratorTest#test_cable_js_is_created_if_not_present_already:
Errno::ENOENT: No such file or directory @ apply2files - /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/fixtures/tmp/app/assets/javascripts/cable.js

bin/test /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:60

F

Failure:
ChannelGeneratorTest#test_channel_suffix_is_not_duplicated [/Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:87]:
Expected file "app/assets/javascripts/channels/chat.js" to exist, but does not

bin/test /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:80

F

Failure:
ChannelGeneratorTest#test_channel_on_revoke [/Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:77]:
Expected file "app/assets/javascripts/cable.js" to exist, but does not

bin/test /Users/ttanimichi/ghq/github.com/ttanimichi/rails/railties/test/generators/channel_generator_test.rb:68

Finished in 0.064384s, 108.7227 runs/s, 481.4861 assertions/s.
7 runs, 31 assertions, 4 failures, 1 errors, 0 skips
```

After:

```
$ bin/test test/generators/channel_generator_test.rb
Run options: --seed 44857

.......

Finished in 0.060243s, 116.1961 runs/s, 697.1764 assertions/s.
7 runs, 42 assertions, 0 failures, 0 errors, 0 skips
```

* Fix shared generator tests.

* webpacker-default: Modify `ControllerGeneratorTest`

The JS assets generator was dropped. ref. 46215b1794

* Revert "Simpler import style". It's currently failing with an error of "TypeError: undefined is not an object (evaluating '__WEBPACK_IMPORTED_MODULE_2_activestorage___default.a.start')". Waiting for @javan to have a look.

This reverts commit 5d3ebb7105.

* require webpacker in test app

* Add webpacker without making the build hang/timeout. (#33640)

* use yarn workspaces to allow for installing unreleased packages and only generate js/bootsnap when required

* no longer need to have webpacker in env templates as webpacker moved this config to yml file

* Fix rubocop violation

* Got the test passing for the running scaffold

* update expected lines of code

* update middleware tests to account for webpacker

* disable js in plugins be default to get the tests passing (#34009)

* clear codeclimate report issues

* Anything newer than currently released is good

* Use Webpacker development version during development of Rails

* Edge should get development webpacker as well

* Add changelog entry for Webpacker change
2018-09-30 22:31:21 -07:00
bogdanvlviv 0f98954a83
Clean up and consolidate .gitignores
* Global ignores at toplevel .gitignore
* Component-specific ignores in each toplevel directory
* Remove `actionview/test/tmp/.keep` for JRuby

```
rm actionview/test/tmp/ -fr
cd actionview/
bundle exec jruby -Itest test/template/digestor_test.rb
```

Related to #11743, #30392.

Closes #29978.
2018-02-17 14:26:19 -08:00
George Claghorn ede22d29af Ignore activestorage/test/service/configurations.yml
This file is intended to be modified as needed for testing services locally. Changes to it should rarely, if ever, be committed.
2017-09-11 18:03:27 -04:00
Rafael Mendonça França fe4a5706ac
Test rails-ujs in our travis matrix 2017-02-22 13:49:28 -05:00
palkan 62577fb7ff [ci skip] Add .byebug_history to .gitignore 2017-01-11 14:29:07 +03:00
Jeremy Daer cad75ecf67 .gitignore: Ignore .ruby-version in any subdir 2015-09-07 16:37:14 -07:00
Rafael Mendonça França b1edc3789a Track Gemfile.lock at the repository
The main reason is to make bisect easier.

In some points, we have a lot of git dependencies. Since we don't have
the information of which commit we are referring to, bundler get the
latest commit of the master branch of the dependency. This sometimes
returns a version that is not compatible with Rails anymore, making the
tests fail and the harder to identify the commit that introduced a bug.

Also this will make sure that a contributor will always get a set of
dependencies that are passing with our tests.

In our CI server we delete the lock file to make sure we are always
testing against the newest release of our dependencies.
2015-02-18 15:14:46 -02:00
Prathamesh Sonpatki 42275a6bad Updated link to to GitHub article about ignoring files [ci skip]
- http://help.github.com/ignore-files redirects to https://help.github.com/articles/ignoring-files
2013-05-05 20:33:24 +05:30
Xavier Noria 7a5aa720c4 encapsulates API generation in Rails::API::Task 2013-03-30 00:10:52 +01:00
Guillermo Iguaran abcdafe3c0 Ignore all pkg folders (including also top level one) 2013-03-23 23:19:28 -05:00
robertomiranda 9c940e5760 Ignore pkg folders 2013-03-23 22:31:55 -05:00
José Valim 99bb2fd892 Update .gitignore
Get rid of old .rvmrc and .rbenv-version files.
2013-02-05 14:03:13 -07:00
Adam Mckaig 36acc0a7f4 Ignore .ruby-version 2013-02-05 11:46:51 -05:00
Xavier Noria 6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00
Aaron Patterson a437986f43 allow people to set a local .Gemfile so that things like ruby-debug are not required for regular development 2011-11-17 14:41:53 -08:00
Jeremy Kemper 139562f241 Clean up .gitignore and make a note about using global ignores 2011-10-25 13:30:50 -07:00
José Valim 057a268d45 Revert "Ignore .rbx directories (rbx compiled bytecode files)"
This should go in your ~/.gitignore.

This reverts commit e75c18bff8.
2011-10-25 22:23:55 +02:00
Jon Leighton e75c18bff8 Ignore .rbx directories (rbx compiled bytecode files) 2011-10-23 18:07:17 +03:00
Arun Agrawal 1e8feb8440 sqlnet.log file to gitignore. Generates when running with oracle! 2011-10-08 10:06:19 +05:30
Guillermo Iguaran 4fb4484cad Add .rbenv-version to .gitignore 2011-08-20 15:57:24 -05:00
Aaron Patterson c7af6cf58e we should not ignore all gems in here 2011-08-04 16:31:57 -07:00
Xavier Noria e68b7a001d (temporary hack) generate a main file for RDoc escaping "Rails"
RDoc autolinks the word "Rails" to the doc page for the Rails module.
But README.rdoc is displayed in the home page at GitHub and the slashes
are visible there, which is weird. We leave by now the slashes off in
the file, and generate a second file for the API with them.
2011-05-01 13:15:15 +02:00
Diego Carrion a0629927b2 added activesupport/test/tmp to gitignore
[#6484 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-28 13:14:16 -02:00
Mark Turner cd12c36996 Added .rvmrc to gitignore 2011-02-21 17:19:13 +08:00
Emilio Tagua 3e5efb3708 Remove nbproject form gitignore. This shouldn't be here in the first place. 2011-02-18 16:07:58 -03:00
Marcin Raczkowski 3df4460a74 IdentityMap - Adding Weakling and IM Base as concern 2010-11-19 19:03:56 -03:00
Carl Lerche aa0732dc00 Ignore the dist directory 2010-11-16 17:19:47 -08:00
Jeremy Kemper d7c1057652 Bump bundler dependency to 1.0.0.beta.2 or later 2010-07-01 10:44:53 -07:00
Andrew White 40d90ed7df Ignore generated railties RDocs [#4289 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 22:45:29 -07:00
Jeremy Kemper e1daf3fb73 Remove bin dir from .gitignore 2010-02-26 08:09:09 -08:00
Carlhuda 47498a7f59 Woops, forgot to actually add active_support/core_ext/file/path.rb 2010-02-23 17:42:26 -08:00
José Valim efa850558f Make bin/rails call rails/commands/application, fix generators usage and update .gitignores. 2010-02-03 18:49:47 +01:00
Joshua Peek 5a8e7287c5 Set a good example, no system ignores in project ignore file 2010-01-13 20:26:01 -06:00
Carlhuda c446b1b12b Ignore all pkg files 2009-12-02 11:35:48 -08:00
Yehuda Katz + Carl Lerche 82b9b151ff Refactor plugins 2009-11-11 18:09:16 -08:00
Yehuda Katz + Carl Lerche 4f6d6f7031 Have all the tests running off a single Gemfile 2009-10-20 16:34:44 -07:00
José Valim 2d7abe245e Renamed Orchestra to Notifications once again [#3321 state:resolved] 2009-10-15 18:51:51 -03:00
Michael Koziarski 126f623711 don't ignore all bin directories 2009-10-06 15:53:25 +13:00
Joshua Peek accd9b4634 Restore "Start Rails::Application object
This reverts commit f14ad41456.
2009-09-25 21:32:28 -05:00
Joshua Peek f14ad41456 Revert "Start Rails::Application object"
This reverts commit 4129449594.
2009-09-25 20:41:40 -05:00
Yehuda Katz + Carl Lerche 4129449594 Start Rails::Application object 2009-09-25 17:42:53 -07:00
Yehuda Katz + Carl Lerche f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00
Joshua Peek ef38e67562 Ignore bundled gems 2009-09-13 14:36:20 -05:00
Yehuda Katz 76cd4cb27e Memoize in the endpoint. 2009-09-12 15:38:34 -05:00
Yehuda Katz ddb4600ce6 Get ActionPack's test running on bundled gems. This should make running tests on new machines, as well as CI, work well. 2009-09-12 15:22:11 -05:00
Yehuda Katz + Carl Lerche f3fc5c4b5f Refactor ActionView::Resolver 2009-09-03 11:18:57 -07:00
Carl Lerche e3f5fd536e Add ActiveModel's ./pkg and ./doc to .gitignore 2009-09-03 08:59:26 -07:00