Commit Graph

629 Commits

Author SHA1 Message Date
George Claghorn
bf5f41d948
Support streaming downloads from Google Cloud Storage 2018-05-01 23:20:56 -04:00
utilum
f4eca1d630 Make Railties CI log for Ruby 2.6 accessible again
Pending the next release of Thor which [fixes](006832ea32) calls to `ERB.new`, Railties CI log for Ruby 2.6 is flooded with so many warnings it is too long for Travis to handle:

```
/home/travis/.rvm/gems/ruby-head/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:120: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/home/travis/.rvm/gems/ruby-head/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:120: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
/home/travis/.rvm/gems/ruby-head/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:120: warning: Passing eoutvar with the 4th argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, eoutvar: ...) instead.

The log length has exceeded the limit of 4 MB (this usually means that the test suite is raising the same exception over and over).

The job has been terminated
```

https://travis-ci.org/rails/rails/jobs/372623604#L10000
https://api.travis-ci.org/v3/job/372623604/log.txt

This patch forces installation of fixed Thor, and enables us to look at the the log.
2018-04-29 11:28:20 +02:00
utilum
0f9f836363 Fix segmentation fault in EventedFileUpdateChecker
resolves #32705
2018-04-24 20:54:52 +02:00
Janko Marohnić
ca12968587
Use ImageProcessing gem for ActiveStorage variants
ImageProcessing gem is a wrapper around MiniMagick and ruby-vips, and
implements an interface for common image resizing and processing. This
is the canonical image processing gem recommended in [Shrine], and
that's where it developed from. The initial implementation was extracted
from Refile, which also implements on-the-fly transformations.

Some features that ImageProcessing gem adds on top of MiniMagick:

  * resizing macros
    - #resize_to_limit
    - #resize_to_fit
    - #resize_to_fill
    - #resize_and_pad
  * automatic orientation
  * automatic thumbnail sharpening
  * avoids the complex and inefficient MiniMagick::Image class
  * will use "magick" instead of "convert" on ImageMagick 7

However, the biggest feature of the ImageProcessing gem is that it has
an alternative implementation that uses libvips. Libvips is an
alternative to ImageMagick that can process images very rapidly (we've
seen up 10x faster than ImageMagick).

What's great is that the ImageProcessing gem provides the same interface
for both implementations. The macros are named the same, and the libvips
implementation does auto orientation and thumbnail sharpening as well;
only the operations/options specific to ImageMagick/libvips differ. The
integration provided by this PR should work for both implementations.

