Commit Graph

822 Commits

Author SHA1 Message Date
Ryuta Kamizono 815d1abf39 Fix `Style/StringLiterals` violations for Active Storage
```
% be rubocop -a --only Style/StringLiterals activestorage
Inspecting 74 files
........................................CCCCCCCCCC.C........CC.......C.C..

(snip)

74 files inspected, 31 offenses detected, 31 offenses corrected
```
2017-08-03 03:13:11 +09:00
David Heinemeier Hansson c6974229d0 Merge branch 'master' into active-storage-import 2017-08-02 09:52:14 -05:00
Rafael Mendonça França feb1ddae02 Merge remote-tracking branch 'origin/master' into unlock-minitest 2017-08-01 17:34:14 -04:00
claudiob 98bb99ef61 Don't depend on HTTParty
"httparty" is only added in #30020 to write two tests to make PUT requests
against S3 and GCS.

The same requests can be made with net/http, removing a dependency from the Gemfile.
2017-08-01 10:56:39 -07:00
David Heinemeier Hansson 54663f55ef Resolve gemspec typo 2017-07-31 15:55:55 -05:00
Sean Griffin c146065b8d Merge pull request #29940 from kamipo/update_gemfile_lock
Update Gemfile.lock to reflect arel 9.0.0.alpha
2017-07-25 13:57:55 -04:00
Ryuta Kamizono 4c8c48eb7f Update Gemfile.lock to reflect arel 9.0.0.alpha
Follow up to 089ca52.
2017-07-26 02:52:05 +09:00
Sean Griffin f516ee09d5 Merge pull request #29932 from koic/supress_deprecated_warning_in_actioncable
Suppress deprecated warning in Action Cable
2017-07-25 13:49:27 -04:00
Sean Griffin 82200b2541 Fix failing tests
`bind_values` was removed from Arel
2017-07-25 09:14:48 -04:00
Koichi ITO 68eb967ee6 Suppress deprecated warning in Action Cable 2017-07-25 15:53:02 +09:00
Rafael Mendonça França d9ca57ab0b Merge pull request #29859 from dwightwatson/feature/rack-test
Update rack-test dependency constraint
2017-07-24 16:47:56 -04:00
Rafael França 998ec40f9e Merge pull request #29908 from deivid-rodriguez/fix_warnings_in_railties_tests
Fix warnings in railties tests
2017-07-24 14:59:42 -04:00
Sean Griffin 213796fb49 Refactor Active Record to let Arel manage bind params
A common source of bugs and code bloat within Active Record has been the
need for us to maintain the list of bind values separately from the AST
they're associated with. This makes any sort of AST manipulation
incredibly difficult, as any time we want to potentially insert or
remove an AST node, we need to traverse the entire tree to find where
the associated bind parameters are.

With this change, the bind parameters now live on the AST directly.
Active Record does not need to know or care about them until the final
AST traversal for SQL construction. Rather than returning just the SQL,
the Arel collector will now return both the SQL and the bind parameters.
At this point the connection adapter will have all the values that it
had before.

A bit of this code is janky and something I'd like to refactor later. In
particular, I don't like how we're handling associations in the
predicate builder, the special casing of `StatementCache::Substitute` in
`QueryAttribute`, or generally how we're handling bind value replacement
in the statement cache when prepared statements are disabled.

This also mostly reverts #26378, as it moved all the code into a
location that I wanted to delete.

/cc @metaskills @yahonda, this change will affect the adapters

Fixes #29766.
Fixes #29804.
Fixes #26541.
Close #28539.
Close #24769.
Close #26468.
Close #26202.

There are probably other issues/PRs that can be closed because of this
commit, but that's all I could find on the first few pages.
2017-07-24 09:07:24 -04:00
David Rodríguez 0c2c32d3d6 Fix warnings in railties tests
This warning has been fixed in sass-rails. This change picks up the fix.
2017-07-24 12:55:08 +02:00
Dwight Watson de550be5ea Update rack-test dependency constraint 2017-07-24 15:09:00 +10:00
Kasper Timm Hansen 5c16dd35a2 Move back to @matthewd's close io fixed rb-inotify. 2017-07-19 19:45:42 +02:00
Burke Libbey 0312a5c67e
Add bootsnap to default Gemfile:
Bootsnap precomputes load path resolution and caches ruby ISeq
and YAML parsing/compilation, reducing application boot time by
approximately 50% on supported configurations.
2017-07-17 13:17:45 -04:00
Kasper Timm Hansen 0391bbc01b Bump minitest; Use double quotes 2017-07-15 21:19:13 +02:00
Kasper Timm Hansen aad42dce10 Merge branch 'master' into unlock-minitest 2017-07-15 21:17:27 +02:00
Rafael Mendonça França 44f3ecbe5f Test thor master 2017-07-07 15:16:39 -04:00
Rafael Mendonça França 2975aeb888 Commit gemfile.lock 2017-07-04 14:55:50 -04:00
Kir Shatrov 4ee42379cc Use bulk INSERT to insert fixtures
Improves the performance from O(n) to O(1).
Previously it would require 50 queries to
insert 50 fixtures. Now it takes only one query.

