Commit Graph

538 Commits

Author SHA1 Message Date
Matthew Draper
6c08d480f1 Start Rails 5.2 development 2017-03-22 10:11:39 +10:30
eileencodes
eadbc82c47 Bump Capybara and include Minitest::Assertions
Capybara was updated in teamcapybara/capybara#1841 to use Minitest style
assertions so that system test output shows x number of assertions, x
numbe of failures, etc.

Before:

```
6 runs, 0 assertions, 0 failures, 0 errors, 0 skips
```

After:

```
6 runs, 7 assertions, 1 failures, 0 errors, 0 skips
```

This change bumps Capybara from 2.7.0 to 2.13.0 and includes the
required minitest assertion file in the test case. 🎉
2017-03-17 08:22:22 -04:00
Javan Makhmali
2d2b3025ec Restore action_cable.js UMD module support. Fixes #28366 2017-03-11 16:12:36 -05:00
Rafael Mendonça França
ea9566f6cd
Use released arel 2017-02-21 11:46:42 -05:00
eileencodes
1a0ca84a06 Move and rename system tests
* Move system tests back into Action Pack
* Rename `ActionSystemTest` to `ActionDispatch::SystemTestCase`
* Remove private base module and only make file for public
`SystemTestCase` class, name private module `SystemTesting`
* Rename `ActionSystemTestCase` to `ApplicationSystemTestCase`
* Update corresponding documentation and guides
* Delete old `ActionSystemTest` files
2017-02-20 15:07:35 -05:00
yuuji.yaginuma
4a694c19e2 Use released resque 2017-02-10 15:31:41 +09:00
Akira Matsuda
6a1c0218df delayed_job and delayed_job_active_record gems with AR5 support are available 2017-01-29 09:05:06 +09:00
Jeremy Evans
7da8d76206
Change ActionView ERB Handler from Erubis to Erubi
Erubi offers the following advantages for Rails:

* Works with ruby's --enable-frozen-string-literal option
* Has 88% smaller memory footprint
* Does no freedom patching (Erubis adds a method to Kernel)
* Has simpler internals (1 file, <150 lines of code)
* Has an open development model (Erubis doesn't have a
  public source control repository or bug tracker)
