mini_paperclip 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c1c22dd977c524a6e7a582f57d07e49683148a098eb20d245f97dc5c9a36973
4
- data.tar.gz: b8edc152a973e9ca48551689fc69515c3d779e7c6e1febcce16b48b8d8cec891
3
+ metadata.gz: 850d839537b2fe1437c8ac554c25d3f30a510aca55d9b4b1499c793140ba359e
4
+ data.tar.gz: 3cd21db1f81a1d104149b07da78742383cadcc9c5a61e202ae412187b64434e2
5
5
  SHA512:
6
- metadata.gz: 47e491250e553325edec13a13980a305921165d87620c25f8de8193bda3ee5d860d7b3701561267e799546564c8993545774866071e982021b0348eb782110df
7
- data.tar.gz: e866c571a0e0bfd15c05764854202688fb78613f9177a0fb15d3eb1f1bbe04296ee67bac42522c87dfebbdcb5222bedc8c5fff96fa9c345967ce295d3631d479
6
+ metadata.gz: 172cec449a9333d874da8a65d44d7cae8615c37e20d443ddc133df3f23141992de56dfafd5cca35736edd907978c5882c1b079a171712766eeebb4462884142a
7
+ data.tar.gz: 35836fe46ceefcd5005babb272703991eb5d77d37309b3eaac54eee6de9b9bad38d167bc2c1135d3553d0267d79d0756f722511be311fac256caf7415bf6b1e0
@@ -15,29 +15,41 @@ on:
15
15
  branches:
16
16
  - main
17
17
 
18
+ permissions:
19
+ contents: read
20
+
18
21
  jobs:
19
22
  test:
20
23
  strategy:
21
24
  fail-fast: false
22
25
  matrix:
23
26
  ruby:
24
- - 3.0
25
- - 3.1
26
- - 3.2
27
+ - "3.3"
28
+ - "3.4"
29
+ - "4.0"
27
30
  gemfile:
28
- - gemfiles/rails_60.gemfile
29
- - gemfiles/rails_70.gemfile
30
- runs-on: ubuntu-20.04
31
+ - gemfiles/rails_72.gemfile
32
+ - gemfiles/rails_80.gemfile
33
+ - gemfiles/rails_81.gemfile
34
+ include:
35
+ - ruby: "3.3"
36
+ gemfile: gemfiles/minimum.gemfile
37
+ runs-on: ubuntu-latest
38
+ env:
39
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
31
40
  steps:
32
- - uses: actions/checkout@v2
41
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
42
+ with:
43
+ persist-credentials: false
44
+ - name: Install ImageMagick
45
+ run: sudo apt-get update && sudo apt-get install -y imagemagick
33
46
  - name: Set up Ruby
34
- uses: ruby/setup-ruby@v1
47
+ uses: ruby/setup-ruby@145243922b4465b78e04dd66294782c7de45901f # v1.345.0
35
48
  with:
36
49
  ruby-version: ${{ matrix.ruby }}
37
- - name: Install dependencies
38
- run: bundle install --gemfile=${{ matrix.gemfile }}
50
+ bundler-cache: true
39
51
  - name: Run tests and Print coverage
40
52
  env:
41
53
  COVERAGE: 1
42
54
  LOGLEVEL: info
43
- run: bundle exec --gemfile=${{ matrix.gemfile }} rake
55
+ run: bundle exec rake
data/Rakefile CHANGED
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
@@ -1,6 +1,5 @@
1
- gem "rake", "~> 12.0"
2
- gem "rspec", "~> 3.0"
1
+ gem "rake", "~> 13.0"
2
+ gem "rspec", "~> 3.13"
3
3
  gem "rack-test"
4
4
  gem "webmock"
5
- gem "tapp"
6
5
  gem "sqlite3"
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+ gemspec path: '../'
3
+
4
+ # Lowest versions allowed by mini_paperclip.gemspec
5
+ gem 'activerecord', '7.2.0'
6
+ gem 'marcel', '1.0.0'
7
+ gem 'mini_magick', '5.0.0'
8
+ eval_gemfile 'development.gemfile'
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
  gemspec path: '../'
3
3
 
4
- gem 'activerecord', '~> 6.0.0'
4
+ gem 'activerecord', '~> 7.2.0'
5
5
  eval_gemfile 'development.gemfile'
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
  gemspec path: '../'
3
3
 
4
- gem 'activerecord', '~> 7.0.0'
4
+ gem 'activerecord', '~> 8.0.0'
5
5
  eval_gemfile 'development.gemfile'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+ gemspec path: '../'