Disabled on sqlite which doesn't support multiple inserts.
2017-06-20 13:18:53 -04:00
Matthew Draper 67a579419b Merge pull request #29488 from utilum/update_gemfile
Fixes FIXME: rb-inotify 0.99 has been released
2017-06-18 05:23:53 +09:30
utilum 96d58433c9 Fixes FIXME: rb-inotify 0.99 has been released 2017-06-17 18:59:41 +02:00
yuuji.yaginuma 3ab7483f47 Bundle capybara 2.14.1 that includes fix for Ruby warnings
Ref: https://github.com/teamcapybara/capybara/pull/1868
2017-06-08 11:14:54 +09:00
Akira Matsuda d1d39710cc Let's test nokogiri 1.8 against edge Rails, and vice versa 2017-06-06 17:32:49 +09:00
Rafael Mendonça França 62d316c6d8
Merge branch 'master' into unlock-minitest 2017-06-02 12:24:31 -04:00
Rafael França eb804ad5a7 Merge pull request #29187 from robin850/remove-mathn
Remove requirement on mathn
2017-05-30 11:37:15 -04:00
Robin Dupret ba84867549 Remove requirement on mathn
The test using mathn was first introduced in f1d9179 to check that the
`distance_of_time_in_words` properly doesn't use the `Fixnum#/` method
by explicitly requiring this library as it redefines this method.

Given that `mathn` has been gemified in Ruby 2.5 and is deprecated since
version 2.2, we can certainly safely assume that people will most-likely
not require this library in their application.

However, to make sure that we don't regress, let's add a test similar to
the one before f1d9179.
2017-05-30 13:46:21 +02:00
Koichi ITO 6c13663c2b Bump RuboCop to 0.49.1 2017-05-30 07:30:22 +09:00
Kasper Timm Hansen e1758b5e8c Merge branch 'master' into unlock-minitest 2017-05-29 20:37:35 +02:00
yuuji.yaginuma d4d44e7e1d Bump `delayed_job_active_record` gem 2017-05-28 21:33:16 +09:00
Matthew Draper d93cd4357b Switch to rb-inotify master
https://github.com/guard/rb-inotify/pull/49 has been merged.
2017-05-27 09:38:08 +09:30
Koichi ITO 525586417e Bump rubocop and dependent gem versions 2017-05-24 15:20:00 +09:00
Akira Matsuda 7a2041335f bundle up sidekiq to the one with safer integration with Rails 5
see: https://github.com/mperham/sidekiq/blob/master/5.0-Upgrade.md
2017-05-21 21:34:33 +09:00
Akira Matsuda d577e780ba bundle up redis to the one that does not warn about ::Fixnum deprecation 2017-05-21 12:33:47 +09:00
Akira Matsuda 45d7d80ea6 mathn has been gemified in ruby 2.5 2017-05-19 18:42:43 +09:00
Akira Matsuda 579757cbff bundle mail 2.6.5 that includes fix for ::Fixnum warning 2017-05-19 17:50:25 +09:00
yuuji.yaginuma 6086fbaecf Bump rack version 2017-05-16 07:25:56 +09:00
Justin Coyne 673a5644ac Allow capybara minor releases
Capybara 2.14.0 was released. Loosen the tight constraint in the
generated Gemfile, so that Rails applications can take advantage of the
new version
2017-05-05 10:26:59 -05:00
Ryuta Kamizono 626f3d6088 Don't pass `arel.engine` to `Arel::SelectManager.new`
The argument of `Arel::SelectManager.new` is `table`, not `engine`.

https://github.com/rails/arel/blob/v8.0.0/lib/arel/select_manager.rb#L10
2017-05-05 15:39:42 +09:00
Yasuo Honda 4d07e1c60b Use mysql2 0.4.6 to suport MySQL 8.0.1
Follow up #28733 and brianmario/mysql2#840
2017-05-04 13:35:23 +00:00
Rafael Mendonça França 1421950512
Add minitest-bisect as part of the gemfile 2017-04-26 22:54:54 -07:00
Rafael Mendonça França 2883d2dff6
Release minitest lock so we can fix the order dependent tests 2017-04-26 22:53:55 -07:00
Zachary Scott 8e98cdfe63 Ask for a sane version of SDoc
This will allow me to push a release, including bug fixes,
without having to update Rails everytime.
2017-04-23 16:32:57 +09:00
Rafael Mendonça França 0871e5e5c1
Fix all style guides violations
Closes #28382
Closes #28651
2017-04-19 20:13:42 -04:00
Kasper Timm Hansen 01caad190f Bump the bundled GlobalID version. 2017-04-16 17:40:00 +02:00
Matthew Draper 19ae6597b8 Revert "Avoid broken faraday 0.12.0 release"
This reverts commit 82a7593e3a.
2017-04-02 21:32:33 +09:30
Matthew Draper 82a7593e3a Avoid broken faraday 0.12.0 release 2017-04-02 18:18:52 +09:30
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 f4acdd83ff
Preparing for 5.1.0.beta1 release 2017-02-23 14:53:21 -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
eileencodes 5bf0aa6745 Turn system testing into it's own gem and rename
Renames `Rails::SystemTestCase` to `ActionSystemTest` and moves it to a
gem under the Rails name.

We need to name the class `ActionSystemTestCase` because the gem expects
a module but tests themselves expect a class.

