Hello community,
here is the log from the commit of package rubygem-sprockets-rails for
openSUSE:Factory checked in at 2020-09-14 12:31:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sprockets-rails (Old)
and /work/SRC/openSUSE:Factory/.rubygem-sprockets-rails.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sprockets-rails"
Mon Sep 14 12:31:14 2020 rev:19 rq:833986 version:3.2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-sprockets-rails/rubygem-sprockets-rails.changes
2017-09-12 19:55:07.649333195 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-sprockets-rails.new.4249/rubygem-sprockets-rails.changes
2020-09-14 12:32:20.161251991 +0200
@@ -1,0 +2,10 @@
+Sat Sep 12 12:34:28 UTC 2020 - Manuel Schnitzer <[email protected]>
+
+- updated to version 3.2.2
+
+ * Fix extending ActionView::Base instances with Sprockets::Rails::Helper on
Rails 6.1
+ * Fix deprecation warning on Ruby 2.7 [#454]
+ * action_view/base is no longer required when rake tasks are loaded [#455]
+ * Asset not precompiled error exception renamed to AssetNotPrecompiledError
[#414]
+
+-------------------------------------------------------------------
Old:
----
sprockets-rails-3.2.1.gem
New:
----
sprockets-rails-3.2.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-sprockets-rails.spec ++++++
--- /var/tmp/diff_new_pack.HH6qVZ/_old 2020-09-14 12:32:23.413254065 +0200
+++ /var/tmp/diff_new_pack.HH6qVZ/_new 2020-09-14 12:32:23.417254068 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-sprockets-rails
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -24,7 +24,7 @@
#
Name: rubygem-sprockets-rails
-Version: 3.2.1
+Version: 3.2.2
Release: 0
%define mod_name sprockets-rails
%define mod_full_name %{mod_name}-%{version}
@@ -32,7 +32,7 @@
BuildRequires: %{ruby >= 1.9.3}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
-Url: https://github.com/rails/sprockets-rails
+URL: https://github.com/rails/sprockets-rails
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Sprockets Rails integration
++++++ sprockets-rails-3.2.1.gem -> sprockets-rails-3.2.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2017-08-31 22:34:54.000000000 +0200
+++ new/README.md 2020-09-12 09:37:40.000000000 +0200
@@ -138,7 +138,7 @@
* [coffee-rails](https://github.com/rails/coffee-rails)
* [sass-rails](https://github.com/rails/sass-rails)
-**NOTE** That these plugins are optional. The core coffee-script, sass, less,
uglify, (any many more) features are built into Sprockets itself. Many of these
plugins only provide generators and extra helpers. You can probably get by
without them.
+**NOTE** That these plugins are optional. The core coffee-script, sass, less,
uglify, (and many more) features are built into Sprockets itself. Many of these
plugins only provide generators and extra helpers. You can probably get by
without them.
## Changes from Rails 3.x
@@ -150,6 +150,15 @@
* `config.assets.manifest` (if used) must now include the manifest filename,
e.g. `Rails.root.join('config/manifest.json')`. It cannot be a directory.
* Two cleanup tasks: `rake assets:clean` is now a safe cleanup that only
removes older assets that are no longer used, while `rake assets:clobber` nukes
the entire `public/assets` directory. The clean task allows for rolling deploys
that may still be linking to an old asset while the new assets are being built.
+### But what if I want sprockets to generate non-digest assets?
+
+You have several options:
+
+* Use the [non-digest-assets gem](https://github.com/mvz/non-digest-assets).
+* Use the [sprockets-redirect
gem](https://github.com/sikachu/sprockets-redirect).
+* Use the [smart_assets gem](https://github.com/zarqman/smart_assets).
+* Create [a rake
task](https://github.com/rails/sprockets-rails/issues/49#issuecomment-20535134)
to pre-generate a non-digest version in `public/`.
+
## Experimental
### [SRI](http://www.w3.org/TR/SRI/) support
@@ -189,4 +198,3 @@
* [](http://travis-ci.org/rails/sprockets-rails)
* [](http://badge.fury.io/rb/sprockets-rails)
-*
[](https://gemnasium.com/rails/sprockets-rails)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/sprockets/rails/helper.rb
new/lib/sprockets/rails/helper.rb
--- old/lib/sprockets/rails/helper.rb 2017-08-31 22:34:54.000000000 +0200
+++ new/lib/sprockets/rails/helper.rb 2020-09-12 09:37:40.000000000 +0200
@@ -7,15 +7,16 @@
module Rails
module Helper
class AssetNotFound < StandardError; end
+ class AssetNotPrecompiled < StandardError; end
- class AssetNotPrecompiled < StandardError
+ class AssetNotPrecompiledError < AssetNotPrecompiled
include Sprockets::Rails::Utils
def initialize(source)
msg =
if using_sprockets4?
"Asset `#{ source }` was not declared to be precompiled in
production.\n" +
"Declare links to your assets in
`app/assets/config/manifest.js`.\n\n" +
- " //= link #{ source }\n" +
+ " //= link #{ source }\n\n" +
"and restart your server"
else
"Asset was not declared to be precompiled in production.\n" +
@@ -57,7 +58,7 @@
end
def self.extended(obj)
- obj.class_eval do
+ obj.singleton_class.class_eval do
attr_accessor(*VIEW_ACCESSORS)
remove_method :assets_environment
@@ -79,7 +80,7 @@
if asset_path = resolve_asset_path(path, debug)
File.join(assets_prefix || "/", legacy_debug_path(asset_path, debug))
else
- message = "The asset #{ path.inspect } is not present in the asset
pipeline."
+ message = "The asset #{ path.inspect } is not present in the asset
pipeline.\n"
raise AssetNotFound, message unless unknown_asset_fallback
if respond_to?(:public_compute_asset_path)
@@ -351,8 +352,16 @@
end
private
- def find_asset(path, options = {})
- @env[path, options]
+ if RUBY_VERSION >= "2.7"
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def find_asset(path, options = {})
+ @env[path, **options]
+ end
+ RUBY
+ else
+ def find_asset(path, options = {})
+ @env[path, options]
+ end
end
def precompiled?(path)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/sprockets/rails/task.rb
new/lib/sprockets/rails/task.rb
--- old/lib/sprockets/rails/task.rb 2017-08-31 22:34:54.000000000 +0200
+++ new/lib/sprockets/rails/task.rb 2020-09-12 09:37:40.000000000 +0200
@@ -2,7 +2,6 @@
require 'rake/sprocketstask'
require 'sprockets'
require 'action_view'
-require 'action_view/base'
module Sprockets
module Rails
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/sprockets/rails/version.rb
new/lib/sprockets/rails/version.rb
--- old/lib/sprockets/rails/version.rb 2017-08-31 22:34:54.000000000 +0200
+++ new/lib/sprockets/rails/version.rb 2020-09-12 09:37:40.000000000 +0200
@@ -1,5 +1,5 @@
module Sprockets
module Rails
- VERSION = "3.2.1"
+ VERSION = "3.2.2"
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/sprockets/railtie.rb new/lib/sprockets/railtie.rb
--- old/lib/sprockets/railtie.rb 2017-08-31 22:34:54.000000000 +0200
+++ new/lib/sprockets/railtie.rb 2020-09-12 09:37:40.000000000 +0200
@@ -76,7 +76,8 @@
" //= link_tree ../images\n" +
" //= link_directory ../javascripts .js\n" +
" //= link_directory ../stylesheets .css\n" +
- "and restart your server"
+ "and restart your server\n\n" +
+ "For more information see:
https://github.com/rails/sprockets/blob/070fc01947c111d35bb4c836e9bb71962a8e0595/UPGRADING.md#manifestjs"
super msg
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-08-31 22:34:54.000000000 +0200
+++ new/metadata 2020-09-12 09:37:40.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: sprockets-rails
version: !ruby/object:Gem::Version
- version: 3.2.1
+ version: 3.2.2
platform: ruby
authors:
- Joshua Peek
-autorequire:
+autorequire:
bindir: bin
cert_chain: []
-date: 2017-08-31 00:00:00.000000000 Z
+date: 2020-09-12 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: sprockets
@@ -108,7 +108,7 @@
- - ">="
- !ruby/object:Gem::Version
version: '0'
-description:
+description:
email: [email protected]
executables: []
extensions: []
@@ -129,7 +129,7 @@
licenses:
- MIT
metadata: {}
-post_install_message:
+post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -144,9 +144,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project:
-rubygems_version: 2.5.2
-signing_key:
+rubygems_version: 3.1.2
+signing_key:
specification_version: 4
summary: Sprockets Rails integration
test_files: []