kt-paperclip 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +17 -0
- data/.github/issue_template.md +3 -0
- data/.gitignore +19 -0
- data/.hound.yml +1050 -0
- data/.rubocop.yml +1 -0
- data/.travis.yml +47 -0
- data/Appraisals +24 -0
- data/CONTRIBUTING.md +86 -0
- data/Gemfile +18 -0
- data/LICENSE +24 -0
- data/NEWS +515 -0
- data/README.md +1053 -0
- data/RELEASING.md +17 -0
- data/Rakefile +52 -0
- data/UPGRADING +17 -0
- data/features/basic_integration.feature +85 -0
- data/features/migration.feature +29 -0
- data/features/rake_tasks.feature +62 -0
- data/features/step_definitions/attachment_steps.rb +110 -0
- data/features/step_definitions/html_steps.rb +15 -0
- data/features/step_definitions/rails_steps.rb +257 -0
- data/features/step_definitions/s3_steps.rb +14 -0
- data/features/step_definitions/web_steps.rb +106 -0
- data/features/support/env.rb +12 -0
- data/features/support/fakeweb.rb +11 -0
- data/features/support/file_helpers.rb +34 -0
- data/features/support/fixtures/boot_config.txt +15 -0
- data/features/support/fixtures/gemfile.txt +5 -0
- data/features/support/fixtures/preinitializer.txt +20 -0
- data/features/support/paths.rb +28 -0
- data/features/support/rails.rb +39 -0
- data/features/support/selectors.rb +19 -0
- data/gemfiles/4.2.gemfile +20 -0
- data/gemfiles/5.0.gemfile +20 -0
- data/gemfiles/5.1.gemfile +20 -0
- data/gemfiles/5.2.gemfile +20 -0
- data/gemfiles/6.0.gemfile +20 -0
- data/lib/generators/paperclip/USAGE +8 -0
- data/lib/generators/paperclip/paperclip_generator.rb +36 -0
- data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +15 -0
- data/lib/paperclip.rb +215 -0
- data/lib/paperclip/attachment.rb +617 -0
- data/lib/paperclip/attachment_registry.rb +60 -0
- data/lib/paperclip/callbacks.rb +42 -0
- data/lib/paperclip/content_type_detector.rb +80 -0
- data/lib/paperclip/errors.rb +34 -0
- data/lib/paperclip/file_command_content_type_detector.rb +28 -0
- data/lib/paperclip/filename_cleaner.rb +15 -0
- data/lib/paperclip/geometry.rb +157 -0
- data/lib/paperclip/geometry_detector_factory.rb +45 -0
- data/lib/paperclip/geometry_parser_factory.rb +31 -0
- data/lib/paperclip/glue.rb +17 -0
- data/lib/paperclip/has_attached_file.rb +116 -0
- data/lib/paperclip/helpers.rb +60 -0
- data/lib/paperclip/interpolations.rb +201 -0
- data/lib/paperclip/interpolations/plural_cache.rb +18 -0
- data/lib/paperclip/io_adapters/abstract_adapter.rb +75 -0
- data/lib/paperclip/io_adapters/attachment_adapter.rb +47 -0
- data/lib/paperclip/io_adapters/data_uri_adapter.rb +22 -0
- data/lib/paperclip/io_adapters/empty_string_adapter.rb +19 -0
- data/lib/paperclip/io_adapters/file_adapter.rb +26 -0
- data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +16 -0
- data/lib/paperclip/io_adapters/identity_adapter.rb +17 -0
- data/lib/paperclip/io_adapters/nil_adapter.rb +37 -0
- data/lib/paperclip/io_adapters/registry.rb +36 -0
- data/lib/paperclip/io_adapters/stringio_adapter.rb +36 -0
- data/lib/paperclip/io_adapters/uploaded_file_adapter.rb +44 -0
- data/lib/paperclip/io_adapters/uri_adapter.rb +68 -0
- data/lib/paperclip/locales/en.yml +18 -0
- data/lib/paperclip/logger.rb +21 -0
- data/lib/paperclip/matchers.rb +64 -0
- data/lib/paperclip/matchers/have_attached_file_matcher.rb +54 -0
- data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +101 -0
- data/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +59 -0
- data/lib/paperclip/matchers/validate_attachment_size_matcher.rb +97 -0
- data/lib/paperclip/media_type_spoof_detector.rb +90 -0
- data/lib/paperclip/missing_attachment_styles.rb +84 -0
- data/lib/paperclip/processor.rb +56 -0
- data/lib/paperclip/processor_helpers.rb +52 -0
- data/lib/paperclip/rails_environment.rb +21 -0
- data/lib/paperclip/railtie.rb +31 -0
- data/lib/paperclip/schema.rb +81 -0
- data/lib/paperclip/storage.rb +3 -0
- data/lib/paperclip/storage/filesystem.rb +99 -0
- data/lib/paperclip/storage/fog.rb +252 -0
- data/lib/paperclip/storage/s3.rb +461 -0
- data/lib/paperclip/style.rb +106 -0
- data/lib/paperclip/tempfile.rb +42 -0
- data/lib/paperclip/tempfile_factory.rb +22 -0
- data/lib/paperclip/thumbnail.rb +131 -0
- data/lib/paperclip/url_generator.rb +76 -0
- data/lib/paperclip/validators.rb +73 -0
- data/lib/paperclip/validators/attachment_content_type_validator.rb +88 -0
- data/lib/paperclip/validators/attachment_file_name_validator.rb +75 -0
- data/lib/paperclip/validators/attachment_file_type_ignorance_validator.rb +28 -0
- data/lib/paperclip/validators/attachment_presence_validator.rb +28 -0
- data/lib/paperclip/validators/attachment_size_validator.rb +109 -0
- data/lib/paperclip/validators/media_type_spoof_detection_validator.rb +29 -0
- data/lib/paperclip/version.rb +3 -0
- data/lib/tasks/paperclip.rake +140 -0
- data/paperclip.gemspec +50 -0
- data/shoulda_macros/paperclip.rb +134 -0
- data/spec/database.yml +4 -0
- data/spec/paperclip/attachment_definitions_spec.rb +13 -0
- data/spec/paperclip/attachment_processing_spec.rb +79 -0
- data/spec/paperclip/attachment_registry_spec.rb +158 -0
- data/spec/paperclip/attachment_spec.rb +1590 -0
- data/spec/paperclip/content_type_detector_spec.rb +47 -0
- data/spec/paperclip/file_command_content_type_detector_spec.rb +40 -0
- data/spec/paperclip/filename_cleaner_spec.rb +13 -0
- data/spec/paperclip/geometry_detector_spec.rb +38 -0
- data/spec/paperclip/geometry_parser_spec.rb +73 -0
- data/spec/paperclip/geometry_spec.rb +255 -0
- data/spec/paperclip/glue_spec.rb +42 -0
- data/spec/paperclip/has_attached_file_spec.rb +78 -0
- data/spec/paperclip/integration_spec.rb +702 -0
- data/spec/paperclip/interpolations_spec.rb +270 -0
- data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +160 -0
- data/spec/paperclip/io_adapters/attachment_adapter_spec.rb +140 -0
- data/spec/paperclip/io_adapters/data_uri_adapter_spec.rb +88 -0
- data/spec/paperclip/io_adapters/empty_string_adapter_spec.rb +17 -0
- data/spec/paperclip/io_adapters/file_adapter_spec.rb +131 -0
- data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +137 -0
- data/spec/paperclip/io_adapters/identity_adapter_spec.rb +8 -0
- data/spec/paperclip/io_adapters/nil_adapter_spec.rb +25 -0
- data/spec/paperclip/io_adapters/registry_spec.rb +35 -0
- data/spec/paperclip/io_adapters/stringio_adapter_spec.rb +64 -0
- data/spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb +146 -0
- data/spec/paperclip/io_adapters/uri_adapter_spec.rb +221 -0
- data/spec/paperclip/matchers/have_attached_file_matcher_spec.rb +19 -0
- data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +108 -0
- data/spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb +69 -0
- data/spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb +88 -0
- data/spec/paperclip/media_type_spoof_detector_spec.rb +120 -0
- data/spec/paperclip/meta_class_spec.rb +30 -0
- data/spec/paperclip/paperclip_missing_attachment_styles_spec.rb +88 -0
- data/spec/paperclip/paperclip_spec.rb +196 -0
- data/spec/paperclip/plural_cache_spec.rb +37 -0
- data/spec/paperclip/processor_helpers_spec.rb +57 -0
- data/spec/paperclip/processor_spec.rb +26 -0
- data/spec/paperclip/rails_environment_spec.rb +30 -0
- data/spec/paperclip/rake_spec.rb +103 -0
- data/spec/paperclip/schema_spec.rb +252 -0
- data/spec/paperclip/storage/filesystem_spec.rb +79 -0
- data/spec/paperclip/storage/fog_spec.rb +560 -0
- data/spec/paperclip/storage/s3_live_spec.rb +188 -0
- data/spec/paperclip/storage/s3_spec.rb +1695 -0
- data/spec/paperclip/style_spec.rb +251 -0
- data/spec/paperclip/tempfile_factory_spec.rb +33 -0
- data/spec/paperclip/tempfile_spec.rb +35 -0
- data/spec/paperclip/thumbnail_spec.rb +504 -0
- data/spec/paperclip/url_generator_spec.rb +221 -0
- data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +322 -0
- data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +159 -0
- data/spec/paperclip/validators/attachment_presence_validator_spec.rb +85 -0
- data/spec/paperclip/validators/attachment_size_validator_spec.rb +235 -0
- data/spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb +48 -0
- data/spec/paperclip/validators_spec.rb +164 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/assertions.rb +84 -0
- data/spec/support/fake_model.rb +24 -0
- data/spec/support/fake_rails.rb +12 -0
- data/spec/support/fixtures/12k.png +0 -0
- data/spec/support/fixtures/50x50.png +0 -0
- data/spec/support/fixtures/5k.png +0 -0
- data/spec/support/fixtures/animated +0 -0
- data/spec/support/fixtures/animated.gif +0 -0
- data/spec/support/fixtures/animated.unknown +0 -0
- data/spec/support/fixtures/bad.png +1 -0
- data/spec/support/fixtures/empty.html +1 -0
- data/spec/support/fixtures/empty.xlsx +0 -0
- data/spec/support/fixtures/fog.yml +8 -0
- data/spec/support/fixtures/rotated.jpg +0 -0
- data/spec/support/fixtures/s3.yml +8 -0
- data/spec/support/fixtures/spaced file.jpg +0 -0
- data/spec/support/fixtures/spaced file.png +0 -0
- data/spec/support/fixtures/text.txt +1 -0
- data/spec/support/fixtures/twopage.pdf +0 -0
- data/spec/support/fixtures/uppercase.PNG +0 -0
- data/spec/support/matchers/accept.rb +5 -0
- data/spec/support/matchers/exist.rb +5 -0
- data/spec/support/matchers/have_column.rb +23 -0
- data/spec/support/mock_attachment.rb +24 -0
- data/spec/support/mock_interpolator.rb +24 -0
- data/spec/support/mock_url_generator_builder.rb +26 -0
- data/spec/support/model_reconstruction.rb +72 -0
- data/spec/support/reporting.rb +11 -0
- data/spec/support/test_data.rb +13 -0
- data/spec/support/version_helper.rb +9 -0
- metadata +586 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
RSpec::Matchers.define :have_column do |column_name|
|
2
|
+
chain :with_default do |default|
|
3
|
+
@default = default
|
4
|
+
end
|
5
|
+
|
6
|
+
match do |columns|
|
7
|
+
column = columns.detect { |column| column.name == column_name }
|
8
|
+
column && column.default.to_s == @default.to_s
|
9
|
+
end
|
10
|
+
|
11
|
+
failure_message_method =
|
12
|
+
if RSpec::Version::STRING.to_i >= 3
|
13
|
+
:failure_message
|
14
|
+
else
|
15
|
+
:failure_message_for_should
|
16
|
+
end
|
17
|
+
|
18
|
+
send(failure_message_method) do |columns|
|
19
|
+
"expected to find '#{column_name}', " +
|
20
|
+
"default '#{@default}' " +
|
21
|
+
"in #{columns.map { |column| [column.name, column.default] }}"
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class MockAttachment
|
2
|
+
attr_accessor :updated_at, :original_filename
|
3
|
+
attr_reader :options
|
4
|
+
|
5
|
+
def initialize(options = {})
|
6
|
+
@options = options
|
7
|
+
@model = options[:model]
|
8
|
+
@responds_to_updated_at = options[:responds_to_updated_at]
|
9
|
+
@updated_at = options[:updated_at]
|
10
|
+
@original_filename = options[:original_filename]
|
11
|
+
end
|
12
|
+
|
13
|
+
def instance
|
14
|
+
@model
|
15
|
+
end
|
16
|
+
|
17
|
+
def respond_to?(meth)
|
18
|
+
if meth.to_s == "updated_at"
|
19
|
+
@responds_to_updated_at || @updated_at
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class MockInterpolator
|
2
|
+
def initialize(options = {})
|
3
|
+
@options = options
|
4
|
+
end
|
5
|
+
|
6
|
+
def interpolate(pattern, attachment, style_name)
|
7
|
+
@interpolated_pattern = pattern
|
8
|
+
@interpolated_attachment = attachment
|
9
|
+
@interpolated_style_name = style_name
|
10
|
+
@options[:result]
|
11
|
+
end
|
12
|
+
|
13
|
+
def has_interpolated_pattern?(pattern)
|
14
|
+
@interpolated_pattern == pattern
|
15
|
+
end
|
16
|
+
|
17
|
+
def has_interpolated_style_name?(style_name)
|
18
|
+
@interpolated_style_name == style_name
|
19
|
+
end
|
20
|
+
|
21
|
+
def has_interpolated_attachment?(attachment)
|
22
|
+
@interpolated_attachment == attachment
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class MockUrlGeneratorBuilder
|
2
|
+
def initializer; end
|
3
|
+
|
4
|
+
def new(attachment)
|
5
|
+
@attachment = attachment
|
6
|
+
@attachment_options = @attachment.options
|
7
|
+
self
|
8
|
+
end
|
9
|
+
|
10
|
+
def for(style_name, options)
|
11
|
+
@generated_url_with_style_name = style_name
|
12
|
+
@generated_url_with_options = options
|
13
|
+
"hello"
|
14
|
+
end
|
15
|
+
|
16
|
+
def has_generated_url_with_options?(options)
|
17
|
+
# options.is_a_subhash_of(@generated_url_with_options)
|
18
|
+
options.inject(true) do |acc, (k, v)|
|
19
|
+
acc && @generated_url_with_options[k] == v
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def has_generated_url_with_style_name?(style_name)
|
24
|
+
@generated_url_with_style_name == style_name
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
module ModelReconstruction
|
2
|
+
def reset_class(class_name)
|
3
|
+
ActiveRecord::Base.include Paperclip::Glue
|
4
|
+
begin
|
5
|
+
Object.send(:remove_const, class_name)
|
6
|
+
rescue StandardError
|
7
|
+
nil
|
8
|
+
end
|
9
|
+
klass = Object.const_set(class_name, Class.new(ActiveRecord::Base))
|
10
|
+
|
11
|
+
klass.class_eval do
|
12
|
+
include Paperclip::Glue
|
13
|
+
end
|
14
|
+
|
15
|
+
klass.reset_column_information
|
16
|
+
klass.connection_pool.clear_table_cache!(klass.table_name) if klass.connection_pool.respond_to?(:clear_table_cache!)
|
17
|
+
|
18
|
+
if klass.connection.respond_to?(:schema_cache)
|
19
|
+
if ActiveRecord::VERSION::STRING >= "5.0"
|
20
|
+
klass.connection.schema_cache.clear_data_source_cache!(klass.table_name)
|
21
|
+
else
|
22
|
+
klass.connection.schema_cache.clear_table_cache!(klass.table_name)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
klass
|
27
|
+
end
|
28
|
+
|
29
|
+
def reset_table(_table_name, &block)
|
30
|
+
block ||= lambda { |_table| true }
|
31
|
+
ActiveRecord::Base.connection.create_table :dummies, { force: true }, &block
|
32
|
+
end
|
33
|
+
|
34
|
+
def modify_table(&block)
|
35
|
+
ActiveRecord::Base.connection.change_table :dummies, &block
|
36
|
+
end
|
37
|
+
|
38
|
+
def rebuild_model(options = {})
|
39
|
+
ActiveRecord::Base.connection.create_table :dummies, force: true do |table|
|
40
|
+
table.column :title, :string
|
41
|
+
table.column :other, :string
|
42
|
+
table.column :avatar_file_name, :string
|
43
|
+
table.column :avatar_content_type, :string
|
44
|
+
table.column :avatar_file_size, :bigint
|
45
|
+
table.column :avatar_updated_at, :datetime
|
46
|
+
table.column :avatar_fingerprint, :string
|
47
|
+
end
|
48
|
+
rebuild_class options
|
49
|
+
end
|
50
|
+
|
51
|
+
def rebuild_class(options = {})
|
52
|
+
reset_class("Dummy").tap do |klass|
|
53
|
+
klass.has_attached_file :avatar, options
|
54
|
+
klass.do_not_validate_attachment_file_type :avatar
|
55
|
+
Paperclip.reset_duplicate_clash_check!
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def rebuild_meta_class_of(obj, options = {})
|
60
|
+
meta_class_of(obj).tap do |metaklass|
|
61
|
+
metaklass.has_attached_file :avatar, options
|
62
|
+
metaklass.do_not_validate_attachment_file_type :avatar
|
63
|
+
Paperclip.reset_duplicate_clash_check!
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def meta_class_of(obj)
|
68
|
+
class << obj
|
69
|
+
self
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module TestData
|
2
|
+
def attachment(options = {})
|
3
|
+
Paperclip::Attachment.new(:avatar, FakeModel.new, options)
|
4
|
+
end
|
5
|
+
|
6
|
+
def stringy_file
|
7
|
+
StringIO.new('.\n')
|
8
|
+
end
|
9
|
+
|
10
|
+
def fixture_file(filename)
|
11
|
+
File.join(File.dirname(__FILE__), "fixtures", filename)
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,586 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kt-paperclip
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 6.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Surendra Singhi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activemodel
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mime-types
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mimemagic
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.3.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: terrapin
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.6.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.6.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activerecord
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 4.2.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 4.2.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: appraisal
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: aruba
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.9.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.9.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: aws-sdk-s3
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: bundler
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: capybara
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: cucumber-expressions
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 4.0.3
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 4.0.3
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: cucumber-rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: fakeweb
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: fog-aws
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: fog-local
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: generator_spec
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: launchy
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: nokogiri
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: railties
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rake
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: rspec
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '3.0'
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - "~>"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '3.0'
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: shoulda
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">="
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: timecop
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
349
|
+
description: Easy upload management for ActiveRecord
|
350
|
+
email:
|
351
|
+
- ssinghi@kreeti.com
|
352
|
+
executables: []
|
353
|
+
extensions: []
|
354
|
+
extra_rdoc_files: []
|
355
|
+
files:
|
356
|
+
- ".codeclimate.yml"
|
357
|
+
- ".github/issue_template.md"
|
358
|
+
- ".gitignore"
|
359
|
+
- ".hound.yml"
|
360
|
+
- ".rubocop.yml"
|
361
|
+
- ".travis.yml"
|
362
|
+
- Appraisals
|
363
|
+
- CONTRIBUTING.md
|
364
|
+
- Gemfile
|
365
|
+
- LICENSE
|
366
|
+
- NEWS
|
367
|
+
- README.md
|
368
|
+
- RELEASING.md
|
369
|
+
- Rakefile
|
370
|
+
- UPGRADING
|
371
|
+
- features/basic_integration.feature
|
372
|
+
- features/migration.feature
|
373
|
+
- features/rake_tasks.feature
|
374
|
+
- features/step_definitions/attachment_steps.rb
|
375
|
+
- features/step_definitions/html_steps.rb
|
376
|
+
- features/step_definitions/rails_steps.rb
|
377
|
+
- features/step_definitions/s3_steps.rb
|
378
|
+
- features/step_definitions/web_steps.rb
|
379
|
+
- features/support/env.rb
|
380
|
+
- features/support/fakeweb.rb
|
381
|
+
- features/support/file_helpers.rb
|
382
|
+
- features/support/fixtures/boot_config.txt
|
383
|
+
- features/support/fixtures/gemfile.txt
|
384
|
+
- features/support/fixtures/preinitializer.txt
|
385
|
+
- features/support/paths.rb
|
386
|
+
- features/support/rails.rb
|
387
|
+
- features/support/selectors.rb
|
388
|
+
- gemfiles/4.2.gemfile
|
389
|
+
- gemfiles/5.0.gemfile
|
390
|
+
- gemfiles/5.1.gemfile
|
391
|
+
- gemfiles/5.2.gemfile
|
392
|
+
- gemfiles/6.0.gemfile
|
393
|
+
- lib/generators/paperclip/USAGE
|
394
|
+
- lib/generators/paperclip/paperclip_generator.rb
|
395
|
+
- lib/generators/paperclip/templates/paperclip_migration.rb.erb
|
396
|
+
- lib/paperclip.rb
|
397
|
+
- lib/paperclip/attachment.rb
|
398
|
+
- lib/paperclip/attachment_registry.rb
|
399
|
+
- lib/paperclip/callbacks.rb
|
400
|
+
- lib/paperclip/content_type_detector.rb
|
401
|
+
- lib/paperclip/errors.rb
|
402
|
+
- lib/paperclip/file_command_content_type_detector.rb
|
403
|
+
- lib/paperclip/filename_cleaner.rb
|
404
|
+
- lib/paperclip/geometry.rb
|
405
|
+
- lib/paperclip/geometry_detector_factory.rb
|
406
|
+
- lib/paperclip/geometry_parser_factory.rb
|
407
|
+
- lib/paperclip/glue.rb
|
408
|
+
- lib/paperclip/has_attached_file.rb
|
409
|
+
- lib/paperclip/helpers.rb
|
410
|
+
- lib/paperclip/interpolations.rb
|
411
|
+
- lib/paperclip/interpolations/plural_cache.rb
|
412
|
+
- lib/paperclip/io_adapters/abstract_adapter.rb
|
413
|
+
- lib/paperclip/io_adapters/attachment_adapter.rb
|
414
|
+
- lib/paperclip/io_adapters/data_uri_adapter.rb
|
415
|
+
- lib/paperclip/io_adapters/empty_string_adapter.rb
|
416
|
+
- lib/paperclip/io_adapters/file_adapter.rb
|
417
|
+
- lib/paperclip/io_adapters/http_url_proxy_adapter.rb
|
418
|
+
- lib/paperclip/io_adapters/identity_adapter.rb
|
419
|
+
- lib/paperclip/io_adapters/nil_adapter.rb
|
420
|
+
- lib/paperclip/io_adapters/registry.rb
|
421
|
+
- lib/paperclip/io_adapters/stringio_adapter.rb
|
422
|
+
- lib/paperclip/io_adapters/uploaded_file_adapter.rb
|
423
|
+
- lib/paperclip/io_adapters/uri_adapter.rb
|
424
|
+
- lib/paperclip/locales/en.yml
|
425
|
+
- lib/paperclip/logger.rb
|
426
|
+
- lib/paperclip/matchers.rb
|
427
|
+
- lib/paperclip/matchers/have_attached_file_matcher.rb
|
428
|
+
- lib/paperclip/matchers/validate_attachment_content_type_matcher.rb
|
429
|
+
- lib/paperclip/matchers/validate_attachment_presence_matcher.rb
|
430
|
+
- lib/paperclip/matchers/validate_attachment_size_matcher.rb
|
431
|
+
- lib/paperclip/media_type_spoof_detector.rb
|
432
|
+
- lib/paperclip/missing_attachment_styles.rb
|
433
|
+
- lib/paperclip/processor.rb
|
434
|
+
- lib/paperclip/processor_helpers.rb
|
435
|
+
- lib/paperclip/rails_environment.rb
|
436
|
+
- lib/paperclip/railtie.rb
|
437
|
+
- lib/paperclip/schema.rb
|
438
|
+
- lib/paperclip/storage.rb
|
439
|
+
- lib/paperclip/storage/filesystem.rb
|
440
|
+
- lib/paperclip/storage/fog.rb
|
441
|
+
- lib/paperclip/storage/s3.rb
|
442
|
+
- lib/paperclip/style.rb
|
443
|
+
- lib/paperclip/tempfile.rb
|
444
|
+
- lib/paperclip/tempfile_factory.rb
|
445
|
+
- lib/paperclip/thumbnail.rb
|
446
|
+
- lib/paperclip/url_generator.rb
|
447
|
+
- lib/paperclip/validators.rb
|
448
|
+
- lib/paperclip/validators/attachment_content_type_validator.rb
|
449
|
+
- lib/paperclip/validators/attachment_file_name_validator.rb
|
450
|
+
- lib/paperclip/validators/attachment_file_type_ignorance_validator.rb
|
451
|
+
- lib/paperclip/validators/attachment_presence_validator.rb
|
452
|
+
- lib/paperclip/validators/attachment_size_validator.rb
|
453
|
+
- lib/paperclip/validators/media_type_spoof_detection_validator.rb
|
454
|
+
- lib/paperclip/version.rb
|
455
|
+
- lib/tasks/paperclip.rake
|
456
|
+
- paperclip.gemspec
|
457
|
+
- shoulda_macros/paperclip.rb
|
458
|
+
- spec/database.yml
|
459
|
+
- spec/paperclip/attachment_definitions_spec.rb
|
460
|
+
- spec/paperclip/attachment_processing_spec.rb
|
461
|
+
- spec/paperclip/attachment_registry_spec.rb
|
462
|
+
- spec/paperclip/attachment_spec.rb
|
463
|
+
- spec/paperclip/content_type_detector_spec.rb
|
464
|
+
- spec/paperclip/file_command_content_type_detector_spec.rb
|
465
|
+
- spec/paperclip/filename_cleaner_spec.rb
|
466
|
+
- spec/paperclip/geometry_detector_spec.rb
|
467
|
+
- spec/paperclip/geometry_parser_spec.rb
|
468
|
+
- spec/paperclip/geometry_spec.rb
|
469
|
+
- spec/paperclip/glue_spec.rb
|
470
|
+
- spec/paperclip/has_attached_file_spec.rb
|
471
|
+
- spec/paperclip/integration_spec.rb
|
472
|
+
- spec/paperclip/interpolations_spec.rb
|
473
|
+
- spec/paperclip/io_adapters/abstract_adapter_spec.rb
|
474
|
+
- spec/paperclip/io_adapters/attachment_adapter_spec.rb
|
475
|
+
- spec/paperclip/io_adapters/data_uri_adapter_spec.rb
|
476
|
+
- spec/paperclip/io_adapters/empty_string_adapter_spec.rb
|
477
|
+
- spec/paperclip/io_adapters/file_adapter_spec.rb
|
478
|
+
- spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb
|
479
|
+
- spec/paperclip/io_adapters/identity_adapter_spec.rb
|
480
|
+
- spec/paperclip/io_adapters/nil_adapter_spec.rb
|
481
|
+
- spec/paperclip/io_adapters/registry_spec.rb
|
482
|
+
- spec/paperclip/io_adapters/stringio_adapter_spec.rb
|
483
|
+
- spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb
|
484
|
+
- spec/paperclip/io_adapters/uri_adapter_spec.rb
|
485
|
+
- spec/paperclip/matchers/have_attached_file_matcher_spec.rb
|
486
|
+
- spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb
|
487
|
+
- spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb
|
488
|
+
- spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb
|
489
|
+
- spec/paperclip/media_type_spoof_detector_spec.rb
|
490
|
+
- spec/paperclip/meta_class_spec.rb
|
491
|
+
- spec/paperclip/paperclip_missing_attachment_styles_spec.rb
|
492
|
+
- spec/paperclip/paperclip_spec.rb
|
493
|
+
- spec/paperclip/plural_cache_spec.rb
|
494
|
+
- spec/paperclip/processor_helpers_spec.rb
|
495
|
+
- spec/paperclip/processor_spec.rb
|
496
|
+
- spec/paperclip/rails_environment_spec.rb
|
497
|
+
- spec/paperclip/rake_spec.rb
|
498
|
+
- spec/paperclip/schema_spec.rb
|
499
|
+
- spec/paperclip/storage/filesystem_spec.rb
|
500
|
+
- spec/paperclip/storage/fog_spec.rb
|
501
|
+
- spec/paperclip/storage/s3_live_spec.rb
|
502
|
+
- spec/paperclip/storage/s3_spec.rb
|
503
|
+
- spec/paperclip/style_spec.rb
|
504
|
+
- spec/paperclip/tempfile_factory_spec.rb
|
505
|
+
- spec/paperclip/tempfile_spec.rb
|
506
|
+
- spec/paperclip/thumbnail_spec.rb
|
507
|
+
- spec/paperclip/url_generator_spec.rb
|
508
|
+
- spec/paperclip/validators/attachment_content_type_validator_spec.rb
|
509
|
+
- spec/paperclip/validators/attachment_file_name_validator_spec.rb
|
510
|
+
- spec/paperclip/validators/attachment_presence_validator_spec.rb
|
511
|
+
- spec/paperclip/validators/attachment_size_validator_spec.rb
|
512
|
+
- spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb
|
513
|
+
- spec/paperclip/validators_spec.rb
|
514
|
+
- spec/spec_helper.rb
|
515
|
+
- spec/support/assertions.rb
|
516
|
+
- spec/support/fake_model.rb
|
517
|
+
- spec/support/fake_rails.rb
|
518
|
+
- spec/support/fixtures/12k.png
|
519
|
+
- spec/support/fixtures/50x50.png
|
520
|
+
- spec/support/fixtures/5k.png
|
521
|
+
- spec/support/fixtures/animated
|
522
|
+
- spec/support/fixtures/animated.gif
|
523
|
+
- spec/support/fixtures/animated.unknown
|
524
|
+
- spec/support/fixtures/bad.png
|
525
|
+
- spec/support/fixtures/empty.html
|
526
|
+
- spec/support/fixtures/empty.xlsx
|
527
|
+
- spec/support/fixtures/fog.yml
|
528
|
+
- spec/support/fixtures/rotated.jpg
|
529
|
+
- spec/support/fixtures/s3.yml
|
530
|
+
- spec/support/fixtures/spaced file.jpg
|
531
|
+
- spec/support/fixtures/spaced file.png
|
532
|
+
- spec/support/fixtures/text.txt
|
533
|
+
- spec/support/fixtures/twopage.pdf
|
534
|
+
- spec/support/fixtures/uppercase.PNG
|
535
|
+
- spec/support/matchers/accept.rb
|
536
|
+
- spec/support/matchers/exist.rb
|
537
|
+
- spec/support/matchers/have_column.rb
|
538
|
+
- spec/support/mock_attachment.rb
|
539
|
+
- spec/support/mock_interpolator.rb
|
540
|
+
- spec/support/mock_url_generator_builder.rb
|
541
|
+
- spec/support/model_reconstruction.rb
|
542
|
+
- spec/support/reporting.rb
|
543
|
+
- spec/support/test_data.rb
|
544
|
+
- spec/support/version_helper.rb
|
545
|
+
homepage: https://github.com/kreeti/paperclip
|
546
|
+
licenses:
|
547
|
+
- MIT
|
548
|
+
metadata: {}
|
549
|
+
post_install_message: |
|
550
|
+
##################################################
|
551
|
+
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
|
552
|
+
##################################################
|
553
|
+
|
554
|
+
Paperclip is now compatible with aws-sdk-s3.
|
555
|
+
|
556
|
+
If you are using S3 storage, aws-sdk-s3 requires you to make a few small
|
557
|
+
changes:
|
558
|
+
|
559
|
+
* You must set the `s3_region`
|
560
|
+
* If you are explicitly setting permissions anywhere, such as in an initializer,
|
561
|
+
note that the format of the permissions changed from using an underscore to
|
562
|
+
using a hyphen. For example, `:public_read` needs to be changed to
|
563
|
+
`public-read`.
|
564
|
+
|
565
|
+
For a walkthrough of upgrading from 4 to *5* (not 6) and aws-sdk >= 2.0 you can watch
|
566
|
+
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
|
567
|
+
rdoc_options: []
|
568
|
+
require_paths:
|
569
|
+
- lib
|
570
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
571
|
+
requirements:
|
572
|
+
- - ">="
|
573
|
+
- !ruby/object:Gem::Version
|
574
|
+
version: 2.1.0
|
575
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
576
|
+
requirements:
|
577
|
+
- - ">="
|
578
|
+
- !ruby/object:Gem::Version
|
579
|
+
version: '0'
|
580
|
+
requirements:
|
581
|
+
- ImageMagick
|
582
|
+
rubygems_version: 3.0.1
|
583
|
+
signing_key:
|
584
|
+
specification_version: 4
|
585
|
+
summary: File attachments as attributes for ActiveRecord
|
586
|
+
test_files: []
|