3
+
4
+ gem 'activerecord', '~> 8.1.0'
5
+ eval_gemfile 'development.gemfile'
@@ -103,15 +103,16 @@ module MiniPaperclip
103
103
  @config.styles&.each do |style, size_arg|
104
104
  Tempfile.create([style.to_s, File.extname(@waiting_write_file.path)]) do |temp|
105
105
  temp.binmode
106
- MiniMagick::Tool::Convert.new do |convert|
106
+ MiniMagick.convert do |convert|
107
107
  convert << @waiting_write_file.path
108
108
  convert.coalesce if animated?
109
109
  convert.auto_orient
110
110
  if size_arg.end_with?('#')
111
111
  # crop option
112
- convert.resize("#{size_arg[0..-2]}^")
112
+ crop_size = size_arg.delete_suffix('#')
113
+ convert.resize("#{crop_size}^")
113
114
  convert.gravity("center")
114
- convert.extent(size_arg[0..-2])
115
+ convert.extent(crop_size)
115
116
  else
116
117
  convert.resize(size_arg)
117
118
  end
@@ -192,10 +193,13 @@ module MiniPaperclip
192
193
 
193
194
  def assign_http(url)
194
195
  # download from url
196
+ uri = URI.parse(url)
197
+ unless uri.is_a?(URI::HTTP)
198
+ raise UnsupportedError, "attachment for \"#{url[0..100]}\" is not supported"
199
+ end
195
200
  open_uri_option = {
196
- read_timeout: MiniPaperclip.config.read_timeout || 60
201
+ read_timeout: @config.read_timeout || 60
197
202
  }
198
- uri = URI.parse(url)
199
203
  uri.open(open_uri_option) do |io|
200
204
  @record.write_attribute("#{@attachment_name}_file_name", File.basename(uri.path))
201
205
  @record.write_attribute("#{@attachment_name}_content_type", strict_content_type(io))
@@ -212,7 +216,7 @@ module MiniPaperclip
212
216
  if match_data.nil?
213
217
  raise UnsupportedError, "attachment for \"#{data_uri[0..100]}\" is not supported"
214
218
  end
215
- raw = Base64.decode64(match_data[2])
219
+ raw = match_data[2].unpack1("m")
216
220
  @record.write_attribute("#{@attachment_name}_file_name", nil)
217
221
  @record.write_attribute("#{@attachment_name}_content_type", strict_content_type(StringIO.new(raw)))
218
222
  @record.write_attribute("#{@attachment_name}_file_size", raw.bytesize)
@@ -223,7 +227,7 @@ module MiniPaperclip
223
227
 
224
228
  def strict_content_type(io)
225
229
  io.rewind
226
- MimeMagic.by_magic(io)&.type
230
+ Marcel::Magic.by_magic(io)&.type
227
231
  end
228
232
 
229
233
  def build_tempfile(io)
@@ -51,7 +51,7 @@ module MiniPaperclip
51
51
  if !presence.nil?
52
52
  validates_with Validators::PresenceValidator, {
53
53
  attributes: attachment_name.to_sym,
54
- presence: presence,
54
+ presence:,
55
55
  **opts,
56
56
  }
57
57
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniPaperclip
4
- class Config < Struct.new(
4
+ Config = Struct.new(
5
5
  :storage,
6
6
  :filesystem_path,
7
7
  :hash_secret,
@@ -20,7 +20,7 @@ module MiniPaperclip
20
20
  :read_timeout,
21
21
  :logger,
22
22
  keyword_init: true,
23
- )
23
+ ) do
24
24
  def merge(hash)
25
25
  dup.merge!(hash)
26
26
  end
@@ -29,7 +29,7 @@ module MiniPaperclip
29
29
 
30
30
  def extension
31
31
  attachment.original_filename &&
32
- File.extname(attachment.original_filename)[1..-1]
32
+ File.extname(attachment.original_filename)[1..]
33
33
  end
34
34
 
35
35
  def hash_key(style)
@@ -10,17 +10,17 @@ module MiniPaperclip
10
10
  # describe User do
11
11
  # it { should have_attached_file(:avatar) }
12
12
  # end
13
- def have_attached_file name
13
+ def have_attached_file(name)
14
14
  HaveAttachedFileMatcher.new(name)
15
15
  end
16
16
 
17
17
  class HaveAttachedFileMatcher
18
- def initialize attachment_name
18
+ def initialize(attachment_name)
19
19
  @attachment_name = attachment_name
20
20
  end
21
21
 