Adds MIT-LICENSE, CHANGELOG, and README for the future.
2017-02-20 15:07:33 -05:00
eileencodes 9730b1dba6 Add tests for system testing
* Adds test case test
* Adds driver adapter test
* Adds tests for capybara seleium driver (testing the settings not
actually opening the browser to test capybara w/ selenium because that
would so so so slow)
* Adds tests for rack test driver
* Adds tests for generators
2017-02-20 15:07:32 -05:00
Akira Matsuda c92520077c Test with the newest i18n
which is bundled in new apps by default
2017-02-11 06:12:07 +09:00
yuuji.yaginuma 4a694c19e2 Use released resque 2017-02-10 15:31:41 +09:00
Rafael Mendonça França f04a49b033
Fix rubocop violations 2017-02-09 23:13:41 -03: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
Akira Matsuda 786710b061 bundle update some gems
* puma 3.7.0: to let kill("TERM") properly terminate the process in railties test (3.6.2 doesnot on my machine)
* amq-protocol 2.1.0: to reduce warnings in AJ tests
* rails-html-sanitizer: missing change in a previous commit that updated Gemfile
2017-01-29 07:07:19 +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 8c155c932f.

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
Rafael Mendonça França af5dd491b5
Fix all rubocop violations 2017-01-17 22:10:14 -05: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 66e5b9d3f4.

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
Kir Shatrov 240f1e7162 Update builder gem to avoid deprecations of 2.4 2017-01-13 13:50:25 -05:00
Akira Matsuda 1db9e9e8f1 bundle u sqlite3
this fixes sqlite3-1.3.12/lib/sqlite3/pragmas.rb:301: warning: method redefined; discarding old integrity_check
2017-01-05 17:39:45 +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
Tony Arcieri c434b97628 Upgrade to nio4r 2.0.0
nio4r 2.0.0 primarily includes new features and bugfixes, with few breaking
changes. The primary reason for bumping the major version is dropping support
for all Ruby versions prior to 2.2.2, so as to match Rails 5.

Full release announcement here:

https://groups.google.com/forum/#!topic/socketry/ZDIUj1ufiJ8
2016-12-28 19:45:39 -08:00
Rafael Mendonça França fce3c0cf64
Upgrade gems 2016-12-28 00:34:59 -05:00
Matthew Draper 933ae2cc14 bundle update 2016-12-27 23:58:29 +10:30
Ryuta Kamizono 821e17de66 Restore missing Gemfile.lock entries
These lines were lost in 774be3ea3b (diff-e79a60dc6b85309ae70a6ea8261eaf95L204).
2016-12-27 00:51:07 +09: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
Akira Matsuda f28b8892ab bundle u rake to 12.0.0 2016-12-24 06:00:49 +09:00
Jon Moss b50090a561 Bump concurrent-ruby and sprockets
Bumped to Ruby 2.4 compatible versions
2016-12-20 15:07:33 -05:00
Bian Jiaping 88792b1b2e Fix rake guides:generate:kindle error 2016-12-18 23:13:50 +08:00
eileencodes 8a37ac9264 Bump coffee-script-source to fix bug
Coffee script 1.12.1 was released and contained a bug where coffee
script was undefined. 1.12.1 was yanked and 1.12.2 was released. This
bumps coffee-script-source so that CI Railties tests pass.

See: https://github.com/jashkenas/coffeescript/issues/4403
2016-12-16 10:43:44 -05: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
Javan Makhmali 6f30cb3559 Bump Blade and its Sauce Labs plugin to fix tunnel shutdown and related error
https://travis-ci.org/rails/rails/jobs/165766716#L506
2016-11-21 09:49:59 -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
Gianfranco Montoya 13441a77a6 Update sqlite3 2016-11-04 11:12:28 -05:00
Rafael França c05a209fe9 Merge pull request #26851 from Gaurav2728/update-kindlerb
update kindlerb gem
2016-10-25 14:19:12 -02:00
Guillermo Iguaran 52852733d2 Update mysql2 version in Gemfile.lock 2016-10-22 20:09:02 -05: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
Ryuta Kamizono 432cc58a29 Restore missing Gemfile.lock entries
These lines were lost in https://github.com/rails/rails/pull/26695/files#diff-e79a60dc6b85309ae70a6ea8261eaf95L192.
2016-10-04 09:25:31 +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
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
Ryuta Kamizono f88ed6020b Restore missing Gemfile.lock entries
These lines were lost in https://github.com/rails/rails/commit/12d5c210#diff-e79a60dc6b85309ae70a6ea8261eaf95L191.
2016-09-20 23:01:35 +09:00
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
Ryuta Kamizono 906577db06 Add accidentally removed dependency in Gemfile.lock
Follow up to ca0b6d0d41.
2016-08-04 07:55:47 +09: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 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
Rafael Mendonça França 3778350fed
Bump arel 2016-07-27 20:23:31 -03:00
Prathamesh Sonpatki 1a50262b5b
Bump Arel to fix few failing tests on Ruby 2.4 related to the Integer unification
* Following tests were failing on Ruby edge 2.4 version -

- RelationTest#test_update_all_with_joins_and_offset_and_order:
- RelationTest#test_update_all_with_joins_and_offset:
- BasicsTest#test_no_limit_offset:
- CalculationsTest#test_offset_is_kept:
- ActiveRecord::CollectionCacheKeyTest#test_cache_key_for_queries_with_offset_which_return_0_rows:
- FinderTest#test_third_to_last:

* As Arel 7.1 supports Integer unification after https://github.com/rails/arel/pull/437 we can use it.
2016-07-24 09:17:45 +05:30
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 3bf0fe4a9c
Do not allow rack pre releases 2016-06-30 15:12:08 -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
Prathamesh Sonpatki acad62bce5
Fix failing railties tests
- Railties tests related to fetching asset URL started failing after the
  release of sprockets 3.6.1 on Travis.
- This was due to the change in
  https://github.com/rails/sprockets/pull/311/files
  which changed the logic in `concat_javascript_sources` to add `;` at
  the end of file if the source did not end with semicolon.
