sass-rails 5.0.3 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/sass/rails/railtie.rb +5 -3
- data/lib/sass/rails/version.rb +1 -1
- metadata +12 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b00dc4e168f69670dfdc5e8af265ff28efcc68c6
|
4
|
+
data.tar.gz: 16d3f38ce59df0029366a48f73e771080ec405e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07ac4dcb09a2888296cdf19c24852c1aba9021b2ebd4a37268e7c0e43898461af6b0333046df6908265e8fef175bee6db644facb17566fece44d5b7db15d0726
|
7
|
+
data.tar.gz: 3f614c481d3f9b83c70f878a3d408dbfe9c4270555a9986acb8ac7b2cb3e328ed4a443b06ae8713a5c56d90f450cb60bcd1ac01305425cddde8258f6ee82f085
|
data/README.md
CHANGED
@@ -68,24 +68,24 @@ in Sass):
|
|
68
68
|
#### `asset-path($relative-asset-path)`
|
69
69
|
Returns a string to the asset.
|
70
70
|
|
71
|
-
* `asset-path("rails.png")`
|
71
|
+
* `asset-path("rails.png")` returns `"/assets/rails.png"`
|
72
72
|
|
73
73
|
#### `asset-url($relative-asset-path)`
|
74
74
|
Returns a url reference to the asset.
|
75
75
|
|
76
|
-
* `asset-url("rails.png")`
|
76
|
+
* `asset-url("rails.png")` returns `url(/assets/rails.png)`
|
77
77
|
|
78
78
|
As a convenience, for each of the following asset classes there are
|
79
79
|
corresponding `-path` and `-url` helpers:
|
80
80
|
image, font, video, audio, javascript, stylesheet.
|
81
81
|
|
82
|
-
* `image-path("rails.png")`
|
83
|
-
* `image-url("rails.png")`
|
82
|
+
* `image-path("rails.png")` returns `"/assets/rails.png"`
|
83
|
+
* `image-url("rails.png")` returns `url(/assets/rails.png)`
|
84
84
|
|
85
85
|
#### `asset-data-url($relative-asset-path)`
|
86
86
|
Returns a url reference to the Base64-encoded asset at the specified path.
|
87
87
|
|
88
|
-
* `asset-data-url("rails.png")`
|
88
|
+
* `asset-data-url("rails.png")` returns `url(data:image/png;base64,iVBORw0K...)`
|
89
89
|
|
90
90
|
## Running Tests
|
91
91
|
|
data/lib/sass/rails/railtie.rb
CHANGED
@@ -67,11 +67,13 @@ module Sass::Rails
|
|
67
67
|
end
|
68
68
|
|
69
69
|
initializer :setup_compression, group: :all do |app|
|
70
|
-
|
71
|
-
app.config.assets.css_compressor ||= :sass
|
72
|
-
else
|
70
|
+
if Rails.env.development?
|
73
71
|
# Use expanded output instead of the sass default of :nested unless specified
|
74
72
|
app.config.sass.style ||= :expanded
|
73
|
+
else
|
74
|
+
# config.assets.css_compressor may be set to nil in non-dev environments.
|
75
|
+
# otherwise, the default is sass compression.
|
76
|
+
app.config.assets.css_compressor = :sass unless app.config.assets.has_key?(:css_compressor)
|
75
77
|
end
|
76
78
|
end
|
77
79
|
end
|
data/lib/sass/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wycats
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03
|
12
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -89,16 +89,22 @@ dependencies:
|
|
89
89
|
name: tilt
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- - "
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '1.1'
|
95
|
+
- - "<"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3'
|
95
98
|
type: :runtime
|
96
99
|
prerelease: false
|
97
100
|
version_requirements: !ruby/object:Gem::Requirement
|
98
101
|
requirements:
|
99
|
-
- - "
|
102
|
+
- - ">="
|
100
103
|
- !ruby/object:Gem::Version
|
101
104
|
version: '1.1'
|
105
|
+
- - "<"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '3'
|
102
108
|
- !ruby/object:Gem::Dependency
|
103
109
|
name: sqlite3
|
104
110
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,8 +165,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
165
|
version: '0'
|
160
166
|
requirements: []
|
161
167
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.4.
|
168
|
+
rubygems_version: 2.4.7
|
163
169
|
signing_key:
|
164
170
|
specification_version: 4
|
165
171
|
summary: Sass adapter for the Rails asset pipeline.
|
166
172
|
test_files: []
|
173
|
+
has_rdoc:
|