22
- def matches? subject
23
- @subject = subject.class == Class ? subject.new : subject
22
+ def matches?(subject)
23
+ @subject = subject.is_a?(Class) ? subject.new : subject
24
24
 
25
25
  @subject.respond_to?(@attachment_name) &&
26
26
  @subject.respond_to?("#{@attachment_name}=") &&
@@ -35,7 +35,7 @@ module MiniPaperclip
35
35
  end
36
36
 
37
37
  def matches?(subject)
38
- @subject = subject.class == Class ? subject.new : subject
38
+ @subject = subject.is_a?(Class) ? subject.new : subject
39
39
 
40
40
  begin
41
41
  fails = @allowings.reject do |allowing|
@@ -43,7 +43,7 @@ module MiniPaperclip
43
43
  end
44
44
 
45
45
  def matches?(subject)
46
- @subject = subject.class == Class ? subject.new : subject
46
+ @subject = subject.is_a?(Class) ? subject.new : subject
47
47
 
48
48
  unless @format && !@width.empty? && !@height.empty?
49
49
  raise CallError, [
@@ -79,7 +79,7 @@ module MiniPaperclip
79
79
  @subject.public_send("#{@attachment_name}=", f)
80
80
  end
81
81
  @subject.valid?
82
- @subject.errors.details[:image]&.find { |d| d[:error] == :geometry }.nil?
82
+ @subject.errors.details[@attachment_name]&.find { |d| d[:error] == :geometry }.nil?
83
83
  end
84
84
 
85
85
  def when_invalid
@@ -87,7 +87,7 @@ module MiniPaperclip
87
87
  @subject.public_send("#{@attachment_name}=", f)
88
88
  end
89
89
  @subject.valid?
90
- detail = @subject.errors.details[:image]&.find { |d| d[:error] == :geometry }
90
+ detail = @subject.errors.details[@attachment_name]&.find { |d| d[:error] == :geometry }
91
91
  return false unless detail
92
92
  return false unless detail[:expected_width_less_than_or_equal_to] == @width[:less_than_or_equal_to]
93
93
  return false unless detail[:expected_height_less_than_or_equal_to] == @height[:less_than_or_equal_to]
@@ -97,7 +97,7 @@ module MiniPaperclip
97
97
  def create_dummy_image(width:, height:)
98
98
  Tempfile.create(['MiniPaperclip::Shoulda::Matchers::ValidateAttachmentGeometryMatcher', ".#{@format}"]) do |f|
99
99
  f.binmode
100
- MiniMagick::Tool::Convert.new do |convert|
100
+ MiniMagick.convert do |convert|
101
101
  convert.size("#{width}x#{height}")
102
102
  convert.xc("none")
103
103
  convert.strip
@@ -19,7 +19,7 @@ module MiniPaperclip
19
19
  end
20
20
 
21
21
  def matches?(subject)
22
- @subject = subject.class == Class ? subject.new : subject
22
+ @subject = subject.is_a?(Class) ? subject.new : subject
23
23
 
24
24
  begin
25
25
  @subject.write_attribute("#{@attachment_name}_file_name", 'hello.png')
@@ -25,7 +25,7 @@ module MiniPaperclip
25
25
  end
26
26
 
27
27
  def matches?(subject)
28
- @subject = subject.class == Class ? subject.new : subject
28
+ @subject = subject.is_a?(Class) ? subject.new : subject
29
29
 
30
30
  begin
31
31
  @subject.write_attribute("#{@attachment_name}_file_size", @less_than_size - 1)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniPaperclip
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -1,12 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "fileutils"
4
+ require "logger"
5
+ require "open-uri"
3
6
  require "openssl"
4
- require "net/http"
7
+ require "stringio"
8
+ require "tempfile"
5
9
  require "active_model/validator"
6
10
  require "active_support"
11
+ require "active_support/core_ext/hash/deep_merge"
12
+ require "active_support/core_ext/object/blank"
13
+ require "active_support/core_ext/string/inflections"
14
+ require "active_support/core_ext/time/calculations"
7
15
  require "active_support/number_helper"
8
16
  require "mini_magick"
9
- require "mimemagic"
17
+ require "marcel"
10
18
  require "aws-sdk-s3"
11
19
  require "image_size"
12
20
 
@@ -1,4 +1,4 @@
1
- require_relative 'lib/mini_paperclip/version'
1
+ require_relative "lib/mini_paperclip/version"
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "mini_paperclip"
@@ -6,28 +6,27 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["ksss"]
7
7
  spec.email = ["co000ri@gmail.com"]
8
8
 
9
- spec.summary = %q{MiniPaperclip is a mini paperclip}
10
- spec.description = %q{Subset from paperclip because paperclip has deprecated}
9
+ spec.summary = "MiniPaperclip is a mini paperclip"
10
+ spec.description = "Subset from paperclip because paperclip has deprecated"
11
11
  spec.homepage = "https://github.com/reproio/mini_paperclip"
12
12
  spec.license = "MIT"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
13
+ spec.required_ruby_version = ">= 3.3.0"
14
14
 
15
- spec.add_runtime_dependency "mini_magick"
16
- spec.add_runtime_dependency "mimemagic"
17
- spec.add_runtime_dependency "activemodel"
18
- spec.add_runtime_dependency "activesupport"
19
- spec.add_runtime_dependency "aws-sdk-s3"
20
- spec.add_runtime_dependency "image_size"
15
+ spec.add_dependency "activemodel", ">= 7.2"
16
+ spec.add_dependency "activesupport", ">= 7.2"
17
+ spec.add_dependency "aws-sdk-s3"
18
+ spec.add_dependency "image_size"
19
+ spec.add_dependency "logger"
20
+ spec.add_dependency "marcel", ">= 1.0"
21
+ spec.add_dependency "mini_magick", ">= 5.0"
21
22
 
22
23
  spec.metadata["homepage_uri"] = spec.homepage
23
24
  spec.metadata["source_code_uri"] = spec.homepage
24
25
 
25
26
  # Specify which files should be added to the gem when it is released.
26
27
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ spec.files = Dir.chdir(__dir__) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match?(%r{\A(?:test|spec|features)/}) }
29
30
  end
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
31
  spec.require_paths = ["lib"]