- Bumped up sprockets minor version and fixed the failing tests.
2016-06-18 20:56:21 -07: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
Vipul A M b22fc4972d
Revert back to a compatible bundler version 2016-05-25 09:43:15 -07: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
Prathamesh Sonpatki c80446fbee
Fix Gemfile.lock by updating rails-dom-testing
- Followup of https://github.com/rails/rails/pull/24946.
2016-05-10 10:43:56 +05:30
Rafael Mendonça França fbdcf5221a Preparing for 5.0.0.rc1 release 2016-05-06 16:54:40 -05:00
Rafael Mendonça França 5a4f7fc33f Upgrade all gems to make sure Rails works with rack 2.0.0.rc1 2016-05-06 16:16:28 -05:00
Jeremy Daer 06dc3fba46
Fix template resolver cache concurrency: "can't add a new key into hash during iteration"
Resolved by https://github.com/ruby-concurrency/concurrent-ruby/pull/529

Fixes #24627.
2016-05-02 15:05:03 -07:00
eileencodes f7a986012a Prep Rails 5 beta 4 2016-04-27 15:48:47 -05: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
yui-knk 5115c9ead3 Update Gemfile.lock
'rake' gem is bundled to '>= 11.1' by 3027970464
(#23499), but it seems the commit did not fully include Gemfile.lock's.
2016-03-31 01:17:33 +09:00
Benjamin Fleischer 3027970464 Run latest precompiled JRuby on CI only against ActionPack
Uses latest precompiled JRuby so that
we don't spend time downloading versions Travis has
not already compiled. http://rubies.travis-ci.org/

Uses latest jdk: oraclejdk8
per
https://docs.travis-ci.com/user/build-environment-updates/2015-02-03/#Ruby-VM
and
https://docs.travis-ci.com/user/languages/ruby/#Supported-Ruby-Versions-and-RVM

Follows on work in https://github.com/rails/rails/pull/23927 which was reverted
26fe5fa08d

JRUBY_OPTS minimize GC, disable JIT, for max test speed
  - https://github.com/rails/rails/pull/16613
  - https://github.com/rails/rails/pull/17088

Have Rails use JRuby-compatible Rake 11.1
  - The Rake task was passing --verbose, an invalid option, to contemporary JRuby
  - https://github.com/ruby/rake/pull/120
  - https://github.com/rails-api/active_model_serializers/pull/1585
  - https://github.com/jruby/jruby/issues/3653#issuecomment-195883717

No advantage to directly mounting JRuby over installing from cache; both on S3
  - b2d5b336b5
  - f4fad041b2
2016-03-30 02:11:45 -05:00
Prathamesh Sonpatki a05a9f5e79 Fix Gemfile.lock
- Resque version was locked to < 1.26 in 92f869a0c8 but
  Gemfile.lock was not updated.
2016-03-12 08:22:15 +05:30
Rafael Mendonça França 1e4de9bf9e Fix Gemfile.lock 2016-03-10 16:28:02 -03:00
Matthew Draper bbba0649f5 Merge pull request #23992 from matthewd/em-option
Support faye-websocket + EventMachine as an option
2016-03-04 05:31:48 +10:30
Rafael Mendonça França e2f08a1c0a Add test to make sure the sprockets cache is not shared per environment 2016-03-02 14:22:02 -03:00
Matthew Draper a373be9da4 Support faye-websocket + EventMachine as an option 2016-03-02 12:17:15 +10:30
eileencodes 826420b5fc Prep release for Rails 5 beta3 2016-02-24 10:27:02 -05:00
Sam Stephenson ab9fe5ebd3 Update to the latest Turbolinks gems 2016-02-23 17:56:19 -06:00
yui-knk 0161eaa817 Update dalli gem
dalli 2.7.6 fixed deprecation warning caused by using
`Rack::Session::Abstract::ID`.
This commit suppress warnings on ActionPack tests.

See:
9874a7c3ad
2016-02-14 12:56:16 +09:00
Prathamesh Sonpatki 2669f3753d Update turbolinks-rails for passing railties test
Ref - https://github.com/turbolinks/turbolinks-rails/pull/3
2016-02-05 17:02:22 +05:30
Rafael Mendonça França dd67df6136 Test with Turbolinks 5 2016-02-04 14:24:36 -02:00
Mike Perham cf18c34e3a Remove unused dependency
railties uses method_source, activesupport does not.  I assume code was refactored and the dependency wasn't removed.
2016-02-03 14:28:55 -08:00
Mike Perham f3433f7c75 Remove json gem dependency
All modern Rubies ship JSON as part of stdlib.  Using the gem actually hurts multi-platform support due to build difficulties on Windows.
2016-02-03 10:49:14 -08:00
Sean Griffin 49f6ce63f3 Preparing for Rails 5.0.0.beta2 2016-02-01 14:37:52 -07:00
Matthew Draper 8a51f6fbbf Merge pull request #23381 from matthewd/uneventful-redis
Redis sans EventMachine
2016-02-02 02:44:06 +10:30
Prathamesh Sonpatki ad9ed7e36c Update Gemfile.lock
- Leftover from 93abf58787.
2016-02-01 06:18:04 +05:30
Matthew Draper e77368637e Switch the default redis adapter to a single-stream model
This new adapter does get a little more intimate with the redis-rb gem's
implementation than I would like, but it's the least bad of the
approaches I've come up with.
2016-02-01 01:56:47 +10:30
Matthew Draper ce37de4a19 Add a couple of tests that connect with a WS client 2016-01-30 03:46:37 +10:30
Matthew Draper 74497eabd5 Revert "Revert "Eliminate the EventMachine dependency"" 2016-01-30 03:46:37 +10:30
Rafael Mendonça França 04de7353c2 Bundle update to fix tests locally 2016-01-28 14:57:08 -05:00
Rafael Mendonça França 2c131141ca Remove celluloid from the Gemfile 2016-01-27 15:44:26 -05:00
Eileen M. Uchitelle cadb8af32d Merge pull request #23284 from maclover7/suckerpunch-2
Update ActiveJob adapter for sucker_punch 2.0
2016-01-27 15:31:52 -05:00
Jon Moss a9a64c490d Update ActiveJob adapter for sucker_punch 2.0
This PR includes two changes for 2.0.0:

- Breaking API change around `async.perform` --> `perform_async`
- New addition of `perform_in`, which now allows end users of the
  adapter to use the `enqueued_at` public API method.
2016-01-27 12:49:35 -05:00
David Heinemeier Hansson 9ea7aa84d1 Revert "Eliminate the EventMachine dependency" 2016-01-27 14:33:15 +01:00
Ryuta Kamizono 943bb6d7ac Update `Gemfile.lock` 2016-01-26 08:53:30 +09:00
Matthew Draper 322dca293b Import the relevant portions of faye-websocket
(as adapted to use concurrent-ruby / nio4r instead of eventmachine)
2016-01-24 22:52:40 +10:30
Matthew Draper 68a9060d02 Using a hacked faye-websocket, drop EventMachine 2016-01-24 22:51:06 +10:30
Matthew Draper 9ff28c10eb Add tests for the ActionCable adapters 2016-01-24 21:13:40 +10:30
Jon Moss ae31da20cd Fix code review comments
- adapter -> pubsub (re)rename internally
- Change variable names to match method names
- Add EventMachine `~> 1.0` as a runtime dependency of ActionCable
- Refactor dependency loading for adapters
2016-01-18 19:37:25 -05:00
Jon Moss 6aeaed4c1a All Redis deps are now optional, Postgres --> PostgreSQL adapter 2016-01-18 18:59:30 -05:00
Prathamesh Sonpatki 330469e7c7 Checked in changes to Gemfile.lock on latest master
- Eventmachine version gets updated when `bundle` is run locally.
2016-01-17 19:26:10 +05:30
David Heinemeier Hansson 01c320001b Revert "Merge pull request #22977 from rails/revert-22934-master"
This reverts commit d0393fccff, reversing
changes made to 3b7ccadfc1.
2016-01-16 15:42:20 +01:00
David Heinemeier Hansson 36fe301564 Revert "Move async execution from celluloid to concurrent-ruby" 2016-01-08 20:09:25 +01:00
David Heinemeier Hansson 3b7ccadfc1 Merge pull request #22934 from mperham/master
Move async execution from celluloid to concurrent-ruby
2016-01-08 18:23:41 +01:00
Lachlan Sylvester 4ba66ef108 remove activemodel dependency on builder 2016-01-06 18:55:59 +11:00
Mike Perham 547713b4c9 Move async execution from celluloid to concurrent-ruby
This removes 8 runtime gem dependencies from Rails:

```
Using hitimes 1.2.3
Using timers 4.1.1
Using celluloid-essentials 0.20.5
Using celluloid-extras 0.20.5
Using celluloid-fsm 0.20.5
Using celluloid-pool 0.20.5
Using celluloid-supervision 0.20.5
Using celluloid 0.17.2
```
2016-01-05 14:31:16 -08:00
Prathamesh Sonpatki 64e4739102 Updated Gemfile.lock with latest change related to sucker_punch dependency
- Followup of bc194937ad.
2016-01-03 17:21:00 +05:30
eileencodes 7eae0bb88e Change `alpha` to `beta1` to prep for release of Rails 5
🎉 🍻
2015-12-18 12:14:09 -05:00
Rafael Mendonça França 477bed8871 Use released rack 2015-12-18 04:54:50 -02:00
Rafael Mendonça França 8f8cb1baa3 Install jquery-rails
It will make sure that the generated application in the tests get the
gem.
2015-12-18 04:13:53 -02:00
Matthew Draper 4a58aef7e3 Merge pull request #22642 from seuros/remove-mysql-adapter
Remove legacy mysql adapter
2015-12-18 13:51:04 +10:30
Jeremy Daer 7a6772c0e7 Use released GlobalID now that it provides URI::GID::MissingModelIdError for Active Job 2015-12-17 17:20:19 -07:00
Jon Moss 5d8ee1250f Require Nokogiri >= 1.6.7.1
Many CVEs released: https://groups.google.com/forum/#!topic/ruby-security-ann/aSbgDiwb24s
2015-12-17 17:35:25 -05:00
Rafael Mendonça França af5b05a4c0 Use release sprockets-rails 2015-12-17 18:22:58 -02:00
Rafael Mendonça França d41386d788 Use released jquery-rails 2015-12-17 18:17:52 -02:00
Rafael Mendonça França b611350e7c Use released arel 2015-12-17 18:11:29 -02:00
Rafael Mendonça França 9b28b252e2 Use released mail gem 2015-12-17 17:16:08 -02:00
Abdelkader Boudih fb24d0ed6c Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
Rafael Mendonça França 606c435450 Use released turbolinks in the test suite 2015-12-17 13:31:49 -02:00
David Heinemeier Hansson 48f5cecdb0 Merge pull request #22586 from rails/merge-action-cable
Merge Action Cable into master
2015-12-17 12:13:22 +01:00
Sean Griffin f39aa4dd39 Add mysql back to the Gemfile
I didn't mean to commit that!
2015-12-16 13:59:00 -07:00
Rafael Mendonça França 4b669dbb91 Merge branch 'master' into merge-action-cable 2015-12-16 17:05:16 -02:00
Rafael Mendonça França b1c19eb052 Merge branch 'sprockets-3' 2015-12-16 16:57:11 -02:00
Rafael Mendonça França 877a411d0c Use sprockets 3 in the Rails 5 release 2015-12-16 16:30:58 -02:00
Sean Griffin 48c4edc4a6 Avoid conditionals in the Gemfile
"conditionals in the gemfile creates conditional code in the Gemfile.lock.
Since it is checked in the repository I think it is better to avoid it"
2015-12-16 10:33:09 -07:00
Rafael Mendonça França ccc805591a Update Gemfile.lock 2015-12-14 14:43:04 -02:00
David Heinemeier Hansson 760de782f7 Initial stab at adding Action Cable to rails/master 2015-12-14 16:38:37 +01:00
David Heinemeier Hansson bf40bddfce Get ready to merge into Rails 2015-12-14 15:48:54 +01:00
Tamir Duberstein 991d83f8ed Update nokogiri to 1.6.7
This picks up https://github.com/sparklemotion/nokogiri/pull/1218
which allows nokogiri to compile on Xcode-only OS X systems.
2015-12-10 13:46:08 -05:00
Sean Griffin b5bbdbd3bc Revert "Add prepared statements support for `Mysql2Adapter`" 2015-11-26 11:53:10 -07:00
Godfrey Chan 14b20ce9b3 Upgrade to listen 3.0.5, re-enable tests
In listen 3.0.4 and below, the `#stop` method on the notification
backends are a no-op, meaning that we are leaking them per test. This
ended up triggering another bug in Ruby that causes our builds to fail
randomly on CI.

listen bug: https://github.com/guard/listen/issues/353
ruby bug: https://bugs.ruby-lang.org/issues/11744
2015-11-26 10:35:20 -08:00
Ryuta Kamizono 38746d085b Add prepared statements support for `Mysql2Adapter` 2015-11-26 11:16:26 +09:00
Takashi Kokubun 85fed82bfe Use latest byebug 2015-11-18 01:46:03 -06:00
Rafael Mendonça França 788d7bce3d Using released concurrent-ruby 2015-11-16 18:26:39 -02:00
Xavier Noria d47b982268 upgrade listen to 3.0.4
3.0.3 has a bug in OS X.
2015-11-08 22:49:50 -08:00
Xavier Noria 785adabc4b implements an evented file update checker [Puneet Agarwal]
This is the implementation of the file update checker written
by Puneet Agarwal for GSoC 2015 (except for the tiny version
of the listen gem, which was 3.0.2 in the original patch).

Puneet's branch became too out of sync with upstream. This is
the final work in one single clean commit.

Credit goes in the first line using a convention understood
by the contrib app.
2015-11-08 22:49:49 -08:00
Jerry D'Antonio 23b6f65fd1 Require only necessary concurrent-ruby classes. 2015-11-04 21:12:28 -05:00
Rafael Mendonça França d88bad3e96 Don't ask an yanked celluloid version 2015-10-23 20:41:33 -02:00
Rafael Mendonça França cbfe5bb3c4 Upgrade all the gems 2015-10-20 15:58:57 -02:00
Jeremy Daer d7ab5c8f1f Test against Rails edge by default. CI against 4.2 also.
* Don't deep-require to AD::Http::Request since it misses Mime autoload
2015-10-16 00:58:06 -07:00
Aaron Patterson 895c359182 use methods for accessing the cache control headers
Use the methods rack provides so we don't have to worry about the exact
header key.
2015-10-06 13:39:03 -07:00
Aaron Patterson cddb700cc2 etag header is in Rack, so use it's response methods
Rack implements the Etag header manipulation methods, so we can use
those instead of ours.
2015-10-06 13:39:03 -07:00
Jeremy Daer 2356403330 Introduce `Headers#add`. Move `Response#add_header` upstream.
* Introduce `ActionDispatch::Http::Headers#add` to add a value to
  a multivalued header.
* Move `Response#add_header` upstream: https://github.com/rack/rack/pull/957
* Match upstream `Response#have_header?` -> `#has_header?` name change.
2015-10-03 21:59:18 -07:00
Jeremy Daer f849cfe36c YAGNI concurrent-ruby master branch now that 1.0.0.pre3 is released with fixes for warnings and circular require 2015-10-03 19:24:16 -07:00
Aaron Patterson ff30db1372 run against edge sass to eliminate circular require warnings 2015-09-30 07:42:58 -07:00
Jerry D'Antonio 33e506cb4a Fixed concurrent-ruby warnings.
Bumped version of concurrent-ruby to 1.0.0.pre3, which fixes all
interpreter warnings.
2015-09-29 21:31:49 -04:00
Jeremy Daer 56625b2815 Bump concurrent-ruby to shush circular require warning 2015-09-29 14:52:59 -07:00
Jeremy Daer 20ec1e922c Eliminate overlapping `app/assets` load path
* Move `app/assets/manifest.js` to `app/assets/config/manifest.js`.
  Avoid the suggestion that you can/should deep-link `stylesheets/foo`.
* Pull in all toplevel stylesheets and JavaScripts, not just
  `application.js` and `.css`. Demonstrate how to use `link_directory`
  with a specified `.js`/`.css` type.
* Fix RAILS_ENV handling in assets tests.
* Shush warnings spam from third-party libs that distract from tests.
2015-09-29 11:56:58 -07:00
Andrew White 8f32f60439 Update to latest turbolinks 2015-09-21 14:10:56 +01:00
Andrew White 2b16816bc3 Use master version of Turbolinks gem
Since `alias_method_chain` is deprecated we need to use the master version
of the Turbolinks gem as it has support for using `Module#prepend`.
2015-09-21 14:02:41 +01:00
Jerry D'Antonio 56ac6e4768 Replaced `ThreadSafe::Map` with successor `Concurrent::Map`.
The thread_safe gem is being deprecated and all its code has been merged
into the concurrent-ruby gem. The new class, Concurrent::Map, is exactly
the same as its predecessor except for fixes to two bugs discovered
during the merge.
2015-09-19 09:56:26 -04:00
Rafael Mendonça França 5e3e5de48b Do not use conditionals at Gemfile
This will make the Gemfile.lock be dirty in some environments
2015-09-14 20:12:09 -03:00
Eric Guo bbfd17689b Ruby 2.2.3 in windows need nokogiri 1.6.7.rc3 as it's the only version having correct pre-compiled so 2015-09-12 23:46:37 +08:00
Rafael Mendonça França ed3d213eb6 Use released mysql2 2015-09-08 14:01:04 -03:00
Jeremy Daer 5da5e3772c Support mysql2 0.4.0, first release with prepared statements support
Known failure on Ruby 2.3/trunk: brianmario/mysql2#671
2015-09-07 16:37:25 -07:00
Aaron Patterson bcfa2a0d5e stop using deprecated Abstract::ID class 2015-09-04 18:58:49 -07:00
Aaron Patterson 529136d670 stop inheriting from Rack::Request
Just include the modules necessary in the Request object to implement
the things we need.  This should make it easier to build delegate
request objects because the API is smaller
2015-09-04 17:37:22 -07:00
Aaron Patterson e25fdad2f1 use `Rack::Utils.unescape_path` to unescape paths
Escaping and unescaping paths is different than query parameters, and we
need to respect that.  This commit uses the new method in Rack to escape
and unescape paths.  Fixes #11816
2015-09-04 14:43:46 -07:00
Rafael Mendonça França 9f28cb9dc7 Add windows version of nokogiri 2015-09-01 16:02:03 -03:00
claudiob 6d02b75b2b Require sprockets-rails >= 2
Fixes 4d157ea8c1

Without any specification about the version of sprockets-rails, running a
`bundle install` on a brand new app might result in sprockets 0.0.1 being
installed.

However, the minimum requirement is sprockets-rails 2 (see https://github.com/rails/rails/pull/17752/files)
2015-09-01 09:30:38 -07:00
Carlos Antonio da Silva a90d79330b Add master branch to github gems to be able to use local clones 2015-09-01 08:44:32 -03:00
Aaron Patterson 14af136371 implement the API required by the abstract Rack request. 2015-08-27 11:13:11 -07:00
Aaron Patterson 97d088ebf2 use the non-hash dependent Rack utils API
eventually we will refactor this to not know about header hashes
2015-08-27 11:13:10 -07:00
Jerry D'Antonio 25a4155257 Initial implementation of ActiveJob AsyncAdapter. 2015-08-25 14:22:11 -04:00
Aaron Patterson 5fe141638f use a request object in the session middleware
This commit allows us to use one request object rather than allocating
multiple request objects to deal with the session.
2015-08-22 17:57:45 -07:00
Aaron Patterson 1fbf5ad7f7 dup the request and mutate its headers object.
duping the request will dup it's underlying env hash.
2015-08-21 16:59:12 -07:00
Aaron Patterson 51211a94bd point at rack master 2015-08-20 13:45:11 -07:00
Andrei Istratii d0e0fbafb2 Migrate to Sprockets 4. 2015-08-19 21:45:46 +03:00
Rafael Mendonça França 9a4a436fd7 Merge pull request #20647 from twalpole/method_source_dependency
Add method_source dependency to activesupport
2015-08-14 14:06:23 -03:00
Yves Senn 68e3279163 implement `provider_job_id` for `queue_classic`.
The latest, currently unreleased, version of queue_classic is required
for this to work. See
https://github.com/QueueClassic/queue_classic/pull/262 for more details.
2015-08-13 10:00:19 +02:00
Rafael Mendonça França 67b07f809b Update Gemfile.lock 2015-08-10 00:30:03 -03:00
Thomas Walpole 8e2f267f62 Add method_source dependency to activesupport 2015-07-29 22:21:53 -07:00
Kasper Timm Hansen 65fde3bf75 Fix the gem version in Gemfile.lock 2015-07-29 22:22:39 +02:00
Javan Makhmali ccfb1a8b1c Use Celluloid 0.16.0 until termination issue in 0.17.0 is resolved
The issue: https://github.com/celluloid/celluloid/issues/637
2015-07-24 12:05:31 -04:00
Thomas Walpole 5d8c848273 Update gems and requires 2015-07-22 14:54:48 -07:00
constXife c47e628da4 Remove version requirements. 2015-07-20 09:22:29 +06:00
constXife a0048e3020 Add coffee-rails as a dependency. 2015-07-20 00:44:19 +06:00
Rafael Mendonça França 9dc06bc1f3 Fix Gemfile.lock 2015-07-14 15:20:15 -03:00
Jeremy Kemper f1b9095bdc Move dev dependencies from Gemfile to the gemspec: rake, puma, mocha 2015-07-13 19:28:14 -07:00
Jerry D'Antonio 284a9ba8ec Replaced `ActiveSupport::Concurrency::Latch` with concurrent-ruby.
The concurrent-ruby gem is a toolset containing many concurrency
utilities. Many of these utilities include runtime-specific
optimizations when possible. Rather than clutter the Rails codebase with
concurrency utilities separate from the core task, such tools can be
superseded by similar tools in the more specialized gem. This commit
replaces `ActiveSupport::Concurrency::Latch` with
`Concurrent::CountDownLatch`, which is functionally equivalent.
2015-07-13 15:44:21 -04:00
Pratik Naik 13fb9b8c7b Updated Gemfile.lock 2015-07-12 13:25:24 -05:00
Pratik Naik 53c82f6dc0 Add actionpack as a dependency 2015-07-12 11:44:56 -05:00
Pratik Naik f207245cc7 Load mocha for tests 2015-07-12 11:44:56 -05:00
Jeffrey Hardy 42ac768562 Freshen Gemfile.lock
Generated from a fresh `bundle install`

* Add websocket-driver
* Update activesupport
* Rename `actioncable` -> `action_cable`
2015-07-08 23:16:23 -04:00
David Heinemeier Hansson 4bb995a4aa Use latest Bundler 2015-07-07 19:03:57 +02:00
Kasper Timm Hansen 5294bf1ef6 Add gemfile entry for GlobalID until a new release is cut. 2015-07-05 14:50:33 +02:00
David Heinemeier Hansson 2b41ede6f8 Latest dependencies 2015-06-19 18:55:14 +02:00
Tim Rogers 2e4221779e Update bundler to v1.10.4 2015-06-17 11:35:24 +01:00
Yves Senn c0b4654dba let's use the latest bundler version. 2015-06-13 11:34:34 +02:00
Sean Griffin 0ef7e73f0a Ensure symbols passed to `select` are always quoted
Our general contract in Active Record is that strings are assumed to be
SQL literals, and symbols are assumed to reference a column. If a from
clause is given, we shouldn't include the table name, but we should
still quote the value as if it were a column.

Upon fixing this, the tests were still failing on SQLite. This was
because the column name being returned by the query was `"\"join\""`
instead of `"join"`. This is actually a bug in SQLite that was fixed a
long time ago, but I was using the version of SQLite included by OS X
which has this bug. Since I'm guessing this will be a common case for
contributors, I also added an explicit check with a more helpful error
message.

Fixes #20360
2015-05-30 12:35:51 -06:00
Samuel E. Giddins 783637eb20 Generate Bundler 1.10.1 lockfile 2015-05-28 22:40:29 -07:00
Semyon Pupkov ee68786953 Unlock sneakers adapter version 2015-04-28 14:52:29 +05:00
Arthur Neves ac98359c83
Use latest sprockets-rails on internal dev 2015-04-26 11:42:13 -04:00
Godfrey Chan 78b51a8071 Uncomment byebug in framework Gemfile
History:

1. `debugger` was there until d2ed433b where it was commented out, and I
   couldn't figure out why

2. Since then we inherited that when switching to `byebug` in 93559da4

Reasons:

1. It's nice to have a debugger when working on framework bugs

2. It's an uncommented dependency in app Gemfiles since Rails 4.2 (see fbe38c9e)
2015-04-24 01:24:50 -04:00
Toshi MARUYAMA 7008dfba66 Gemfile: temporay pin "bcrypt" version and run "bundle update bcrypt" on Linux
Related: #19617, #19187, #19533, #19689, #19675.

This is POC (Proof Of Concept) which bundler does not remove mingw lines.
https://github.com/rails/rails/pull/19617#issuecomment-90293795
2015-04-09 19:25:11 -03:00
Akira Matsuda 6c98100620 redcarpet 3.2.2 has an XSS vulnerability
see: http://www.openwall.com/lists/oss-security/2015/04/07/11
2015-04-09 18:20:53 +09:00
Pratik Naik eec92d0229 Add connection identifier and an internal redis channel 2015-04-06 12:21:22 -05:00
Carlos Antonio da Silva 4ba1376c60 Remove old mri platform entries from our Gemfile
Since we now only support Ruby 2.2+, we can safely remove the old mri
entries from the Gemfile.

This also allows us not to lock to a specific bundler version, since
:mri_22 was defined only on 1.7.11.

Closes #19611.
2015-04-01 17:09:58 -03:00
Rafael Mendonça França a8225eeec2 Test using sprockets 3 2015-03-29 22:58:32 -03:00
Arthur Neves 9afd9d232c method_source needs to be a hard dependency on railties 2015-03-19 10:15:03 -04:00
Arthur Neves d6ed046d30 Add method_source to gemfile 2015-03-18 09:52:16 +01:00
Rafael Mendonça França 2b2bf22e8d Use the released gem 2015-03-10 17:31:35 -03:00
Kasper Timm Hansen 37695b8aab Let strip_tags leave HTML escaping to Rails.
Prevents double escaping errors, such as "&amp;" becoming "&amp;amp;".
2015-03-10 20:04:01 +01:00
Cristian Bica cb786219f4 Fixed ActiveJob integration tests 2015-03-05 23:57:57 +02:00
Robin Dupret 5140c07c02 Test against the mail gem's edge
The edge version ships with a patch that uses composition over
inheritance for the Mail::PartsList object (see mikel/mail#782).
Let's test Action Mailer against it to prevent eventual regressions
and experience it.

Moreover, this branch makes the Action Mailer suite green against
Rubinius.
2015-03-02 16:55:27 +01:00
eileencodes e1e2b54e85 Bump rack-test to fix nil values being sent to `parse_nested_query`
I found that nil values were being incorrectly sent to
`parse_nested_query` in Rack. Originally it was thought that Rails was
doing something incorrect but it was actually rack-test. This was fixed
in brynary/rack-test@4a4b2c1 and is no longer an issue. This commit
bumps rack-test in Rails so changes to Rack don't cause failures.

See rack/rack#813 for more information.
2015-03-01 16:58:15 -05:00
Ryuta Kamizono a088ee9691 Format the time string according to the precision of the time column
It is also necessary to format a time column like a datetime column.
2015-02-20 10:25:31 +09: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
Jeremy Kemper 144a381c5e Support Rails 5 2015-02-16 08:15:22 -08:00
Pratik Naik 06397077e4 New Gemfile.lock 2015-02-13 17:29:17 +05:30
Pratik Naik a5c3a8d3e3 Latest gems and fix a callback bug 2015-01-15 21:07:31 +05:30