paperclip 4.2.4 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of paperclip might be problematic. Click here for more details.

Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +1066 -0
  3. data/.rubocop.yml +1 -0
  4. data/.travis.yml +5 -3
  5. data/Appraisals +1 -6
  6. data/CONTRIBUTING.md +3 -3
  7. data/Gemfile +1 -0
  8. data/LICENSE +1 -1
  9. data/NEWS +14 -1
  10. data/README.md +137 -77
  11. data/RELEASING.md +17 -0
  12. data/Rakefile +1 -1
  13. data/features/basic_integration.feature +7 -4
  14. data/features/step_definitions/attachment_steps.rb +7 -1
  15. data/gemfiles/3.2.gemfile +2 -1
  16. data/gemfiles/4.1.gemfile +1 -0
  17. data/gemfiles/4.2.gemfile +2 -1
  18. data/lib/paperclip.rb +13 -3
  19. data/lib/paperclip/attachment.rb +3 -1
  20. data/lib/paperclip/attachment_registry.rb +1 -1
  21. data/lib/paperclip/content_type_detector.rb +26 -11
  22. data/lib/paperclip/file_command_content_type_detector.rb +6 -8
  23. data/lib/paperclip/glue.rb +1 -1
  24. data/lib/paperclip/has_attached_file.rb +2 -1
  25. data/lib/paperclip/interpolations.rb +1 -1
  26. data/lib/paperclip/io_adapters/abstract_adapter.rb +1 -0
  27. data/lib/paperclip/media_type_spoof_detector.rb +1 -1
  28. data/lib/paperclip/rails_environment.rb +25 -0
  29. data/lib/paperclip/storage/fog.rb +4 -4
  30. data/lib/paperclip/storage/s3.rb +2 -3
  31. data/lib/paperclip/thumbnail.rb +2 -3
  32. data/lib/paperclip/version.rb +1 -1
  33. data/lib/tasks/paperclip.rake +16 -0
  34. data/paperclip.gemspec +3 -4
  35. data/spec/paperclip/attachment_definitions_spec.rb +1 -1
  36. data/spec/paperclip/attachment_registry_spec.rb +56 -13
  37. data/spec/paperclip/attachment_spec.rb +57 -19
  38. data/spec/paperclip/content_type_detector_spec.rb +8 -1
  39. data/spec/paperclip/file_command_content_type_detector_spec.rb +0 -1
  40. data/spec/paperclip/interpolations_spec.rb +2 -9
  41. data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +2 -1
  42. data/spec/paperclip/io_adapters/file_adapter_spec.rb +4 -1
  43. data/spec/paperclip/io_adapters/stringio_adapter_spec.rb +4 -0
  44. data/spec/paperclip/media_type_spoof_detector_spec.rb +16 -2
  45. data/spec/paperclip/rails_environment_spec.rb +33 -0
  46. data/spec/paperclip/storage/fog_spec.rb +11 -2
  47. data/spec/paperclip/storage/s3_spec.rb +43 -25
  48. data/spec/paperclip/tempfile_factory_spec.rb +4 -0
  49. data/spec/paperclip/thumbnail_spec.rb +16 -0
  50. data/spec/paperclip/url_generator_spec.rb +1 -1
  51. data/spec/support/fake_model.rb +4 -0
  52. data/spec/support/fixtures/empty.xlsx +0 -0
  53. data/spec/support/matchers/have_column.rb +11 -2
  54. metadata +30 -12
  55. data/RUNNING_TESTS.md +0 -4
  56. data/gemfiles/4.0.gemfile +0 -19
  57. data/spec/support/mock_model.rb +0 -2
@@ -1,19 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "sqlite3", "~> 1.3.8", :platforms => :ruby
6
- gem "jruby-openssl", :platforms => :jruby
7
- gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
8
- gem "rubysl", :platforms => :rbx
9
- gem "racc", :platforms => :rbx
10
- gem "pry"
11
- gem "rails", "~> 4.0.0"
12
- gem "paperclip", :path => "../"
13
-
14
- group :development, :test do
15
- gem "mime-types", "~> 1.16"
16
- gem "builder"
17
- end
18
-
19
- gemspec :path => "../"
@@ -1,2 +0,0 @@
1
- class MockModel
2
- end