33
32
  end
metadata CHANGED
@@ -1,166 +1,195 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
- - ksss
8
- autorequire:
9
- bindir: exe
7
+ - ksss
8
+ bindir: bin
10
9
  cert_chain: []
11
- date: 2023-04-28 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: mini_magick
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: mimemagic
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: activemodel
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: activesupport
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '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'
69
- - !ruby/object:Gem::Dependency
70
- name: aws-sdk-s3
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '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'
83
- - !ruby/object:Gem::Dependency
84
- name: image_size
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
12
+ - !ruby/object:Gem::Dependency
13
+ name: activemodel
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ -
17
+ - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: "7.2"
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ -
25
+ - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: "7.2"
28
+ - !ruby/object:Gem::Dependency
29
+ name: activesupport
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ -
33
+ - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "7.2"
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ -
41
+ - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "7.2"
44
+ - !ruby/object:Gem::Dependency
45
+ name: aws-sdk-s3
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ -
49
+ - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ type: :runtime
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ -
57
+ - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ - !ruby/object:Gem::Dependency
61
+ name: image_size
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ -
65
+ - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ -
73
+ - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ - !ruby/object:Gem::Dependency
77
+ name: logger
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ -
81
+ - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ type: :runtime
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ -
89
+ - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ - !ruby/object:Gem::Dependency
93
+ name: marcel
94
+ requirement: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ -
97
+ - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "1.0"
100
+ type: :runtime
101
+ prerelease: false
102
+ version_requirements: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ -
105
+ - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: "1.0"
108
+ - !ruby/object:Gem::Dependency
109
+ name: mini_magick
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ -
113
+ - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: "5.0"
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ -
121
+ - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "5.0"
97
124
  description: Subset from paperclip because paperclip has deprecated
98
125
  email:
99
- - co000ri@gmail.com
126
+ - co000ri@gmail.com
100
127
  executables: []
101
128
  extensions: []
102
129
  extra_rdoc_files: []
103
130
  files:
