Commit Graph

280 Commits

Author SHA1 Message Date
Yuji Yaginuma
83bfe07583 Use v3 of the AWS SDK 2017-09-09 23:22:10 -04:00
yuuji.yaginuma
75a921828c Do not install unused gem
`qu-redis` is need for qu adapter test.
However, since 8ecc5ab, qu adapter test has not been executed,
it is unnecessary now.
2017-09-08 08:00:30 +09:00
Matthew Draper
bb7775736c Add stopgap_13632 workaround
I'm not sure this is the problem we're seeing on Travis (occasional
unexpected IOError exceptions), but it's worth a try.
2017-08-29 21:10:49 +09:30
Bradley Buda
54ad8bb2b0 Update azure-core to 0.1.11 to fix rails-dev-box
rails-dev-box was failing to install gems with a filesystem permission
error. The issue was introduced when azure-core was bumped from 0.1.9 to
0.1.10 in d2f493c. azure-core has fixed the build problem [1] and
released a new version, 0.1.11 with the fix.

This change is just to run `bundle update azure-core` to pick up that
fix.

[1]: 536c3fc21c
2017-08-23 21:53:02 -07:00
Robin Dupret
6db4cf9beb Temporarily point to a fork of SDoc
This fork brings:

* A tiny refresh of the default theme.
* SEO tags to class files.
* The removal of HTML tags from search results.
* Some general template clean-up (HTML 5, removal of the jQuery
  effect library, etc.).
* A speed up of the generation time (by ~30 seconds).
2017-08-17 14:49:31 +02:00
yuuji.yaginuma
bad08d8609 Bump thor and blade
For test with latest thor.
2017-08-17 08:53:36 +09:00
Rafael Mendonça França
d2f493c7ed Test with released thor
thor 0.20.0 was released so we can test with the released version.
2017-08-16 14:03:24 -04:00
dixpac
053e556df1 Depend on offical azure-core
No need to depend on my fork anymore, they've just release fix
officially.
2017-08-03 12:12:58 +02:00
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