Hello community,
here is the log from the commit of package rubygem-activestorage-6.0 for
openSUSE:Factory checked in at 2020-05-11 13:38:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activestorage-6.0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activestorage-6.0.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activestorage-6.0"
Mon May 11 13:38:45 2020 rev:6 rq:802322 version:6.0.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activestorage-6.0/rubygem-activestorage-6.0.changes
2020-04-27 23:40:45.167801358 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activestorage-6.0.new.2738/rubygem-activestorage-6.0.changes
2020-05-11 13:38:47.328794969 +0200
@@ -1,0 +2,15 @@
+Thu May 7 20:03:54 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 6.0.3
+ see installed CHANGELOG.md
+
+ ## Rails 6.0.3 (May 06, 2020) ##
+
+ * No changes.
+
+
+ ## Rails 6.0.2.2 (March 19, 2020) ##
+
+ * No changes.
+
+-------------------------------------------------------------------
Old:
----
activestorage-6.0.2.2.gem
New:
----
activestorage-6.0.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activestorage-6.0.spec ++++++
--- /var/tmp/diff_new_pack.JvaQVQ/_old 2020-05-11 13:38:48.144796680 +0200
+++ /var/tmp/diff_new_pack.JvaQVQ/_new 2020-05-11 13:38:48.148796688 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-activestorage-6.0
-Version: 6.0.2.2
+Version: 6.0.3
Release: 0
%define mod_name activestorage
%define mod_full_name %{mod_name}-%{version}
++++++ activestorage-6.0.2.2.gem -> activestorage-6.0.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2020-03-19 17:42:44.000000000 +0100
+++ new/CHANGELOG.md 2020-05-06 20:00:05.000000000 +0200
@@ -1,3 +1,13 @@
+## Rails 6.0.3 (May 06, 2020) ##
+
+* No changes.
+
+
+## Rails 6.0.2.2 (March 19, 2020) ##
+
+* No changes.
+
+
## Rails 6.0.2.1 (December 18, 2019) ##
* No changes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2020-03-19 17:42:44.000000000 +0100
+++ new/README.md 2020-05-06 20:00:05.000000000 +0200
@@ -159,4 +159,4 @@
Feature requests should be discussed on the rails-core mailing list here:
-* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core
+* https://discuss.rubyonrails.org/c/rubyonrails-core
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/assets/javascripts/activestorage.js
new/app/assets/javascripts/activestorage.js
--- old/app/assets/javascripts/activestorage.js 2020-03-19 17:42:44.000000000
+0100
+++ new/app/assets/javascripts/activestorage.js 2020-05-06 20:00:05.000000000
+0200
@@ -550,7 +550,7 @@
this.file = file;
this.attributes = {
filename: file.name,
- content_type: file.type,
+ content_type: file.type || "application/octet-stream",
byte_size: file.size,
checksum: checksum
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/app/controllers/active_storage/direct_uploads_controller.rb
new/app/controllers/active_storage/direct_uploads_controller.rb
--- old/app/controllers/active_storage/direct_uploads_controller.rb
2020-03-19 17:42:44.000000000 +0100
+++ new/app/controllers/active_storage/direct_uploads_controller.rb
2020-05-06 20:00:05.000000000 +0200
@@ -5,7 +5,7 @@
# the blob that was created up front.
class ActiveStorage::DirectUploadsController < ActiveStorage::BaseController
def create
- blob = ActiveStorage::Blob.create_before_direct_upload!(blob_args)
+ blob = ActiveStorage::Blob.create_before_direct_upload!(**blob_args)
render json: direct_upload_json(blob)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/javascript/activestorage/blob_record.js
new/app/javascript/activestorage/blob_record.js
--- old/app/javascript/activestorage/blob_record.js 2020-03-19
17:42:44.000000000 +0100
+++ new/app/javascript/activestorage/blob_record.js 2020-05-06
20:00:05.000000000 +0200
@@ -6,7 +6,7 @@
this.attributes = {
filename: file.name,
- content_type: file.type,
+ content_type: file.type || "application/octet-stream",
byte_size: file.size,
checksum: checksum
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/models/active_storage/blob/identifiable.rb
new/app/models/active_storage/blob/identifiable.rb
--- old/app/models/active_storage/blob/identifiable.rb 2020-03-19
17:42:44.000000000 +0100
+++ new/app/models/active_storage/blob/identifiable.rb 2020-05-06
20:00:05.000000000 +0200
@@ -26,6 +26,6 @@
end
def update_service_metadata
- service.update_metadata key, service_metadata if service_metadata.any?
+ service.update_metadata key, **service_metadata if service_metadata.any?
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/app/models/active_storage/preview.rb
new/app/models/active_storage/preview.rb
--- old/app/models/active_storage/preview.rb 2020-03-19 17:42:44.000000000
+0100
+++ new/app/models/active_storage/preview.rb 2020-05-06 20:00:05.000000000
+0200
@@ -59,7 +59,7 @@
# a stable URL that redirects to the short-lived URL returned by this method.
def service_url(**options)
if processed?
- variant.service_url(options)
+ variant.service_url(**options)
else
raise UnprocessedError
end
@@ -71,7 +71,11 @@
end
def process
- previewer.preview { |attachable| image.attach(attachable) }
+ previewer.preview do |attachable|
+ ActiveRecord::Base.connected_to(role: ActiveRecord::Base.writing_role)
do
+ image.attach(attachable)
+ end
+ end
end
def variant
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/attached/changes/create_one.rb
new/lib/active_storage/attached/changes/create_one.rb
--- old/lib/active_storage/attached/changes/create_one.rb 2020-03-19
17:42:44.000000000 +0100
+++ new/lib/active_storage/attached/changes/create_one.rb 2020-05-06
20:00:05.000000000 +0200
@@ -58,7 +58,7 @@
filename: attachable.original_filename,
content_type: attachable.content_type
when Hash
- ActiveStorage::Blob.build_after_unfurling(attachable)
+ ActiveStorage::Blob.build_after_unfurling(**attachable)
when String
ActiveStorage::Blob.find_signed(attachable)
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/attached/model.rb
new/lib/active_storage/attached/model.rb
--- old/lib/active_storage/attached/model.rb 2020-03-19 17:42:44.000000000
+0100
+++ new/lib/active_storage/attached/model.rb 2020-05-06 20:00:05.000000000
+0200
@@ -140,6 +140,10 @@
@attachment_changes ||= {}
end
+ def changed_for_autosave? #:nodoc:
+ super || attachment_changes.any?
+ end
+
def reload(*) #:nodoc:
super.tap { @attachment_changes = nil }
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/gem_version.rb
new/lib/active_storage/gem_version.rb
--- old/lib/active_storage/gem_version.rb 2020-03-19 17:42:44.000000000
+0100
+++ new/lib/active_storage/gem_version.rb 2020-05-06 20:00:05.000000000
+0200
@@ -9,8 +9,8 @@
module VERSION
MAJOR = 6
MINOR = 0
- TINY = 2
- PRE = "2"
+ TINY = 3
+ PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/previewer/video_previewer.rb
new/lib/active_storage/previewer/video_previewer.rb
--- old/lib/active_storage/previewer/video_previewer.rb 2020-03-19
17:42:44.000000000 +0100
+++ new/lib/active_storage/previewer/video_previewer.rb 2020-05-06
20:00:05.000000000 +0200
@@ -2,8 +2,20 @@
module ActiveStorage
class Previewer::VideoPreviewer < Previewer
- def self.accept?(blob)
- blob.video?
+ class << self
+ def accept?(blob)
+ blob.video? && ffmpeg_exists?
+ end
+
+ def ffmpeg_exists?
+ return @ffmpeg_exists if defined?(@ffmpeg_exists)
+
+ @ffmpeg_exists = system(ffmpeg_path, "-version", out: File::NULL, err:
File::NULL)
+ end
+
+ def ffmpeg_path
+ ActiveStorage.paths[:ffmpeg] || "ffmpeg"
+ end
end
def preview
@@ -16,11 +28,7 @@
private
def draw_relevant_frame_from(file, &block)
- draw ffmpeg_path, "-i", file.path, "-y", "-vframes", "1", "-f",
"image2", "-", &block
- end
-
- def ffmpeg_path
- ActiveStorage.paths[:ffmpeg] || "ffmpeg"
+ draw self.class.ffmpeg_path, "-i", file.path, "-y", "-vframes", "1",
"-f", "image2", "-", &block
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service/disk_service.rb
new/lib/active_storage/service/disk_service.rb
--- old/lib/active_storage/service/disk_service.rb 2020-03-19
17:42:44.000000000 +0100
+++ new/lib/active_storage/service/disk_service.rb 2020-05-06
20:00:05.000000000 +0200
@@ -80,8 +80,8 @@
disposition: content_disposition,
content_type: content_type
},
- { expires_in: expires_in,
- purpose: :blob_key }
+ expires_in: expires_in,
+ purpose: :blob_key
)
current_uri = URI.parse(current_host)
@@ -109,8 +109,8 @@
content_length: content_length,
checksum: checksum
},
- { expires_in: expires_in,
- purpose: :blob_token }
+ expires_in: expires_in,
+ purpose: :blob_token
)
generated_url =
url_helpers.update_rails_disk_service_url(verified_token_with_expiration, host:
current_host)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service/gcs_service.rb
new/lib/active_storage/service/gcs_service.rb
--- old/lib/active_storage/service/gcs_service.rb 2020-03-19
17:42:44.000000000 +0100
+++ new/lib/active_storage/service/gcs_service.rb 2020-05-06
20:00:05.000000000 +0200
@@ -135,7 +135,7 @@
end
def client
- @client ||= Google::Cloud::Storage.new(config.except(:bucket))
+ @client ||= Google::Cloud::Storage.new(**config.except(:bucket))
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_storage/service.rb
new/lib/active_storage/service.rb
--- old/lib/active_storage/service.rb 2020-03-19 17:42:44.000000000 +0100
+++ new/lib/active_storage/service.rb 2020-05-06 20:00:05.000000000 +0200
@@ -82,8 +82,8 @@
raise NotImplementedError
end
- def open(*args, &block)
- ActiveStorage::Downloader.new(self).open(*args, &block)
+ def open(*args, **options, &block)
+ ActiveStorage::Downloader.new(self).open(*args, **options, &block)
end
# Delete the file at the +key+.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-03-19 17:42:44.000000000 +0100
+++ new/metadata 2020-05-06 20:00:05.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activestorage
version: !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2020-03-19 00:00:00.000000000 Z
+date: 2020-05-06 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: actionpack
@@ -16,42 +16,42 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
- !ruby/object:Gem::Dependency
name: activejob
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
- !ruby/object:Gem::Dependency
name: activerecord
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.2.2
+ version: 6.0.3
- !ruby/object:Gem::Dependency
name: marcel
requirement: !ruby/object:Gem::Requirement
@@ -151,10 +151,10 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rails/rails/issues
- changelog_uri:
https://github.com/rails/rails/blob/v6.0.2.2/activestorage/CHANGELOG.md
- documentation_uri: https://api.rubyonrails.org/v6.0.2.2/
- mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
- source_code_uri: https://github.com/rails/rails/tree/v6.0.2.2/activestorage
+ changelog_uri:
https://github.com/rails/rails/blob/v6.0.3/activestorage/CHANGELOG.md
+ documentation_uri: https://api.rubyonrails.org/v6.0.3/
+ mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.3/activestorage
post_install_message:
rdoc_options: []
require_paths:
@@ -170,7 +170,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.1.2
signing_key:
specification_version: 4
summary: Local and cloud file storage framework.
++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.JvaQVQ/_old 2020-05-11 13:38:48.260796923 +0200
+++ /var/tmp/diff_new_pack.JvaQVQ/_new 2020-05-11 13:38:48.260796923 +0200
@@ -9,7 +9,7 @@
# ## used by gem2rpm
# :license: MIT or Ruby
# ## used by gem2rpm and gem_packages
-# :version_suffix: -x_y
+:version_suffix: '-6.0'
# ## used by gem2rpm and gem_packages
# :disable_docs: true
# ## used by gem2rpm