The plan is to introduce the ImageProcessing backend in Rails 6.0 as the
default backend and deprecate the MiniMagick backend, then in Rails 6.1
remove the MiniMagick backend.
2018-04-18 17:46:25 +02:00
yuuji.yaginuma
5bca1f2167 Unlock dalli version
The issue was fixed with https://github.com/petergoldstein/dalli/pull/679,
and a new version containing that fix was released.
2018-04-11 16:52:10 +09:00
eileencodes
72f17d59e4 Remove upper bound on Capybara
There's no reason to block future versions of Capybara since we don't
_know_ they are going to break. How will we know if we have a
conservative option set? This change prevents us from blocking users who
want to upgrade in the future.
2018-04-10 16:40:14 -04:00
James Mead
364756c15c Simplify declaration of mocha dependency in Gemfile
The `require: false` option hasn't been needed since Mocha v1.0.
2018-04-07 12:18:33 +01:00
Rafael Mendonça França
fab6ded8f2
Allow any version of dalli less them 2.7.7 2018-03-20 11:58:14 -04:00
Alberto Almagro
6ef720791d Remove support for Qu gem.
Reasons are that the Qu gem wasn't compatible since Rails 5.1,
gem development was stopped in 2014 and maintainers have
confirmed its demise. See issue #32273
2018-03-19 21:27:16 +01:00
yuuji.yaginuma
63ec63ca8c Avoid dalli 2.7.7 for now
It's causing a test to fail.
Ref: https://travis-ci.org/rails/rails/jobs/353758855#L1433-L1501
2018-03-15 21:03:06 +09:00
Gaurav Sharma
875073a89d update psych gem to 3.2 stable release 2018-03-10 01:44:36 +05:30
Thomas Walpole
207536c063 Allow Capybara 3.x (#32151) 2018-03-05 17:44:39 -08:00
George Claghorn
ccac681122 Generate root-relative paths in Active Storage disk service URL methods
Fixes #32129.
2018-03-05 11:54:43 -05:00
Jeremy Daer
1e526788e6 Rails 6 requires Ruby 2.3+ 2018-02-17 10:03:37 -08:00
utilum
ea06d2d5b4 Bump mysql2 version
Skip 0.4.8 and 0.4.9, which had
[Compilation failures against MariaDB Connector/C 3.0.2](https://github.com/brianmario/mysql2/releases/tag/0.4.10).
2018-02-15 19:12:58 +01:00
Rafael Mendonça França
957ca2ed4c Merge pull request #31866 from fatkodima/redis_cache-connection_pool
Add support for connection pooling on RedisCacheStore
2018-02-14 18:23:54 -05:00
Robin Dupret
38d2b473c2 Refer to a stable release of SDoc 2018-02-06 19:49:15 +01:00
fatkodima
dc407392cd Add support for connection pooling on RedisCacheStore 2018-02-01 23:52:20 +02:00
George Claghorn
148d0077c5 Revert "Merge pull request #31447 from fatkodima/redis_cache-connection_pool"
This reverts commit ac74e2c521f6ddc0eac02d74a1313261bcc1d60f, reversing
changes made to ffdb06136152b3c5f7f4a93ca5928e16e755d228.
2018-01-31 09:49:32 -05:00
Daniel Colson
defa880f91 Relax minitest version
We locked Minitest to 5.11.1 in #31799
because 5.11.2 included a breaking change.
The change was fixed in 5.11.3, so we no
longer need to lock in the version.
2018-01-26 20:36:59 -05:00
Yasuo Honda
1da8c32d16 Lock Minitest 5.11.1
To workaround `undefined method `error?' for` reported
at https://travis-ci.org/rails/rails/jobs/333456146
2018-01-26 02:47:35 +00:00
fatkodima
4efbbc844b Add support for connection pooling on RedisCacheStore 2018-01-22 13:54:00 -05:00
Gabriel Sobrinho
4ac143d193 Support for connection pooling on mem cache store 2018-01-18 15:05:16 -05:00
George Claghorn
c2ba530c43
Extract content types from blob data 2018-01-15 13:06:17 -05:00
Rafael Mendonça França
c09ebcf4a9 Use my fork instead of an thrid-party fork
This will avoid the branch being deleted by mistake making all builds to
fail.
2018-01-11 14:37:27 -05:00
Rafael Mendonça França
181836d894 Merge pull request #31671 from larskanis/pg-1.0
PostgreSQL: Allow pg-1.0 gem to be used with ActiveRecord
2018-01-11 14:31:37 -05:00
Lars Kanis
13eff51b1b PostgreSQL: Update Gemfile to pg-1.0.0
Queue_classic currently limits pg to "< 0.20".
It is therefore not used for rails CI tests. There has been
a bull request for a while (by a co-worker of mine), which
fixes the incompatibilities and extends dependencies to pg-1.x.

This patch add this pull request to the Gemfile as an interim
solution, until it is merged.
2018-01-10 21:55:43 +01:00
yuuji.yaginuma
a0fc2bee47 Bump Minitest to 5.11.1 2018-01-03 08:24:32 +09:00
yuuji.yaginuma
13afd2cfdc Avoid Minitest 5.11.0 for now
Seems some tests not work with Minitest 5.11.0.

* https://travis-ci.org/rails/rails/jobs/323997512#L1053
* https://travis-ci.org/rails/rails/jobs/323997486#L1055

Ref: https://github.com/seattlerb/minitest/issues/729
2018-01-02 17:34:09 +09:00
yuuji.yaginuma
df514728ee Use released delayed_job instead of master version
Ref: https://github.com/collectiveidea/delayed_job/blob/master/CHANGELOG.md#414---2017-12-29
2017-12-30 06:57:28 +09:00
yuuji.yaginuma
eb98aeb296 Use delayed_job master
For pass Active Job integration tests with Ruby 2.5.
Ref: https://github.com/collectiveidea/delayed_job/pull/996
2017-12-23 22:18:29 +09:00
Guillermo Iguaran
7d75599c87 Update nokogiri version on Gemfile 2017-12-14 13:06:53 -05:00
Ryuta Kamizono
245c1dafa8 Enable Layout/LeadingCommentSpace to not allow cosmetic changes in the future
Follow up of #31432.
2017-12-14 17:30:54 +09:00
yuuji.yaginuma
65e994c063 Use released resque-scheduler instead of master version
The v4.3.1 has already released that includes Redis 4.0 support.
https://github.com/resque/resque-scheduler/blob/master/CHANGELOG.md#431---2017-11-20
2017-12-14 08:40:42 +09:00
yuuji.yaginuma
9d65ac30fd Use credentials instead of keyfile in GCS sevice
The `keyfile` was renamed to `credentials` in `google-cloud-storage` 1.8.0.
https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/google-cloud-storage/CHANGELOG.md#180--2017-11-14

Although `keyfile` can still be used, but it looks like deprecate.
ddf7b2a856/google-cloud-storage/lib/google/cloud/storage.rb (L589...L590)

Therefore, I think that should use `credentials` in newly generated
applications.

Ref: https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/1802
2017-11-29 13:17:04 +09:00
Matthew Draper
cdc46750ca Revert "Remove stopgap_13632 entirely for now: it doesn't support 2.2.8"
This reverts commit 536d3068b964d5848ebc47292c21c0fb0450c17b.
2017-11-26 20:52:11 +10:30
yuuji.yaginuma
adf7fb86d0 Remove unused em-hiredis
`em-hiredis` is unused since 48766e32d31651606b9f68a16015ad05c3b0de2c
2017-11-21 12:27:29 +09:00
Jeremy Daer
3bbc7f8f63
Move back to resque-scheduler mainline now that https://github.com/resque/resque-scheduler/pull/620 is merged 2017-11-16 11:31:35 -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
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
Rafael Mendonça França
7de7f12fd1
Remove deprecated Erubis ERB handler 2017-10-23 12:50:31 -04:00
Guillermo Iguaran
4dcf12a340 PhantomJS is abandoned, replace it with Selenium/Chrome headless 2017-10-19 11:01:52 -05:00
Eileen M. Uchitelle
26f995459c Merge pull request #30860 from olimart/patch-1
Update Gemfile with comment for Active Storage group
2017-10-15 06:54:00 -07: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
Olivier
b0691e6f6c Update Gemfile 2017-10-11 15:31:54 -04: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
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