* Is not dead (Erubis hasn't been updated since 2011)

Erubi is a simplified fork of Erubis that contains just the
parts that are generally needed (which includes the parts
that Rails uses).  The only intentional difference in
behavior is that it does not include support for <%=== tags
for debug output.  That could be added to the ActionView ERB
handler if it is desired.

The Erubis template handler remains in a deprecated state
so that code that accesses it directly does not break.  It
can be removed after Rails 5.1.
2017-01-25 01:41:27 -07:00
Akira Matsuda
641a490e56 Revert "I guess we're ready for the randomized tests now"
This reverts commit 8c155c932f37fd2de5b530bc076ed60a03bc926c.

Not really 😢
2017-01-18 20:52:21 +09:00
Akira Matsuda
8c155c932f I guess we're ready for the randomized tests now 2017-01-18 18:27:05 +09:00
toshimaru
6e30114c0a update rubocop to 0.47 2017-01-16 15:34:30 +09:00
Akira Matsuda
46fdbc5290 Revert "bundle u mocha"
This reverts commit 66e5b9d3f47cd52143be0e6a216ade34bb52b9cc.

We're seeing some test failures in AR postgresql tests
2017-01-16 00:16:41 +09:00
Akira Matsuda
66e5b9d3f4 bundle u mocha
I see no reason not to use the newest stable version.
2017-01-15 22:58:40 +09:00
Rafael Mendonça França
e646bad5b7
Remove deprecated support to passing a column to #quote 2016-12-29 17:53:03 -05:00
Matthew Draper
774be3ea3b bundle update 2016-12-26 23:17:54 +10:30
Zachary Scott
eeb1926158 Bump sdoc to rc1 which includes zzak/sdoc#98 2016-12-25 17:55:21 +09:00
Bian Jiaping
88792b1b2e Fix rake guides:generate:kindle error 2016-12-18 23:13:50 +08:00
Guillermo Iguaran
ffb81ad6e3 rails-ujs is now shipped with Action View 2016-11-29 09:48:19 -05:00
Rafael França
06d2049618 Merge pull request #27196 from kirs/rubocop-gem
Add rubocop to Gemfile
2016-11-28 17:32:48 +01:00
Kir Shatrov
61fa0a8675 Add rubocop to Gemfile 2016-11-28 10:28:21 -05:00
Guillermo Iguaran
277b5f9af8 Add rails-ujs as dependency in the rails Gemfile 2016-11-21 18:58:36 -05:00
Jon Moss
3256dcd8b9 Install libxml-ruby gem so full XMLMini test suite can be run 2016-11-19 10:46:28 -05:00
Akira Matsuda
3a558aa2bc Make sure to bundle json 2.x on CI
Without this, bundler tries to bundle json 1.8 on Ruby 2.4 in some cases
https://travis-ci.org/rails/rails/jobs/175874852
2016-11-15 09:26:03 +09:00
Gaurav Sharma
f0bacbc2c4 update kindlerb gem
Ruby Kindle periodical-format ebook generator
2016-10-21 09:37:24 +05:30
Zachary Scott
db85fa1db4 Include sdoc 1.0.0.beta2 which includes updated rdoc w/o hard json dep 2016-10-07 18:51:27 +09:00
Zachary Scott
91efc4fc0b Bump sdoc to 1.0.0.beta1 which includes fix to support Ruby 2.4 2016-10-07 18:42:22 +09:00
Matthew Draper
acd7ba795e Use a branch of websocket-client-simple, to work around read/close race 2016-10-06 12:51:26 +10:30
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
Matthew Draper
7c812c2401 Use websocket-client-simple instead of Faye as a websockets client
Mostly, this is just to avoid EventMachine. But there's also an argument
to be made that we're better off using a different protocol library for
our test suite than the one we use to implement the server.
2016-10-02 12:25:33 +10:30
Rafael Mendonça França
12d5c21031
Override the github git source instead of changing manually all entries 2016-09-14 10:58:21 -03:00
Prathamesh Sonpatki
cc769d03dc
Use :git for specifying dependencies from github with https protocol
- This is required for bundler 1.13.0 because of which lot of specs are
  failing on Travis CI.
- Similar to https://travis-ci.org/rails/rails/jobs/158905576#L559
2016-09-10 20:15:53 +05:30
Xavier Noria
9ed7404498 applies new string literal convention in Gemfile
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:23:19 +02:00
Sean Griffin
ca0b6d0d41 Don't require C dependencies on Windows/JRuby 2016-08-03 10:14:26 -04:00
Rafael Mendonça França
ab503f72c5
Do not require rb-inotify 2016-07-27 23:47:26 -03:00
Rafael Mendonça França
5859cbddc3
Use a form of rb-inotify to fix broken tests with Ruby 2.2.5
See https://github.com/nex3/rb-inotify/pull/49
2016-07-27 23:39:10 -03:00
yuuji.yaginuma
8c46abfd70 test with latest resque
When run test of Active Job with resque 1.26, occurs following error.

```
QueuingTest#test_current_locale_is_kept_while_running_perform_later:
NoMethodError: undefined method `current_tags' for #<Resque::QuietFormatter:0x0055b44f63ed50>
    /home/yaginuma/program/rails/master_y_yagi/rails/activejob/lib/active_job/logging.rb:51:in `logger_tagged_by_active_job?'
```

This was happening for the formatter class of resque not the formatter class of
Rails is they've been used to logger.formatter.
This was happening because become fomatter is changed during the instantiation
of worker in the resque 1.26.
In the master, unless the environment variable is set, fomatter is so as not to
be changed, test will pass.

Ref: https://github.com/resque/resque/pull/1439
2016-07-05 10:02:41 +09:00
Rafael Mendonça França
14dc9b9cd9
Use sass-rails in our test suite 2016-06-30 19:39:37 -03:00
Rafael Mendonça França
19ba6b8d4e
Merge pull request #25607 from sstephenson/turbolinks-5-final
Update to Turbolinks 5.0.0 final
2016-06-30 14:39:36 -03:00
Rafael Mendonça França
e4c8aae643
Point to released coffee-rails 2016-06-30 14:35:25 -03:00
Sam Stephenson
10ba790124 Update to Turbolinks 5.0.0 final 2016-06-30 12:22:16 -05:00
Jon Moss
0c330888d6
Require Nokogiri >= 1.6.8
per security release today --> https://groups.google.com/forum/#!topic/ruby-security-ann/RCHyF5K9Lbc
2016-06-06 23:10:37 -04:00
Javan Makhmali
0e9c340d6f Update Blade and its Sauce Labs plugin for EventMachine 1.2 compatibility 2016-06-04 18:54:34 -04:00
Javan Makhmali
20c14c5f13 Lock Faye version to avoid bug with its Promise polyfill, use mainline blade-sauce_labs_plugin gem 2016-05-31 10:44:09 -04:00
Jon Moss
8cfce058d9
CI: run Action Cable browser tests in Sauce Labs
Allow failures until test runs are consistently stable, not hanging.

Closes #24943.

Signed-off-by: Jeremy Daer <jeremydaer@gmail.com>
2016-05-25 09:21:28 -07:00
Javan Makhmali
11078dddbb Build action_cable.js with Blade 2016-05-24 13:11:10 -04:00
Vipul A M
61483b18bc
Remove Blade gem dependency
Apps that depend on Action Cable don't need Blade for app development,
so we can remove the gem dependency.

We do need Blade for Action Cable dev, so we bundle it in the Gemfile.

Signed-off-by: Jeremy Daer <jeremydaer@gmail.com>
2016-05-21 12:41:01 -07:00
Rafael Mendonça França
8ecc5ab1d8 Start Rails 5.1 development 🎉 2016-05-10 03:46:56 -03:00
Jeremy Daer
ab56c92f3c
Merge pull request #23461 from kamipo/prepared_statements_for_mysql2_adapter
Add prepared statements support for `Mysql2Adapter`
2016-04-23 22:28:52 -07:00
Sean Griffin
1f47c4b0df Make file update checker tests more resilient on Windows
Without the `wdm` gem, it appears that `listen` keeps an open handle to
each of these files, causing them not to be removed when the tempdir
tries to clean iteslf up, and then directory to fail to unlink. In
addition to fixing that particular failure, we now construct OS agnostic
paths, and capture exceptions if the directory fails to unlink so that
minitest will report it rather than crash
2016-04-21 10:54:54 -06:00
Ryuta Kamizono
3f6574efb1 Add prepared statements support for Mysql2Adapter 2016-04-21 09:17:42 +09:00