Hello community,

here is the log from the commit of package rubygem-sprockets-rails for 
openSUSE:Factory checked in at 2016-09-12 13:26:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sprockets-rails (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sprockets-rails.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sprockets-rails"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-sprockets-rails/rubygem-sprockets-rails.changes
  2016-07-21 07:57:24.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-sprockets-rails.new/rubygem-sprockets-rails.changes
     2016-09-12 13:26:19.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Sep  2 04:52:40 UTC 2016 - [email protected]
+
+- updated to version 3.2.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  sprockets-rails-3.1.1.gem

New:
----
  sprockets-rails-3.2.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-sprockets-rails.spec ++++++
--- /var/tmp/diff_new_pack.ezLKrQ/_old  2016-09-12 13:26:20.000000000 +0200
+++ /var/tmp/diff_new_pack.ezLKrQ/_new  2016-09-12 13:26:20.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-sprockets-rails
-Version:        3.1.1
+Version:        3.2.0
 Release:        0
 %define mod_name sprockets-rails
 %define mod_full_name %{mod_name}-%{version}

++++++ sprockets-rails-3.1.1.gem -> sprockets-rails-3.2.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2016-06-29 05:24:33.000000000 +0200
+++ new/README.md       2016-09-01 17:14:04.000000000 +0200
@@ -48,9 +48,12 @@
 
 Also see 
[Sprockets::Rails::Task](https://github.com/rails/sprockets-rails/blob/master/lib/sprockets/rails/task.rb)
 and 
[Rake::SprocketsTask](https://github.com/rails/sprockets/blob/master/lib/rake/sprocketstask.rb).
 
-
 ### Initializer options
 
+**`config.assets.unknown_asset_fallback`**
+
+When set to a truthy value, a result will be returned even if the requested 
asset is not found in the asset pipeline. When set to a falsey value it will 
raise an error when no asset is found in the pipeline. Defaults to `true`.
+
 **`config.assets.precompile`**
 
 Add additional assets to compile on deploy. Defaults to `application.js`, 
`application.css` and any other non-js/css file under `app/assets`.
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   2016-06-29 05:24:33.000000000 +0200
+++ new/lib/sprockets/rails/helper.rb   2016-09-01 17:14:04.000000000 +0200
@@ -6,6 +6,8 @@
 module Sprockets
   module Rails
     module Helper
+      class AssetNotFound < StandardError; end
+
       class AssetNotPrecompiled < StandardError
         include Sprockets::Rails::Utils
         def initialize(source)
@@ -33,7 +35,8 @@
         :assets_environment, :assets_manifest,
         :assets_precompile, :precompiled_asset_checker,
         :assets_prefix, :digest_assets, :debug_assets,
-        :resolve_assets_with, :check_precompiled_asset
+        :resolve_assets_with, :check_precompiled_asset,
+        :unknown_asset_fallback
       ]
 
       def self.included(klass)
@@ -68,12 +71,26 @@
         end
       end
 
+      # Writes over the built in 
ActionView::Helpers::AssetUrlHelper#compute_asset_path
+      # to use the asset pipeline.
       def compute_asset_path(path, options = {})
         debug = options[:debug]
 
         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."
+          raise AssetNotFound, message unless unknown_asset_fallback
+
+          if respond_to?(:public_compute_asset_path)
+            message << "Falling back to an asset that may be in the public 
folder.\n"
+            message << "This behavior is deprecated and will be removed.\n"
+            message << "To bypass the asset pipeline and preserve this 
behavior,\n"
+            message << "use the `skip_pipeline: true` option.\n"
+
+            call_stack = respond_to?(:caller_locations) ? caller_locations : 
caller
+            ActiveSupport::Deprecation.warn(message, call_stack)
+          end
           super
         end
       end
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  2016-06-29 05:24:33.000000000 +0200
+++ new/lib/sprockets/rails/version.rb  2016-09-01 17:14:04.000000000 +0200
@@ -1,5 +1,5 @@
 module Sprockets
   module Rails
-    VERSION = "3.1.1"
+    VERSION = "3.2.0"
   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        2016-06-29 05:24:33.000000000 +0200
+++ new/lib/sprockets/railtie.rb        2016-09-01 17:14:04.000000000 +0200
@@ -82,8 +82,8 @@
     end
 
     LOOSE_APP_ASSETS = lambda do |logical_path, filename|
-        filename.start_with?(::Rails.root.join("app/assets").to_s) &&
-        !['.js', '.css', ''].include?(File.extname(logical_path))
+      filename.start_with?(::Rails.root.join("app/assets").to_s) &&
+      !['.js', '.css', ''].include?(File.extname(logical_path))
     end
 
     class OrderedOptions < ActiveSupport::OrderedOptions
@@ -102,10 +102,10 @@
 
     initializer :set_default_precompile do |app|
       if using_sprockets4?
-        raise ManifestNeededError if 
!::Rails.root.join("app/assets/config/manifest.js").exist?
-        app.config.assets.precompile  += %w( manifest.js )
+        raise ManifestNeededError unless 
::Rails.root.join("app/assets/config/manifest.js").exist?
+        app.config.assets.precompile += %w( manifest.js )
       else
-        app.config.assets.precompile  += [LOOSE_APP_ASSETS, 
/(?:\/|\\|\A)application\.(css|js)$/]
+        app.config.assets.precompile += [LOOSE_APP_ASSETS, 
/(?:\/|\\|\A)application\.(css|js)$/]
       end
     end
 
@@ -122,6 +122,7 @@
     config.assets.cache_limit = 50.megabytes
     config.assets.gzip        = true
     config.assets.check_precompiled_asset = true
+    config.assets.unknown_asset_fallback  = true
 
     config.assets.configure do |env|
       config.assets.paths.each { |path| env.append_path(path) }
@@ -245,7 +246,7 @@
         self.resolve_assets_with = config.assets.resolve_with
 
         self.check_precompiled_asset = config.assets.check_precompiled_asset
-
+        self.unknown_asset_fallback  = config.assets.unknown_asset_fallback
         # Expose the app precompiled asset check to the view
         self.precompiled_asset_checker = -> logical_path { 
app.asset_precompiled? logical_path }
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-06-29 05:24:33.000000000 +0200
+++ new/metadata        2016-09-01 17:14:04.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: sprockets-rails
 version: !ruby/object:Gem::Version
-  version: 3.1.1
+  version: 3.2.0
 platform: ruby
 authors:
 - Joshua Peek
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-06-29 00:00:00.000000000 Z
+date: 2016-09-01 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: sprockets
@@ -145,7 +145,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.6
+rubygems_version: 2.6.4
 signing_key: 
 specification_version: 4
 summary: Sprockets Rails integration


Reply via email to