M.Shibuya
229594fb2a
Drop support for Ruby < 2.5 and Rails 5.x
2021-05-30 18:38:54 +09:00
Abdelkader Boudih
f7beff6b1e
Remove Postgresql and use sqlite3 for testing ActiveRecord
2021-04-18 13:01:27 +00:00
M.Shibuya
4fc1ebc0b8
Migrate to GitHub Actions, thanks Travis-CI!
2020-12-01 15:48:34 +09:00
M.Shibuya
133b8444ce
Point db to 127.0.0.1 for ease of local testing
2019-04-30 13:31:13 +09:00
Shinya Maeda
096f7b2132
If no space left then remove old cache
2018-10-15 09:25:26 +09:00
Cainã Costa
ddff3f0d4c
Remove deprecated opt-in flag from ActiveRecord 5
2016-10-10 19:43:38 -03:00
Mehdi Lahmam
8efcbe3c86
Avoid duplication between RSpec and Cucumber AR support config
...
Since `spec/support/activerecord.rb` is required in
`features/support/activerecord.rb`, duplicated AR config could be
avoided (only migrations differs).
`raise_in_transactional_callbacks` should/would be set to `true`
not only for Rails 4.2 but >= 4.2.
Related to #1815 .
2016-01-02 16:02:33 +01:00
Patrick Helm
d74ee6bd6a
Store::File#cache! will retry after Errno::EMLINK
...
== Problem
Errno::EMLINK: Too many links @ dir_s_mkdir
== Full Backtrace (carrierwave 0.9)
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:247 :in `mkdir`
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:247 :in `fu_mkdir`
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:224 :in `block (2 levels) in mkdir_p`
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:222 :in `reverse_each`
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:222 :in `block in mkdir_p`
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:208 :in `each`
/opt/rubies/ruby-2.1.5/lib/ruby/2.1.0/fileutils.rb:208 :in `mkdir_p`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/sanitized_file.rb:290 :in `mkdir!`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/sanitized_file.rb:209 :in `copy_to`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/uploader/cache.rb:131 :in `block in cache!`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/uploader/callbacks.rb:17 :in `with_callbacks`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/uploader/cache.rb:122 :in `cache!`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/mount.rb:327 :in `cache`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/mount.rb:179 :in `file=`
[GEM_ROOT]/gems/carrierwave-0.9.0/lib/carrierwave/orm/activerecord.rb:38 :in `file=`
== Why
Some file systems only allow a limited number of subdirectories.
Ext3 for example only allow ~32k subdirectories.
== Reproduce
Let's imagine a rails app with a User#avatar
require 'tempfile'
32001.times { User.new avatar: Tempfile.new("foo") }
# This will create 32001 dirs within /public/uploads/tmp
== Fix
Clean cache after caching failed.
== Related Pull Requests / Issues / Links
* [How to: Delete cache garbage directories](https://github.com/carrierwaveuploader/carrierwave/wiki/How-to:-Delete-cache-garbage-directories )
* [Remove the cached file after storing it #107 ](https://github.com/carrierwaveuploader/carrierwave/issues/107 )
* [Remove the cached file after storing it #125 ](https://github.com/carrierwaveuploader/carrierwave/pull/125 )
* [delete cache garbage dirs #338 ](https://github.com/carrierwaveuploader/carrierwave/issues/338 )
* [delete cache garbage dirs issue #338 #346 ](https://github.com/carrierwaveuploader/carrierwave/pull/346 )
* [Issue 338 #393 ](https://github.com/carrierwaveuploader/carrierwave/pull/393 )
* [tmp files not being deleted #1489 ](https://github.com/carrierwaveuploader/carrierwave/issues/1489 )
2015-11-26 08:53:22 +01:00
Akira Matsuda
e537151484
Explicitly require bundled gems
2015-09-05 11:26:54 +09:00
Akira Matsuda
b54c2b8de9
Connect to PostgreSQL DB as postgres user
...
because root user is no more available in Travis since 0af5e2eec0
,
we'd better use postgres user in the tests
2015-02-20 18:55:43 +09:00
James Miller
d42bc52dc9
Merge remote-tracking branch 'origin/mount-multiple'
...
Conflicts:
lib/carrierwave/mount.rb
lib/carrierwave/orm/activerecord.rb
2014-11-19 07:47:58 -08:00
Jonas Nicklas and Lisa Hammarström
bea0d670f2
Switch to PostgreSQL in tests
2014-10-17 10:45:14 +02:00
Jonas Innala
533395d4e0
Adding support for jRuby.
2014-04-27 13:46:00 +02:00
Andrey Chernih
c870ad4180
DRY database configuration and create test database automatically
2013-02-07 12:52:29 +04:00