Commit Graph

299 Commits

Author SHA1 Message Date
Jeremy Daer
376094caa4
Bump resque-scheduler ahead of a new gem release 2017-11-15 14:09:24 -07:00
Rafael Mendonça França
79c3d5a67d
Use released sass-rails 2017-11-14 14:42:12 -05:00
Rafael Mendonça França
2e0fe5928f
Use released arel 2017-11-14 14:37:59 -05:00
Koichi ITO
8c5115f95d Bump RuboCop to 0.51.0
## Summary

RuboCop 0.51.0 was released.
https://github.com/bbatsov/rubocop/releases/tag/v0.51.0

And rubocop-0-51 channel is available in Code Climate.
https://github.com/codeclimate/codeclimate-rubocop/issues/109

This PR will bump RuboCop to 0.51.0 and fixes the following new
offenses.

```console
% bundle exec rubocop
Inspecting 2358 files

(snip)

Offenses:

actionpack/lib/action_controller/metal/http_authentication.rb:251:59: C:
Prefer double-quoted strings unless you need single quotes to avoid
extra backslashes for escaping.
          [key.strip, value.to_s.gsub(/^"|"$/, "").delete('\'')]
                                                          ^^^^
activesupport/test/core_ext/load_error_test.rb:8:39: C: Prefer
double-quoted strings unless you need single quotes to avoid extra
backslashes for escaping.
    assert_raise(LoadError) { require 'no_this_file_don\'t_exist' }
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

2358 files inspected, 2 offenses detected
```
2017-11-10 10:52:04 +09:00
yuuji.yaginuma
cfe46db8e2 Use released redis-namespace instead of master version
The `redis-namespace` 1.6.0 includes redis-rb 4.0 support.
2017-11-08 17:09:36 +09:00
Jeremy Daer
0931e17ebf
Fix tests on Mail 2.7
Reverts 4d96be1c27bd6faed957b197a461f18543acebf2
References #31026
2017-10-31 21:44:58 -07:00
Yasuo Honda
14b7d673a3 Workaround for ActionMailer failures by not installing mail 2.7
```ruby
TestHelperMailerTest#test_encode
BaseTest#test_implicit_multipart_with_attachments_creates_nested_parts
BaseTest#test_implicit_multipart_with_attachments_and_sort_order
BaseTest#test_explicit_multipart_with_attachments_creates_nested_parts
```
Refer https://travis-ci.org/rails/rails/jobs/295571582
2017-11-01 02:47:57 +00:00
Ryuta Kamizono
7fe50a7146 Fix failing bundle install on CI
https://travis-ci.org/rails/rails/jobs/295470534#L2133
2017-11-01 09:29:50 +09:00
Rafael Mendonça França
7de7f12fd1
Remove deprecated Erubis ERB handler 2017-10-23 12:50:31 -04:00
Akira Matsuda
feb0fd0ca9 bundle lock --add-platform java
"The dependency activerecord-jdbcsqlite3-adapter (>= 1.3.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby, x64-mingw32, x86-mingw32 but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`."
2017-10-20 20:51:32 +09:00
Guillermo Iguaran
4dcf12a340 PhantomJS is abandoned, replace it with Selenium/Chrome headless 2017-10-19 11:01:52 -05:00
yuuji.yaginuma
d0aeeb7328 Remove unsued jquery-rails
This has been added by 8f8cb1baa3b5609969805fcdd7295f3d7de2bd6b.
But now it is unnecessary because it is not used in the test.
2017-10-13 18:08:35 +09:00
Koichi ITO
2e0de2dd41 Bump RuboCop 0.50.0
RuboCop 0.50.0 was released.
https://github.com/bbatsov/rubocop/releases/tag/v0.50.0

And `rubocop-0-50` channel is available in Code Climate.
https://github.com/codeclimate/codeclimate-rubocop/issues/107#issuecomment-336234260

This commit will bump RuboCop to 0.50.0.
There are no new offences in this change.

```console
% bundle exec rubocop --version
0.50.0
% bundle exec rubocop
Inspecting 2350 files

(snip)

2350 files inspected, no offenses detected
```
2017-10-13 12:01:03 +09:00
yuuji.yaginuma
24560d79fc Use released sidekiq instead of master version
The sidekiq 5.0.5 includes redis-rb 4.0 support.
Ref: 90db3b8420/Changes.md (505)
2017-10-09 20:51:10 +09:00
Ryuta Kamizono
f8337575ac Missing revision 5efd21bb7ee4b326d9c0d26fccad10fc59dd51f0 in redis-rb-4.0 branch
Seems the branch has rebased. cc @jeremy
2017-10-09 09:41:14 +09:00
Jeremy Daer
53c516d88d
redis-rb 4.0 support
* Use `gem 'redis', '~> 4.0'` for new app Gemfiles
* Loosen Action Cable redis-rb dep to `>= 3.3, < 5`
* Bump redis-namespace for looser Redis version dep
* Avoid using the underlying `redis.client` directly
* Use `Redis.new` instead of `Redis.connect`
2017-10-08 15:37:54 -07:00
Akira Matsuda
ab08f33f31 mocha 1.3.0 2017-09-25 09:12:58 +09:00
Thomas Walpole
ba04b580c6 Use the default Capybara registered puma server configuration 2017-09-18 08:48:52 -07:00
Matthew Draper
3559daddfe Stick with the RUBY_VERSION check on stopgap_13632 2017-09-15 12:11:36 +09:30
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