104
- - ".github/workflows/ci.yml"
105
- - ".gitignore"
106
- - ".rspec"
107
- - CODE_OF_CONDUCT.md
108
- - Gemfile
109
- - LICENSE.txt
110
- - README.md
111
- - Rakefile
112
- - bin/console
113
- - bin/setup
114
- - gemfiles/development.gemfile
115
- - gemfiles/rails_60.gemfile
116
- - gemfiles/rails_70.gemfile
117
- - gemfiles/rails_head.gemfile
118
- - lib/mini_paperclip.rb
119
- - lib/mini_paperclip/attachment.rb
120
- - lib/mini_paperclip/class_methods.rb
121
- - lib/mini_paperclip/config.rb
122
- - lib/mini_paperclip/interpolator.rb
123
- - lib/mini_paperclip/shoulda/matchers.rb
124
- - lib/mini_paperclip/shoulda/matchers/have_attached_file_matcher.rb
125
- - lib/mini_paperclip/shoulda/matchers/validate_attachment_content_type_matcher.rb
126
- - lib/mini_paperclip/shoulda/matchers/validate_attachment_geometry_matcher.rb
127
- - lib/mini_paperclip/shoulda/matchers/validate_attachment_presence_matcher.rb
128
- - lib/mini_paperclip/shoulda/matchers/validate_attachment_size_matcher.rb
129
- - lib/mini_paperclip/storage.rb
130
- - lib/mini_paperclip/storage/base.rb
131
- - lib/mini_paperclip/storage/filesystem.rb
132
- - lib/mini_paperclip/storage/s3.rb
133
- - lib/mini_paperclip/validators.rb
134
- - lib/mini_paperclip/validators/content_type_validator.rb
135
- - lib/mini_paperclip/validators/file_size_validator.rb
136
- - lib/mini_paperclip/validators/geometry_validator.rb
137
- - lib/mini_paperclip/validators/media_type_spoof_validator.rb
138
- - lib/mini_paperclip/validators/presence_validator.rb
139
- - lib/mini_paperclip/version.rb
140
- - mini_paperclip.gemspec
141
- homepage: https://github.com/reproio/mini_paperclip
131
+ - .github/workflows/ci.yml
132
+ - .gitignore
133
+ - .rspec
134
+ - CODE_OF_CONDUCT.md
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - bin/console
140
+ - bin/setup
141
+ - gemfiles/development.gemfile
142
+ - gemfiles/minimum.gemfile
143
+ - gemfiles/rails_72.gemfile
144
+ - gemfiles/rails_80.gemfile
145
+ - gemfiles/rails_81.gemfile
146
+ - gemfiles/rails_head.gemfile
147
+ - lib/mini_paperclip.rb
148
+ - lib/mini_paperclip/attachment.rb
149
+ - lib/mini_paperclip/class_methods.rb
150
+ - lib/mini_paperclip/config.rb
151
+ - lib/mini_paperclip/interpolator.rb
152
+ - lib/mini_paperclip/shoulda/matchers.rb
153
+ - lib/mini_paperclip/shoulda/matchers/have_attached_file_matcher.rb
154
+ - lib/mini_paperclip/shoulda/matchers/validate_attachment_content_type_matcher.rb
155
+ - lib/mini_paperclip/shoulda/matchers/validate_attachment_geometry_matcher.rb
156
+ - lib/mini_paperclip/shoulda/matchers/validate_attachment_presence_matcher.rb
157
+ - lib/mini_paperclip/shoulda/matchers/validate_attachment_size_matcher.rb
158
+ - lib/mini_paperclip/storage.rb
159
+ - lib/mini_paperclip/storage/base.rb
160
+ - lib/mini_paperclip/storage/filesystem.rb
161
+ - lib/mini_paperclip/storage/s3.rb
162
+ - lib/mini_paperclip/validators.rb
163
+ - lib/mini_paperclip/validators/content_type_validator.rb
164
+ - lib/mini_paperclip/validators/file_size_validator.rb
165
+ - lib/mini_paperclip/validators/geometry_validator.rb
166
+ - lib/mini_paperclip/validators/media_type_spoof_validator.rb
167
+ - lib/mini_paperclip/validators/presence_validator.rb
168
+ - lib/mini_paperclip/version.rb
169
+ - mini_paperclip.gemspec
170
+ homepage: "https://github.com/reproio/mini_paperclip"
142
171
  licenses:
143
- - MIT
172
+ - MIT
144
173
  metadata:
145
- homepage_uri: https://github.com/reproio/mini_paperclip
146
- source_code_uri: https://github.com/reproio/mini_paperclip
147
- post_install_message:
174
+ homepage_uri: "https://github.com/reproio/mini_paperclip"
175
+ source_code_uri: "https://github.com/reproio/mini_paperclip"
148
176
  rdoc_options: []
149
177
  require_paths:
150
- - lib
178
+ - lib
151
179
  required_ruby_version: !ruby/object:Gem::Requirement
152
180
  requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- version: 3.0.0
181
+ -
182
+ - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 3.3.0
156
185
  required_rubygems_version: !ruby/object:Gem::Requirement
157
186
  requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: '0'
187
+ -
188
+ - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: "0"
161
191
  requirements: []
162
- rubygems_version: 3.2.33
163
- signing_key:
192
+ rubygems_version: 4.1.0
164
193
  specification_version: 4
165
194
  summary: MiniPaperclip is a mini paperclip
166
195
  test_files: []