activestorage 5.2.2.1 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activestorage might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +162 -58
- data/MIT-LICENSE +1 -1
- data/README.md +9 -6
- data/app/assets/javascripts/activestorage.js +4 -1
- data/app/controllers/active_storage/base_controller.rb +3 -5
- data/app/controllers/active_storage/blobs_controller.rb +1 -1
- data/app/controllers/active_storage/disk_controller.rb +5 -2
- data/app/controllers/active_storage/representations_controller.rb +1 -1
- data/app/controllers/concerns/active_storage/set_current.rb +15 -0
- data/app/javascript/activestorage/blob_record.js +6 -1
- data/app/jobs/active_storage/analyze_job.rb +5 -0
- data/app/jobs/active_storage/base_job.rb +0 -1
- data/app/jobs/active_storage/purge_job.rb +3 -0
- data/app/models/active_storage/attachment.rb +20 -9
- data/app/models/active_storage/blob.rb +89 -34
- data/app/models/active_storage/blob/representable.rb +5 -5
- data/app/models/active_storage/filename.rb +0 -6
- data/app/models/active_storage/preview.rb +3 -3
- data/app/models/active_storage/variant.rb +51 -52
- data/app/models/active_storage/variation.rb +24 -33
- data/config/routes.rb +13 -12
- data/db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb +9 -0
- data/lib/active_storage.rb +26 -6
- data/lib/active_storage/analyzer.rb +9 -4
- data/lib/active_storage/analyzer/image_analyzer.rb +11 -4
- data/lib/active_storage/analyzer/video_analyzer.rb +3 -5
- data/lib/active_storage/attached.rb +7 -22
- data/lib/active_storage/attached/changes.rb +16 -0
- data/lib/active_storage/attached/changes/create_many.rb +46 -0
- data/lib/active_storage/attached/changes/create_one.rb +69 -0
- data/lib/active_storage/attached/changes/create_one_of_many.rb +10 -0
- data/lib/active_storage/attached/changes/delete_many.rb +27 -0
- data/lib/active_storage/attached/changes/delete_one.rb +19 -0
- data/lib/active_storage/attached/many.rb +16 -10
- data/lib/active_storage/attached/model.rb +147 -0
- data/lib/active_storage/attached/one.rb +16 -19
- data/lib/active_storage/downloader.rb +43 -0
- data/lib/active_storage/downloading.rb +8 -0
- data/lib/active_storage/engine.rb +43 -6
- data/lib/active_storage/errors.rb +22 -3
- data/lib/active_storage/gem_version.rb +3 -3
- data/lib/active_storage/previewer.rb +21 -11
- data/lib/active_storage/previewer/poppler_pdf_previewer.rb +2 -2
- data/lib/active_storage/previewer/video_previewer.rb +2 -3
- data/lib/active_storage/reflection.rb +64 -0
- data/lib/active_storage/service.rb +9 -6
- data/lib/active_storage/service/azure_storage_service.rb +30 -14
- data/lib/active_storage/service/configurator.rb +3 -1
- data/lib/active_storage/service/disk_service.rb +24 -12
- data/lib/active_storage/service/gcs_service.rb +49 -47
- data/lib/active_storage/service/mirror_service.rb +1 -1
- data/lib/active_storage/service/s3_service.rb +10 -6
- data/lib/active_storage/transformers/image_processing_transformer.rb +39 -0
- data/lib/active_storage/transformers/mini_magick_transformer.rb +38 -0
- data/lib/active_storage/transformers/transformer.rb +42 -0
- data/lib/tasks/activestorage.rake +7 -0
- metadata +42 -13
- data/app/models/active_storage/filename/parameters.rb +0 -36
- data/lib/active_storage/attached/macros.rb +0 -110
@@ -1,11 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
gem "google-cloud-storage", "~> 1.
|
4
|
-
|
3
|
+
gem "google-cloud-storage", "~> 1.11"
|
5
4
|
require "google/cloud/storage"
|
6
|
-
require "net/http"
|
7
|
-
|
8
|
-
require "active_support/core_ext/object/to_query"
|
9
5
|
|
10
6
|
module ActiveStorage
|
11
7
|
# Wraps the Google Cloud Storage as an Active Storage service. See ActiveStorage::Service for the generic API
|
@@ -17,15 +13,27 @@ module ActiveStorage
|
|
17
13
|
|
18
14
|
def upload(key, io, checksum: nil, content_type: nil, disposition: nil, filename: nil)
|
19
15
|
instrument :upload, key: key, checksum: checksum do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
16
|
+
# GCS's signed URLs don't include params such as response-content-type response-content_disposition
|
17
|
+
# in the signature, which means an attacker can modify them and bypass our effort to force these to
|
18
|
+
# binary and attachment when the file's content type requires it. The only way to force them is to
|
19
|
+
# store them as object's metadata.
|
20
|
+
content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
|
21
|
+
bucket.create_file(io, key, md5: checksum, content_type: content_type, content_disposition: content_disposition)
|
22
|
+
rescue Google::Cloud::InvalidArgumentError
|
23
|
+
raise ActiveStorage::IntegrityError
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def download(key, &block)
|
28
|
+
if block_given?
|
29
|
+
instrument :streaming_download, key: key do
|
30
|
+
stream(key, &block)
|
31
|
+
end
|
32
|
+
else
|
33
|
+
instrument :download, key: key do
|
34
|
+
file_for(key).download.string
|
35
|
+
rescue Google::Cloud::NotFoundError
|
36
|
+
raise ActiveStorage::FileNotFoundError
|
29
37
|
end
|
30
38
|
end
|
31
39
|
end
|
@@ -39,49 +47,28 @@ module ActiveStorage
|
|
39
47
|
end
|
40
48
|
end
|
41
49
|
|
42
|
-
# FIXME: Download in chunks when given a block.
|
43
|
-
def download(key)
|
44
|
-
instrument :download, key: key do
|
45
|
-
io = file_for(key).download
|
46
|
-
io.rewind
|
47
|
-
|
48
|
-
if block_given?
|
49
|
-
yield io.string
|
50
|
-
else
|
51
|
-
io.string
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
50
|
def download_chunk(key, range)
|
57
51
|
instrument :download_chunk, key: key, range: range do
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") do |client|
|
62
|
-
client.get(uri, "Range" => "bytes=#{range.begin}-#{range.exclude_end? ? range.end - 1 : range.end}").body
|
63
|
-
end
|
52
|
+
file_for(key).download(range: range).string
|
53
|
+
rescue Google::Cloud::NotFoundError
|
54
|
+
raise ActiveStorage::FileNotFoundError
|
64
55
|
end
|
65
56
|
end
|
66
57
|
|
67
58
|
def delete(key)
|
68
59
|
instrument :delete, key: key do
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
# Ignore files already deleted
|
73
|
-
end
|
60
|
+
file_for(key).delete
|
61
|
+
rescue Google::Cloud::NotFoundError
|
62
|
+
# Ignore files already deleted
|
74
63
|
end
|
75
64
|
end
|
76
65
|
|
77
66
|
def delete_prefixed(prefix)
|
78
67
|
instrument :delete_prefixed, prefix: prefix do
|
79
68
|
bucket.files(prefix: prefix).all do |file|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
# Ignore concurrently-deleted files
|
84
|
-
end
|
69
|
+
file.delete
|
70
|
+
rescue Google::Cloud::NotFoundError
|
71
|
+
# Ignore concurrently-deleted files
|
85
72
|
end
|
86
73
|
end
|
87
74
|
end
|
@@ -124,12 +111,27 @@ module ActiveStorage
|
|
124
111
|
private
|
125
112
|
attr_reader :config
|
126
113
|
|
127
|
-
def file_for(key)
|
128
|
-
bucket.file(key, skip_lookup:
|
114
|
+
def file_for(key, skip_lookup: true)
|
115
|
+
bucket.file(key, skip_lookup: skip_lookup)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Reads the file for the given key in chunks, yielding each to the block.
|
119
|
+
def stream(key)
|
120
|
+
file = file_for(key, skip_lookup: false)
|
121
|
+
|
122
|
+
chunk_size = 5.megabytes
|
123
|
+
offset = 0
|
124
|
+
|
125
|
+
raise ActiveStorage::FileNotFoundError unless file.present?
|
126
|
+
|
127
|
+
while offset < file.size
|
128
|
+
yield file.download(range: offset..(offset + chunk_size - 1)).string
|
129
|
+
offset += chunk_size
|
130
|
+
end
|
129
131
|
end
|
130
132
|
|
131
133
|
def bucket
|
132
|
-
@bucket ||= client.bucket(config.fetch(:bucket))
|
134
|
+
@bucket ||= client.bucket(config.fetch(:bucket), skip_lookup: true)
|
133
135
|
end
|
134
136
|
|
135
137
|
def client
|
@@ -9,7 +9,7 @@ module ActiveStorage
|
|
9
9
|
class Service::MirrorService < Service
|
10
10
|
attr_reader :primary, :mirrors
|
11
11
|
|
12
|
-
delegate :download, :download_chunk, :exist?, :url, to: :primary
|
12
|
+
delegate :download, :download_chunk, :exist?, :url, :path_for, to: :primary
|
13
13
|
|
14
14
|
# Stitch together from named services.
|
15
15
|
def self.build(primary:, mirrors:, configurator:, **options) #:nodoc:
|
@@ -16,13 +16,11 @@ module ActiveStorage
|
|
16
16
|
@upload_options = upload
|
17
17
|
end
|
18
18
|
|
19
|
-
def upload(key, io, checksum: nil, **)
|
19
|
+
def upload(key, io, checksum: nil, content_type: nil, **)
|
20
20
|
instrument :upload, key: key, checksum: checksum do
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
raise ActiveStorage::IntegrityError
|
25
|
-
end
|
21
|
+
object_for(key).put(upload_options.merge(body: io, content_md5: checksum, content_type: content_type))
|
22
|
+
rescue Aws::S3::Errors::BadDigest
|
23
|
+
raise ActiveStorage::IntegrityError
|
26
24
|
end
|
27
25
|
end
|
28
26
|
|
@@ -34,6 +32,8 @@ module ActiveStorage
|
|
34
32
|
else
|
35
33
|
instrument :download, key: key do
|
36
34
|
object_for(key).get.body.string.force_encoding(Encoding::BINARY)
|
35
|
+
rescue Aws::S3::Errors::NoSuchKey
|
36
|
+
raise ActiveStorage::FileNotFoundError
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -41,6 +41,8 @@ module ActiveStorage
|
|
41
41
|
def download_chunk(key, range)
|
42
42
|
instrument :download_chunk, key: key, range: range do
|
43
43
|
object_for(key).get(range: "bytes=#{range.begin}-#{range.exclude_end? ? range.end - 1 : range.end}").body.read.force_encoding(Encoding::BINARY)
|
44
|
+
rescue Aws::S3::Errors::NoSuchKey
|
45
|
+
raise ActiveStorage::FileNotFoundError
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
@@ -103,6 +105,8 @@ module ActiveStorage
|
|
103
105
|
chunk_size = 5.megabytes
|
104
106
|
offset = 0
|
105
107
|
|
108
|
+
raise ActiveStorage::FileNotFoundError unless object.exists?
|
109
|
+
|
106
110
|
while offset < object.content_length
|
107
111
|
yield object.get(range: "bytes=#{offset}-#{offset + chunk_size - 1}").body.read.force_encoding(Encoding::BINARY)
|
108
112
|
offset += chunk_size
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "image_processing"
|
4
|
+
|
5
|
+
module ActiveStorage
|
6
|
+
module Transformers
|
7
|
+
class ImageProcessingTransformer < Transformer
|
8
|
+
private
|
9
|
+
def process(file, format:)
|
10
|
+
processor.
|
11
|
+
source(file).
|
12
|
+
loader(page: 0).
|
13
|
+
convert(format).
|
14
|
+
apply(operations).
|
15
|
+
call
|
16
|
+
end
|
17
|
+
|
18
|
+
def processor
|
19
|
+
ImageProcessing.const_get(ActiveStorage.variant_processor.to_s.camelize)
|
20
|
+
end
|
21
|
+
|
22
|
+
def operations
|
23
|
+
transformations.each_with_object([]) do |(name, argument), list|
|
24
|
+
if name.to_s == "combine_options"
|
25
|
+
ActiveSupport::Deprecation.warn <<~WARNING.squish
|
26
|
+
Active Storage's ImageProcessing transformer doesn't support :combine_options,
|
27
|
+
as it always generates a single ImageMagick command. Passing :combine_options will
|
28
|
+
not be supported in Rails 6.1.
|
29
|
+
WARNING
|
30
|
+
|
31
|
+
list.concat argument.keep_if { |key, value| value.present? }.to_a
|
32
|
+
elsif argument.present?
|
33
|
+
list << [ name, argument ]
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "mini_magick"
|
4
|
+
|
5
|
+
module ActiveStorage
|
6
|
+
module Transformers
|
7
|
+
class MiniMagickTransformer < Transformer
|
8
|
+
private
|
9
|
+
def process(file, format:)
|
10
|
+
image = MiniMagick::Image.new(file.path, file)
|
11
|
+
|
12
|
+
transformations.each do |name, argument_or_subtransformations|
|
13
|
+
image.mogrify do |command|
|
14
|
+
if name.to_s == "combine_options"
|
15
|
+
argument_or_subtransformations.each do |subtransformation_name, subtransformation_argument|
|
16
|
+
pass_transform_argument(command, subtransformation_name, subtransformation_argument)
|
17
|
+
end
|
18
|
+
else
|
19
|
+
pass_transform_argument(command, name, argument_or_subtransformations)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
image.format(format) if format
|
25
|
+
|
26
|
+
image.tempfile.tap(&:open)
|
27
|
+
end
|
28
|
+
|
29
|
+
def pass_transform_argument(command, method, argument)
|
30
|
+
if argument == true
|
31
|
+
command.public_send(method)
|
32
|
+
elsif argument.present?
|
33
|
+
command.public_send(method, argument)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveStorage
|
4
|
+
module Transformers
|
5
|
+
# A Transformer applies a set of transformations to an image.
|
6
|
+
#
|
7
|
+
# The following concrete subclasses are included in Active Storage:
|
8
|
+
#
|
9
|
+
# * ActiveStorage::Transformers::ImageProcessingTransformer:
|
10
|
+
# backed by ImageProcessing, a common interface for MiniMagick and ruby-vips
|
11
|
+
#
|
12
|
+
# * ActiveStorage::Transformers::MiniMagickTransformer:
|
13
|
+
# backed by MiniMagick, a wrapper around the ImageMagick CLI
|
14
|
+
class Transformer
|
15
|
+
attr_reader :transformations
|
16
|
+
|
17
|
+
def initialize(transformations)
|
18
|
+
@transformations = transformations
|
19
|
+
end
|
20
|
+
|
21
|
+
# Applies the transformations to the source image in +file+, producing a target image in the
|
22
|
+
# specified +format+. Yields an open Tempfile containing the target image. Closes and unlinks
|
23
|
+
# the output tempfile after yielding to the given block. Returns the result of the block.
|
24
|
+
def transform(file, format:)
|
25
|
+
output = process(file, format: format)
|
26
|
+
|
27
|
+
begin
|
28
|
+
yield output
|
29
|
+
ensure
|
30
|
+
output.close!
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
# Returns an open Tempfile containing a transformed image in the given +format+.
|
36
|
+
# All subclasses implement this method.
|
37
|
+
def process(file, format:) #:doc:
|
38
|
+
raise NotImplementedError
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -12,4 +12,11 @@ namespace :active_storage do
|
|
12
12
|
Rake::Task["app:active_storage:install:migrations"].invoke
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
# desc "Copy over the migrations needed to the application upgrading"
|
17
|
+
task update: :environment do
|
18
|
+
ENV["MIGRATIONS_PATH"] = "db/update_migrate"
|
19
|
+
|
20
|
+
Rake::Task["active_storage:install"].invoke
|
21
|
+
end
|
15
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,28 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.0.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activejob
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 6.0.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 6.0.2
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: activerecord
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - '='
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
47
|
+
version: 6.0.2
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - '='
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
54
|
+
version: 6.0.2
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: marcel
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,6 +82,7 @@ files:
|
|
68
82
|
- app/controllers/active_storage/disk_controller.rb
|
69
83
|
- app/controllers/active_storage/representations_controller.rb
|
70
84
|
- app/controllers/concerns/active_storage/set_blob.rb
|
85
|
+
- app/controllers/concerns/active_storage/set_current.rb
|
71
86
|
- app/javascript/activestorage/blob_record.js
|
72
87
|
- app/javascript/activestorage/blob_upload.js
|
73
88
|
- app/javascript/activestorage/direct_upload.js
|
@@ -87,21 +102,28 @@ files:
|
|
87
102
|
- app/models/active_storage/blob/representable.rb
|
88
103
|
- app/models/active_storage/current.rb
|
89
104
|
- app/models/active_storage/filename.rb
|
90
|
-
- app/models/active_storage/filename/parameters.rb
|
91
105
|
- app/models/active_storage/preview.rb
|
92
106
|
- app/models/active_storage/variant.rb
|
93
107
|
- app/models/active_storage/variation.rb
|
94
108
|
- config/routes.rb
|
95
109
|
- db/migrate/20170806125915_create_active_storage_tables.rb
|
110
|
+
- db/update_migrate/20180723000244_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.rb
|
96
111
|
- lib/active_storage.rb
|
97
112
|
- lib/active_storage/analyzer.rb
|
98
113
|
- lib/active_storage/analyzer/image_analyzer.rb
|
99
114
|
- lib/active_storage/analyzer/null_analyzer.rb
|
100
115
|
- lib/active_storage/analyzer/video_analyzer.rb
|
101
116
|
- lib/active_storage/attached.rb
|
102
|
-
- lib/active_storage/attached/
|
117
|
+
- lib/active_storage/attached/changes.rb
|
118
|
+
- lib/active_storage/attached/changes/create_many.rb
|
119
|
+
- lib/active_storage/attached/changes/create_one.rb
|
120
|
+
- lib/active_storage/attached/changes/create_one_of_many.rb
|
121
|
+
- lib/active_storage/attached/changes/delete_many.rb
|
122
|
+
- lib/active_storage/attached/changes/delete_one.rb
|
103
123
|
- lib/active_storage/attached/many.rb
|
124
|
+
- lib/active_storage/attached/model.rb
|
104
125
|
- lib/active_storage/attached/one.rb
|
126
|
+
- lib/active_storage/downloader.rb
|
105
127
|
- lib/active_storage/downloading.rb
|
106
128
|
- lib/active_storage/engine.rb
|
107
129
|
- lib/active_storage/errors.rb
|
@@ -111,6 +133,7 @@ files:
|
|
111
133
|
- lib/active_storage/previewer/mupdf_previewer.rb
|
112
134
|
- lib/active_storage/previewer/poppler_pdf_previewer.rb
|
113
135
|
- lib/active_storage/previewer/video_previewer.rb
|
136
|
+
- lib/active_storage/reflection.rb
|
114
137
|
- lib/active_storage/service.rb
|
115
138
|
- lib/active_storage/service/azure_storage_service.rb
|
116
139
|
- lib/active_storage/service/configurator.rb
|
@@ -118,14 +141,20 @@ files:
|
|
118
141
|
- lib/active_storage/service/gcs_service.rb
|
119
142
|
- lib/active_storage/service/mirror_service.rb
|
120
143
|
- lib/active_storage/service/s3_service.rb
|
144
|
+
- lib/active_storage/transformers/image_processing_transformer.rb
|
145
|
+
- lib/active_storage/transformers/mini_magick_transformer.rb
|
146
|
+
- lib/active_storage/transformers/transformer.rb
|
121
147
|
- lib/active_storage/version.rb
|
122
148
|
- lib/tasks/activestorage.rake
|
123
|
-
homepage:
|
149
|
+
homepage: https://rubyonrails.org
|
124
150
|
licenses:
|
125
151
|
- MIT
|
126
152
|
metadata:
|
127
|
-
|
128
|
-
changelog_uri: https://github.com/rails/rails/blob/
|
153
|
+
bug_tracker_uri: https://github.com/rails/rails/issues
|
154
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.2/activestorage/CHANGELOG.md
|
155
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.2/
|
156
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
157
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.2/activestorage
|
129
158
|
post_install_message:
|
130
159
|
rdoc_options: []
|
131
160
|
require_paths:
|
@@ -134,14 +163,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
163
|
requirements:
|
135
164
|
- - ">="
|
136
165
|
- !ruby/object:Gem::Version
|
137
|
-
version: 2.
|
166
|
+
version: 2.5.0
|
138
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
168
|
requirements:
|
140
169
|
- - ">="
|
141
170
|
- !ruby/object:Gem::Version
|
142
171
|
version: '0'
|
143
172
|
requirements: []
|
144
|
-
rubygems_version: 3.0.
|
173
|
+
rubygems_version: 3.0.3
|
145
174
|
signing_key:
|
146
175
|
specification_version: 4
|
147
176
|
summary: Local and cloud file storage framework.
|