kt-paperclip 5.4.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/custom.md +10 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.hound.yml +3 -1055
- data/.rubocop.yml +1061 -1
- data/.travis.yml +23 -4
- data/Appraisals +23 -0
- data/CONTRIBUTING.md +4 -5
- data/Gemfile +10 -7
- data/NEWS +52 -0
- data/README.md +58 -46
- data/Rakefile +29 -21
- data/UPGRADING +3 -3
- data/features/basic_integration.feature +4 -0
- data/features/migration.feature +10 -51
- data/features/step_definitions/attachment_steps.rb +23 -13
- data/features/step_definitions/html_steps.rb +5 -5
- data/features/step_definitions/rails_steps.rb +29 -9
- data/features/step_definitions/s3_steps.rb +3 -3
- data/features/step_definitions/web_steps.rb +5 -6
- data/features/support/env.rb +4 -4
- data/features/support/fakeweb.rb +3 -5
- data/features/support/file_helpers.rb +2 -2
- data/features/support/paths.rb +4 -4
- data/features/support/rails.rb +7 -7
- data/features/support/selectors.rb +1 -1
- data/gemfiles/4.2.gemfile +7 -4
- data/gemfiles/5.0.gemfile +7 -4
- data/gemfiles/5.1.gemfile +20 -0
- data/gemfiles/5.2.gemfile +20 -0
- data/gemfiles/6.0.gemfile +20 -0
- data/gemfiles/6.1.gemfile +21 -0
- data/gemfiles/7.0.gemfile +21 -0
- data/lib/generators/paperclip/paperclip_generator.rb +6 -8
- data/lib/paperclip/attachment.rb +103 -105
- data/lib/paperclip/attachment_registry.rb +2 -2
- data/lib/paperclip/content_type_detector.rb +10 -5
- data/lib/paperclip/file_command_content_type_detector.rb +1 -3
- data/lib/paperclip/filename_cleaner.rb +0 -1
- data/lib/paperclip/geometry.rb +18 -19
- data/lib/paperclip/geometry_detector_factory.rb +13 -16
- data/lib/paperclip/geometry_parser_factory.rb +5 -5
- data/lib/paperclip/glue.rb +3 -3
- data/lib/paperclip/has_attached_file.rb +5 -4
- data/lib/paperclip/helpers.rb +3 -3
- data/lib/paperclip/interpolations.rb +42 -38
- data/lib/paperclip/io_adapters/abstract_adapter.rb +16 -14
- data/lib/paperclip/io_adapters/attachment_adapter.rb +12 -6
- data/lib/paperclip/io_adapters/data_uri_adapter.rb +1 -1
- data/lib/paperclip/io_adapters/file_adapter.rb +1 -3
- data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +1 -1
- data/lib/paperclip/io_adapters/identity_adapter.rb +1 -2
- data/lib/paperclip/io_adapters/registry.rb +1 -1
- data/lib/paperclip/io_adapters/stringio_adapter.rb +1 -1
- data/lib/paperclip/io_adapters/uploaded_file_adapter.rb +6 -8
- data/lib/paperclip/io_adapters/uri_adapter.rb +21 -9
- data/lib/paperclip/logger.rb +1 -1
- data/lib/paperclip/matchers/have_attached_file_matcher.rb +4 -4
- data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +19 -18
- data/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +4 -4
- data/lib/paperclip/matchers/validate_attachment_size_matcher.rb +11 -10
- data/lib/paperclip/matchers.rb +4 -4
- data/lib/paperclip/media_type_spoof_detector.rb +13 -13
- data/lib/paperclip/missing_attachment_styles.rb +11 -6
- data/lib/paperclip/processor.rb +13 -6
- data/lib/paperclip/processor_helpers.rb +3 -1
- data/lib/paperclip/rails_environment.rb +1 -5
- data/lib/paperclip/railtie.rb +5 -5
- data/lib/paperclip/schema.rb +16 -12
- data/lib/paperclip/storage/filesystem.rb +6 -8
- data/lib/paperclip/storage/fog.rb +36 -32
- data/lib/paperclip/storage/s3.rb +68 -76
- data/lib/paperclip/style.rb +3 -6
- data/lib/paperclip/tempfile.rb +4 -5
- data/lib/paperclip/tempfile_factory.rb +0 -1
- data/lib/paperclip/thumbnail.rb +11 -11
- data/lib/paperclip/url_generator.rb +5 -5
- data/lib/paperclip/validators/attachment_content_type_validator.rb +11 -4
- data/lib/paperclip/validators/attachment_file_name_validator.rb +14 -12
- data/lib/paperclip/validators/attachment_file_type_ignorance_validator.rb +1 -2
- data/lib/paperclip/validators/attachment_presence_validator.rb +3 -5
- data/lib/paperclip/validators/attachment_size_validator.rb +28 -11
- data/lib/paperclip/validators/media_type_spoof_detection_validator.rb +3 -1
- data/lib/paperclip/validators.rb +16 -17
- data/lib/paperclip/version.rb +1 -3
- data/lib/paperclip.rb +49 -48
- data/lib/tasks/paperclip.rake +23 -24
- data/paperclip.gemspec +29 -33
- data/shoulda_macros/paperclip.rb +16 -16
- data/spec/paperclip/attachment_definitions_spec.rb +5 -5
- data/spec/paperclip/attachment_processing_spec.rb +22 -23
- data/spec/paperclip/attachment_registry_spec.rb +15 -15
- data/spec/paperclip/attachment_spec.rb +238 -196
- data/spec/paperclip/content_type_detector_spec.rb +18 -12
- data/spec/paperclip/file_command_content_type_detector_spec.rb +10 -10
- data/spec/paperclip/filename_cleaner_spec.rb +3 -4
- data/spec/paperclip/geometry_detector_spec.rb +7 -8
- data/spec/paperclip/geometry_parser_spec.rb +31 -31
- data/spec/paperclip/geometry_spec.rb +24 -24
- data/spec/paperclip/glue_spec.rb +3 -5
- data/spec/paperclip/has_attached_file_spec.rb +46 -126
- data/spec/paperclip/integration_spec.rb +111 -77
- data/spec/paperclip/interpolations_spec.rb +101 -93
- data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +41 -13
- data/spec/paperclip/io_adapters/attachment_adapter_spec.rb +8 -10
- data/spec/paperclip/io_adapters/data_uri_adapter_spec.rb +13 -14
- data/spec/paperclip/io_adapters/empty_string_adapter_spec.rb +4 -4
- data/spec/paperclip/io_adapters/file_adapter_spec.rb +12 -12
- data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +58 -37
- data/spec/paperclip/io_adapters/identity_adapter_spec.rb +1 -1
- data/spec/paperclip/io_adapters/nil_adapter_spec.rb +2 -2
- data/spec/paperclip/io_adapters/registry_spec.rb +4 -4
- data/spec/paperclip/io_adapters/stringio_adapter_spec.rb +10 -10
- data/spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb +6 -6
- data/spec/paperclip/io_adapters/uri_adapter_spec.rb +90 -31
- data/spec/paperclip/matchers/have_attached_file_matcher_spec.rb +3 -3
- data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +4 -5
- data/spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb +4 -4
- data/spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb +4 -4
- data/spec/paperclip/media_type_spoof_detector_spec.rb +50 -24
- data/spec/paperclip/meta_class_spec.rb +3 -3
- data/spec/paperclip/paperclip_missing_attachment_styles_spec.rb +28 -24
- data/spec/paperclip/paperclip_spec.rb +15 -11
- data/spec/paperclip/plural_cache_spec.rb +8 -8
- data/spec/paperclip/processor_helpers_spec.rb +35 -35
- data/spec/paperclip/processor_spec.rb +8 -8
- data/spec/paperclip/rails_environment_spec.rb +7 -10
- data/spec/paperclip/rake_spec.rb +39 -39
- data/spec/paperclip/schema_spec.rb +57 -53
- data/spec/paperclip/storage/filesystem_spec.rb +29 -6
- data/spec/paperclip/storage/fog_spec.rb +122 -82
- data/spec/paperclip/storage/s3_live_spec.rb +22 -22
- data/spec/paperclip/storage/s3_spec.rb +649 -583
- data/spec/paperclip/style_spec.rb +67 -71
- data/spec/paperclip/tempfile_factory_spec.rb +5 -5
- data/spec/paperclip/thumbnail_spec.rb +68 -67
- data/spec/paperclip/url_generator_spec.rb +18 -19
- data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +115 -27
- data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +105 -16
- data/spec/paperclip/validators/attachment_presence_validator_spec.rb +5 -5
- data/spec/paperclip/validators/attachment_size_validator_spec.rb +111 -21
- data/spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb +9 -13
- data/spec/paperclip/validators_spec.rb +61 -46
- data/spec/spec_helper.rb +21 -23
- data/spec/support/assertions.rb +8 -6
- data/spec/support/fake_model.rb +1 -2
- data/spec/support/fake_rails.rb +1 -1
- data/spec/support/fixtures/aws_s3.yml +13 -0
- data/spec/support/fixtures/sample.xlsm +0 -0
- data/spec/support/matchers/exist.rb +1 -1
- data/spec/support/matchers/have_column.rb +1 -1
- data/spec/support/mock_url_generator_builder.rb +2 -3
- data/spec/support/model_reconstruction.rb +16 -12
- data/spec/support/reporting.rb +1 -1
- data/spec/support/test_data.rb +2 -2
- metadata +58 -106
- data/spec/support/conditional_filter_helper.rb +0 -5
@@ -0,0 +1,13 @@
|
|
1
|
+
default: &default
|
2
|
+
acl: public-read
|
3
|
+
development:
|
4
|
+
<<: *default
|
5
|
+
key: 54321
|
6
|
+
production:
|
7
|
+
<<: *default
|
8
|
+
key: 12345
|
9
|
+
test:
|
10
|
+
<<: *default
|
11
|
+
bucket: <%= ENV['S3_BUCKET'] %>
|
12
|
+
access_key_id: <%= ENV['S3_KEY'] %>
|
13
|
+
secret_access_key: <%= ENV['S3_SECRET'] %>
|
Binary file
|
@@ -4,7 +4,7 @@ RSpec::Matchers.define :have_column do |column_name|
|
|
4
4
|
end
|
5
5
|
|
6
6
|
match do |columns|
|
7
|
-
column = columns.detect{|column| column.name == column_name }
|
7
|
+
column = columns.detect { |column| column.name == column_name }
|
8
8
|
column && column.default.to_s == @default.to_s
|
9
9
|
end
|
10
10
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
class MockUrlGeneratorBuilder
|
2
|
-
def initializer
|
3
|
-
end
|
2
|
+
def initializer; end
|
4
3
|
|
5
4
|
def new(attachment)
|
6
5
|
@attachment = attachment
|
@@ -16,7 +15,7 @@ class MockUrlGeneratorBuilder
|
|
16
15
|
|
17
16
|
def has_generated_url_with_options?(options)
|
18
17
|
# options.is_a_subhash_of(@generated_url_with_options)
|
19
|
-
options.inject(true) do |acc,(k,v)|
|
18
|
+
options.inject(true) do |acc, (k, v)|
|
20
19
|
acc && @generated_url_with_options[k] == v
|
21
20
|
end
|
22
21
|
end
|
@@ -1,7 +1,11 @@
|
|
1
1
|
module ModelReconstruction
|
2
|
-
def reset_class
|
3
|
-
ActiveRecord::Base.
|
4
|
-
|
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
|
5
9
|
klass = Object.const_set(class_name, Class.new(ActiveRecord::Base))
|
6
10
|
|
7
11
|
klass.class_eval do
|
@@ -22,29 +26,29 @@ module ModelReconstruction
|
|
22
26
|
klass
|
23
27
|
end
|
24
28
|
|
25
|
-
def reset_table
|
26
|
-
block ||= lambda { |
|
27
|
-
ActiveRecord::Base.connection.create_table :dummies, **{force: true}, &block
|
29
|
+
def reset_table(_table_name, &block)
|
30
|
+
block ||= lambda { |_table| true }
|
31
|
+
ActiveRecord::Base.connection.create_table :dummies, **{ force: true }, &block
|
28
32
|
end
|
29
33
|
|
30
|
-
def modify_table
|
34
|
+
def modify_table(&block)
|
31
35
|
ActiveRecord::Base.connection.change_table :dummies, &block
|
32
36
|
end
|
33
37
|
|
34
|
-
def rebuild_model
|
35
|
-
ActiveRecord::Base.connection.create_table :dummies,
|
38
|
+
def rebuild_model(options = {})
|
39
|
+
ActiveRecord::Base.connection.create_table :dummies, force: true do |table|
|
36
40
|
table.column :title, :string
|
37
41
|
table.column :other, :string
|
38
42
|
table.column :avatar_file_name, :string
|
39
43
|
table.column :avatar_content_type, :string
|
40
|
-
table.column :avatar_file_size, :
|
44
|
+
table.column :avatar_file_size, :bigint
|
41
45
|
table.column :avatar_updated_at, :datetime
|
42
46
|
table.column :avatar_fingerprint, :string
|
43
47
|
end
|
44
48
|
rebuild_class options
|
45
49
|
end
|
46
50
|
|
47
|
-
def rebuild_class
|
51
|
+
def rebuild_class(options = {})
|
48
52
|
reset_class("Dummy").tap do |klass|
|
49
53
|
klass.has_attached_file :avatar, options
|
50
54
|
klass.do_not_validate_attachment_file_type :avatar
|
@@ -52,7 +56,7 @@ module ModelReconstruction
|
|
52
56
|
end
|
53
57
|
end
|
54
58
|
|
55
|
-
def rebuild_meta_class_of
|
59
|
+
def rebuild_meta_class_of(obj, options = {})
|
56
60
|
meta_class_of(obj).tap do |metaklass|
|
57
61
|
metaklass.has_attached_file :avatar, options
|
58
62
|
metaklass.do_not_validate_attachment_file_type :avatar
|
data/spec/support/reporting.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Reporting
|
2
2
|
def silence_stream(stream)
|
3
3
|
old_stream = stream.dup
|
4
|
-
stream.reopen(RbConfig::CONFIG[
|
4
|
+
stream.reopen(RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ ? "NUL:" : "/dev/null")
|
5
5
|
stream.sync = true
|
6
6
|
yield
|
7
7
|
ensure
|
data/spec/support/test_data.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module TestData
|
2
|
-
def attachment(options={})
|
2
|
+
def attachment(options = {})
|
3
3
|
Paperclip::Attachment.new(:avatar, FakeModel.new, options)
|
4
4
|
end
|
5
5
|
|
@@ -8,6 +8,6 @@ module TestData
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def fixture_file(filename)
|
11
|
-
File.join(File.dirname(__FILE__),
|
11
|
+
File.join(File.dirname(__FILE__), "fixtures", filename)
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kt-paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Surendra Singhi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.2.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '6.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 4.2.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '6.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: activesupport
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +31,6 @@ dependencies:
|
|
37
31
|
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: 4.2.0
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '6.0'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,51 +38,48 @@ dependencies:
|
|
47
38
|
- - ">="
|
48
39
|
- !ruby/object:Gem::Version
|
49
40
|
version: 4.2.0
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '6.0'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
42
|
+
name: mime-types
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
|
-
- - "
|
45
|
+
- - ">="
|
58
46
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0
|
47
|
+
version: '0'
|
60
48
|
type: :runtime
|
61
49
|
prerelease: false
|
62
50
|
version_requirements: !ruby/object:Gem::Requirement
|
63
51
|
requirements:
|
64
|
-
- - "
|
52
|
+
- - ">="
|
65
53
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0
|
54
|
+
version: '0'
|
67
55
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
56
|
+
name: marcel
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
70
58
|
requirements:
|
71
|
-
- - "
|
59
|
+
- - "~>"
|
72
60
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
61
|
+
version: 1.0.1
|
74
62
|
type: :runtime
|
75
63
|
prerelease: false
|
76
64
|
version_requirements: !ruby/object:Gem::Requirement
|
77
65
|
requirements:
|
78
|
-
- - "
|
66
|
+
- - "~>"
|
79
67
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
68
|
+
version: 1.0.1
|
81
69
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
70
|
+
name: terrapin
|
83
71
|
requirement: !ruby/object:Gem::Requirement
|
84
72
|
requirements:
|
85
73
|
- - "~>"
|
86
74
|
- !ruby/object:Gem::Version
|
87
|
-
version: 0.
|
75
|
+
version: 0.6.0
|
88
76
|
type: :runtime
|
89
77
|
prerelease: false
|
90
78
|
version_requirements: !ruby/object:Gem::Requirement
|
91
79
|
requirements:
|
92
80
|
- - "~>"
|
93
81
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.
|
82
|
+
version: 0.6.0
|
95
83
|
- !ruby/object:Gem::Dependency
|
96
84
|
name: activerecord
|
97
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,9 +87,6 @@ dependencies:
|
|
99
87
|
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: 4.2.0
|
102
|
-
- - "<"
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '6.0'
|
105
90
|
type: :development
|
106
91
|
prerelease: false
|
107
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,11 +94,8 @@ dependencies:
|
|
109
94
|
- - ">="
|
110
95
|
- !ruby/object:Gem::Version
|
111
96
|
version: 4.2.0
|
112
|
-
- - "<"
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: '6.0'
|
115
97
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
98
|
+
name: appraisal
|
117
99
|
requirement: !ruby/object:Gem::Requirement
|
118
100
|
requirements:
|
119
101
|
- - ">="
|
@@ -127,21 +109,21 @@ dependencies:
|
|
127
109
|
- !ruby/object:Gem::Version
|
128
110
|
version: '0'
|
129
111
|
- !ruby/object:Gem::Dependency
|
130
|
-
name:
|
112
|
+
name: aruba
|
131
113
|
requirement: !ruby/object:Gem::Requirement
|
132
114
|
requirements:
|
133
115
|
- - "~>"
|
134
116
|
- !ruby/object:Gem::Version
|
135
|
-
version:
|
117
|
+
version: 0.9.0
|
136
118
|
type: :development
|
137
119
|
prerelease: false
|
138
120
|
version_requirements: !ruby/object:Gem::Requirement
|
139
121
|
requirements:
|
140
122
|
- - "~>"
|
141
123
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
124
|
+
version: 0.9.0
|
143
125
|
- !ruby/object:Gem::Dependency
|
144
|
-
name:
|
126
|
+
name: aws-sdk-s3
|
145
127
|
requirement: !ruby/object:Gem::Requirement
|
146
128
|
requirements:
|
147
129
|
- - ">="
|
@@ -155,7 +137,7 @@ dependencies:
|
|
155
137
|
- !ruby/object:Gem::Version
|
156
138
|
version: '0'
|
157
139
|
- !ruby/object:Gem::Dependency
|
158
|
-
name:
|
140
|
+
name: bundler
|
159
141
|
requirement: !ruby/object:Gem::Requirement
|
160
142
|
requirements:
|
161
143
|
- - ">="
|
@@ -169,39 +151,33 @@ dependencies:
|
|
169
151
|
- !ruby/object:Gem::Version
|
170
152
|
version: '0'
|
171
153
|
- !ruby/object:Gem::Dependency
|
172
|
-
name:
|
154
|
+
name: capybara
|
173
155
|
requirement: !ruby/object:Gem::Requirement
|
174
156
|
requirements:
|
175
157
|
- - ">="
|
176
158
|
- !ruby/object:Gem::Version
|
177
|
-
version:
|
178
|
-
- - "<"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '3.0'
|
159
|
+
version: '0'
|
181
160
|
type: :development
|
182
161
|
prerelease: false
|
183
162
|
version_requirements: !ruby/object:Gem::Requirement
|
184
163
|
requirements:
|
185
164
|
- - ">="
|
186
165
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
188
|
-
- - "<"
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
version: '3.0'
|
166
|
+
version: '0'
|
191
167
|
- !ruby/object:Gem::Dependency
|
192
|
-
name:
|
168
|
+
name: cucumber-expressions
|
193
169
|
requirement: !ruby/object:Gem::Requirement
|
194
170
|
requirements:
|
195
|
-
- - "
|
171
|
+
- - ">="
|
196
172
|
- !ruby/object:Gem::Version
|
197
|
-
version: '
|
173
|
+
version: '0'
|
198
174
|
type: :development
|
199
175
|
prerelease: false
|
200
176
|
version_requirements: !ruby/object:Gem::Requirement
|
201
177
|
requirements:
|
202
|
-
- - "
|
178
|
+
- - ">="
|
203
179
|
- !ruby/object:Gem::Version
|
204
|
-
version: '
|
180
|
+
version: '0'
|
205
181
|
- !ruby/object:Gem::Dependency
|
206
182
|
name: cucumber-rails
|
207
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,35 +193,7 @@ dependencies:
|
|
217
193
|
- !ruby/object:Gem::Version
|
218
194
|
version: '0'
|
219
195
|
- !ruby/object:Gem::Dependency
|
220
|
-
name:
|
221
|
-
requirement: !ruby/object:Gem::Requirement
|
222
|
-
requirements:
|
223
|
-
- - '='
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
version: 4.0.3
|
226
|
-
type: :development
|
227
|
-
prerelease: false
|
228
|
-
version_requirements: !ruby/object:Gem::Requirement
|
229
|
-
requirements:
|
230
|
-
- - '='
|
231
|
-
- !ruby/object:Gem::Version
|
232
|
-
version: 4.0.3
|
233
|
-
- !ruby/object:Gem::Dependency
|
234
|
-
name: aruba
|
235
|
-
requirement: !ruby/object:Gem::Requirement
|
236
|
-
requirements:
|
237
|
-
- - "~>"
|
238
|
-
- !ruby/object:Gem::Version
|
239
|
-
version: 0.9.0
|
240
|
-
type: :development
|
241
|
-
prerelease: false
|
242
|
-
version_requirements: !ruby/object:Gem::Requirement
|
243
|
-
requirements:
|
244
|
-
- - "~>"
|
245
|
-
- !ruby/object:Gem::Version
|
246
|
-
version: 0.9.0
|
247
|
-
- !ruby/object:Gem::Dependency
|
248
|
-
name: nokogiri
|
196
|
+
name: fakeweb
|
249
197
|
requirement: !ruby/object:Gem::Requirement
|
250
198
|
requirements:
|
251
199
|
- - ">="
|
@@ -259,7 +207,7 @@ dependencies:
|
|
259
207
|
- !ruby/object:Gem::Version
|
260
208
|
version: '0'
|
261
209
|
- !ruby/object:Gem::Dependency
|
262
|
-
name:
|
210
|
+
name: fog-aws
|
263
211
|
requirement: !ruby/object:Gem::Requirement
|
264
212
|
requirements:
|
265
213
|
- - ">="
|
@@ -273,7 +221,7 @@ dependencies:
|
|
273
221
|
- !ruby/object:Gem::Version
|
274
222
|
version: '0'
|
275
223
|
- !ruby/object:Gem::Dependency
|
276
|
-
name:
|
224
|
+
name: fog-local
|
277
225
|
requirement: !ruby/object:Gem::Requirement
|
278
226
|
requirements:
|
279
227
|
- - ">="
|
@@ -287,7 +235,7 @@ dependencies:
|
|
287
235
|
- !ruby/object:Gem::Version
|
288
236
|
version: '0'
|
289
237
|
- !ruby/object:Gem::Dependency
|
290
|
-
name:
|
238
|
+
name: generator_spec
|
291
239
|
requirement: !ruby/object:Gem::Requirement
|
292
240
|
requirements:
|
293
241
|
- - ">="
|
@@ -301,7 +249,7 @@ dependencies:
|
|
301
249
|
- !ruby/object:Gem::Version
|
302
250
|
version: '0'
|
303
251
|
- !ruby/object:Gem::Dependency
|
304
|
-
name:
|
252
|
+
name: launchy
|
305
253
|
requirement: !ruby/object:Gem::Requirement
|
306
254
|
requirements:
|
307
255
|
- - ">="
|
@@ -315,7 +263,7 @@ dependencies:
|
|
315
263
|
- !ruby/object:Gem::Version
|
316
264
|
version: '0'
|
317
265
|
- !ruby/object:Gem::Dependency
|
318
|
-
name:
|
266
|
+
name: nokogiri
|
319
267
|
requirement: !ruby/object:Gem::Requirement
|
320
268
|
requirements:
|
321
269
|
- - ">="
|
@@ -329,7 +277,7 @@ dependencies:
|
|
329
277
|
- !ruby/object:Gem::Version
|
330
278
|
version: '0'
|
331
279
|
- !ruby/object:Gem::Dependency
|
332
|
-
name:
|
280
|
+
name: railties
|
333
281
|
requirement: !ruby/object:Gem::Requirement
|
334
282
|
requirements:
|
335
283
|
- - ">="
|
@@ -343,7 +291,7 @@ dependencies:
|
|
343
291
|
- !ruby/object:Gem::Version
|
344
292
|
version: '0'
|
345
293
|
- !ruby/object:Gem::Dependency
|
346
|
-
name:
|
294
|
+
name: rake
|
347
295
|
requirement: !ruby/object:Gem::Requirement
|
348
296
|
requirements:
|
349
297
|
- - ">="
|
@@ -357,27 +305,21 @@ dependencies:
|
|
357
305
|
- !ruby/object:Gem::Version
|
358
306
|
version: '0'
|
359
307
|
- !ruby/object:Gem::Dependency
|
360
|
-
name:
|
308
|
+
name: rspec
|
361
309
|
requirement: !ruby/object:Gem::Requirement
|
362
310
|
requirements:
|
363
|
-
- - "
|
364
|
-
- !ruby/object:Gem::Version
|
365
|
-
version: 4.2.0
|
366
|
-
- - "<"
|
311
|
+
- - "~>"
|
367
312
|
- !ruby/object:Gem::Version
|
368
|
-
version: '
|
313
|
+
version: '3.0'
|
369
314
|
type: :development
|
370
315
|
prerelease: false
|
371
316
|
version_requirements: !ruby/object:Gem::Requirement
|
372
317
|
requirements:
|
373
|
-
- - "
|
374
|
-
- !ruby/object:Gem::Version
|
375
|
-
version: 4.2.0
|
376
|
-
- - "<"
|
318
|
+
- - "~>"
|
377
319
|
- !ruby/object:Gem::Version
|
378
|
-
version: '
|
320
|
+
version: '3.0'
|
379
321
|
- !ruby/object:Gem::Dependency
|
380
|
-
name:
|
322
|
+
name: shoulda
|
381
323
|
requirement: !ruby/object:Gem::Requirement
|
382
324
|
requirements:
|
383
325
|
- - ">="
|
@@ -412,6 +354,10 @@ extensions: []
|
|
412
354
|
extra_rdoc_files: []
|
413
355
|
files:
|
414
356
|
- ".codeclimate.yml"
|
357
|
+
- ".github/FUNDING.yml"
|
358
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
359
|
+
- ".github/ISSUE_TEMPLATE/custom.md"
|
360
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
415
361
|
- ".gitignore"
|
416
362
|
- ".hound.yml"
|
417
363
|
- ".rubocop.yml"
|
@@ -444,6 +390,11 @@ files:
|
|
444
390
|
- features/support/selectors.rb
|
445
391
|
- gemfiles/4.2.gemfile
|
446
392
|
- gemfiles/5.0.gemfile
|
393
|
+
- gemfiles/5.1.gemfile
|
394
|
+
- gemfiles/5.2.gemfile
|
395
|
+
- gemfiles/6.0.gemfile
|
396
|
+
- gemfiles/6.1.gemfile
|
397
|
+
- gemfiles/7.0.gemfile
|
447
398
|
- lib/generators/paperclip/USAGE
|
448
399
|
- lib/generators/paperclip/paperclip_generator.rb
|
449
400
|
- lib/generators/paperclip/templates/paperclip_migration.rb.erb
|
@@ -568,7 +519,6 @@ files:
|
|
568
519
|
- spec/paperclip/validators_spec.rb
|
569
520
|
- spec/spec_helper.rb
|
570
521
|
- spec/support/assertions.rb
|
571
|
-
- spec/support/conditional_filter_helper.rb
|
572
522
|
- spec/support/fake_model.rb
|
573
523
|
- spec/support/fake_rails.rb
|
574
524
|
- spec/support/fixtures/12k.png
|
@@ -577,12 +527,14 @@ files:
|
|
577
527
|
- spec/support/fixtures/animated
|
578
528
|
- spec/support/fixtures/animated.gif
|
579
529
|
- spec/support/fixtures/animated.unknown
|
530
|
+
- spec/support/fixtures/aws_s3.yml
|
580
531
|
- spec/support/fixtures/bad.png
|
581
532
|
- spec/support/fixtures/empty.html
|
582
533
|
- spec/support/fixtures/empty.xlsx
|
583
534
|
- spec/support/fixtures/fog.yml
|
584
535
|
- spec/support/fixtures/rotated.jpg
|
585
536
|
- spec/support/fixtures/s3.yml
|
537
|
+
- spec/support/fixtures/sample.xlsm
|
586
538
|
- spec/support/fixtures/spaced file.jpg
|
587
539
|
- spec/support/fixtures/spaced file.png
|
588
540
|
- spec/support/fixtures/text.txt
|
@@ -607,9 +559,9 @@ post_install_message: |
|
|
607
559
|
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
|
608
560
|
##################################################
|
609
561
|
|
610
|
-
Paperclip is now compatible with aws-sdk
|
562
|
+
Paperclip is now compatible with aws-sdk-s3.
|
611
563
|
|
612
|
-
If you are using S3 storage, aws-sdk
|
564
|
+
If you are using S3 storage, aws-sdk-s3 requires you to make a few small
|
613
565
|
changes:
|
614
566
|
|
615
567
|
* You must set the `s3_region`
|
@@ -618,7 +570,7 @@ post_install_message: |
|
|
618
570
|
using a hyphen. For example, `:public_read` needs to be changed to
|
619
571
|
`public-read`.
|
620
572
|
|
621
|
-
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
|
573
|
+
For a walkthrough of upgrading from 4 to *5* (not 6) and aws-sdk >= 2.0 you can watch
|
622
574
|
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
|
623
575
|
rdoc_options: []
|
624
576
|
require_paths:
|
@@ -627,7 +579,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
627
579
|
requirements:
|
628
580
|
- - ">="
|
629
581
|
- !ruby/object:Gem::Version
|
630
|
-
version: 2.
|
582
|
+
version: 2.3.0
|
631
583
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
632
584
|
requirements:
|
633
585
|
- - ">="
|