polymer-rails 1.2.4 → 1.2.4.1

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
  SHA1:
3
- metadata.gz: 4d6f85b4da27c036e044a1a1581ef30415aa5bf6
4
- data.tar.gz: ed81c72d083396e2f712a895976ff7ac879754b8
3
+ metadata.gz: 601eec82c831978d825d17a702c5fa3c40198063
4
+ data.tar.gz: 416292a654344ae12df8be3ceac9cd96d31dd9a6
5
5
  SHA512:
6
- metadata.gz: b9af42b3f75ddc30ec66d627a55b7d97d4bb14e06642f5759efb64c0c2e5c93b5cdecdb81f06450ce98e640037e408aa3013c87143daf0e2500b69462525ce7b
7
- data.tar.gz: 1847766eb932c8dc325970373578d18e1730114c608477758881c8fd265ef4efa7b5f2e05194f7555e965c17a0ebc79f7aebec3db50978d5e5eb40d34b0fa97a
6
+ metadata.gz: a4fc5d7d0a146f8522adcf5c899bee9e0f6d2794f00ee942af31a8374f881f439275279e414e3cb37c66c343185b8e30c47e68522912f1bd9d64dc6d8a21de5f
7
+ data.tar.gz: efc997ad4674c874d416d229923549037d0ac88a350a83fc4e71ac501c2d0ba4337e504eda12776c6233c272e59baae56a68af590b855de0a9f3889dec3991e6
@@ -47,7 +47,7 @@ module Polymer
47
47
 
48
48
  def absolute_asset_path(file)
49
49
  search_file = file.sub(/^(\.\.\/)+/, '/').sub(/^\/*/, '')
50
- ::Rails.application.assets.paths.each do |path|
50
+ @@sprockets_env.paths.each do |path|
51
51
  file_list = Dir.glob( "#{File.absolute_path search_file, path }*")
52
52
  return file_list.first unless file_list.blank?
53
53
  end
@@ -56,8 +56,9 @@ module Polymer
56
56
  end
57
57
 
58
58
  def find_asset(asset_path)
59
- ::Rails.application.assets.find_asset(asset_path)
59
+ @@sprockets_env.find_asset(asset_path)
60
60
  end
61
+
61
62
  end
62
63
  end
63
64
  end
@@ -7,6 +7,7 @@ module Polymer
7
7
  end
8
8
 
9
9
  def self.call(input)
10
+ @@sprockets_env = input[:environment]
10
11
  instance.call(input)
11
12
  end
12
13
 
@@ -1,5 +1,5 @@
1
1
  module Polymer
2
2
  module Rails
3
- VERSION = "1.2.4"
3
+ VERSION = "1.2.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polymer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Chaplinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri