rails-sass-images 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9f9be19b67ecde27a9897f3f5e1a28c3a547faa
4
- data.tar.gz: ad5325598a9562ed0949d0fe6ae52b868d4a13c4
3
+ metadata.gz: 9124601cc9971cbc427489e745f7ed368415eeee
4
+ data.tar.gz: f02f28d79c01eec1e9aadb95abe8cfe487274260
5
5
  SHA512:
6
- metadata.gz: a82ee35bd22457d9f8c847831d871bb283284ecacc3a6da2f5935ca5b83d39deb8a5b39b1c32d26541c6b8bf026f9c0ea1b9986c64837f6597094d07f8336672
7
- data.tar.gz: 4250c85ecb7afc71eb3d7f42fc6863cae92164ec75b9cfe2dcd805de618313c5d0d76120f66a80747d218099aca6c6abee82caaf8c9f6aa792c65b827e6def3b
6
+ metadata.gz: 16570e6d24c224f76c3da5203a93b842f1fff08e4363f07b6117ea81b1b133c4e476425d15d5acae4a94fc5733f0ae71aa9be3a1ab435e0dee9945c2d53911f2
7
+ data.tar.gz: da92c615453e9d0bee84ff2bdc332c934511248d9cdc23879ca252fb589bf312b55dd8eb019c00899ba5d521f4e6ac809204be9a784b969d3e1565bda00f3103
@@ -1,3 +1,7 @@
1
+ ## 1.0.3
2
+ * Fix Sprockets 3 support.
3
+ * Better error message for wrong `load_from`.
4
+
1
5
  ## 1.0.2
2
6
  * Fix file path in error message.
3
7
 
@@ -14,6 +14,8 @@ module RailsSassImages
14
14
  asset = @load_from[path]
15
15
  raise "Can't find asset #{path}" unless asset
16
16
  asset = asset.pathname
17
+ else
18
+ raise "Unknown type of RailsSassImages.load_from"
17
19
  end
18
20
 
19
21
  asset
@@ -5,6 +5,9 @@ module RailsSassImages
5
5
 
6
6
  # Rails integration
7
7
  class Railtie < Rails::Railtie
8
- RailsSassImages.load_from = proc { Rails.application.assets }
8
+ RailsSassImages.load_from = proc do
9
+ Rails.application.assets ||
10
+ Sprockets::Railtie.build_environment(Rails.application)
11
+ end
9
12
  end
10
13
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSassImages
2
- VERSION = '1.0.2'.freeze unless defined? RailsSassImages::VERSION
2
+ VERSION = '1.0.3'.freeze unless defined? RailsSassImages::VERSION
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-sass-images
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey "A.I." Sitnik