sassc-rails 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +2 -0
- data/lib/rails/generators/sass/assets/templates/stylesheet.sass +1 -1
- data/lib/rails/generators/scss/assets/templates/stylesheet.scss +1 -1
- data/lib/sassc/rails/functions.rb +1 -1
- data/lib/sassc/rails/importer.rb +5 -5
- data/lib/sassc/rails/version.rb +1 -1
- data/test/dummy/app/assets/stylesheets/glob_multiple_extensions_test.scss +1 -0
- data/test/dummy/app/assets/stylesheets/globbed_multiple_extensions/glob.scss.erb +3 -0
- data/test/sassc_rails_test.rb +10 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bab6450e8f0f559676574d793ebfd3907047d86f1211f7b37d7ddefef7d9d489
|
4
|
+
data.tar.gz: 319f4a01bd86c17e651e54971d7e275e1112e5edf403b2ff224bcffa4860b2e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea0d8aa788795d3fd25cb7f929728cb24bc521fada59bc41d9342ac8d91748243ea4de171c3aa06b7135d93e72d204606fd4dd364b032cc45ca7a4f0f35f5abc
|
7
|
+
data.tar.gz: 3a058c13f10d1605db0a80e326dd16e1f5a1f7bb9e6f7775ff5102dd154ceb90e03d6c100b090ebd3de4d2ccb32d81f02a47bedb0771ce2f6632305088b1d0a4
|
data/CODE_OF_CONDUCT.md
CHANGED
data/README.md
CHANGED
@@ -85,6 +85,8 @@ is maintained by [Ryan Boland](https://ryanboland.com) and [awesome contributors
|
|
85
85
|
|
86
86
|
## Changelog
|
87
87
|
|
88
|
+
- **2.1.2**
|
89
|
+
- [Correct reference to SassC::Script::Value::String](https://github.com/sass/sassc-rails/pull/129)
|
88
90
|
- **2.1.1**
|
89
91
|
- [Fix Scaffolding](https://github.com/sass/sassc-rails/pull/119)
|
90
92
|
- **2.1.0**
|
@@ -5,7 +5,7 @@ require 'sprockets/sass_functions'
|
|
5
5
|
module Sprockets
|
6
6
|
module SassFunctions
|
7
7
|
def asset_data_url(path)
|
8
|
-
SassC::Script::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
|
8
|
+
::SassC::Script::Value::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/sassc/rails/importer.rb
CHANGED
@@ -75,13 +75,13 @@ module SassC
|
|
75
75
|
EXTENSIONS = [
|
76
76
|
CssScssExtension.new,
|
77
77
|
CssSassExtension.new,
|
78
|
-
|
79
|
-
Extension.new(".sass"),
|
80
|
-
CSSExtension.new,
|
78
|
+
SassERBExtension.new,
|
81
79
|
ERBExtension.new(".scss.erb"),
|
82
80
|
ERBExtension.new(".css.erb"),
|
83
|
-
|
84
|
-
|
81
|
+
Extension.new(".scss"),
|
82
|
+
Extension.new(".sass"),
|
83
|
+
CSSExtension.new
|
84
|
+
].freeze
|
85
85
|
|
86
86
|
PREFIXS = [ "", "_" ]
|
87
87
|
GLOB = /(\A|\/)(\*|\*\*\/\*)\z/
|
data/lib/sassc/rails/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
@import "globbed_multiple_extensions/**/*";
|
data/test/sassc_rails_test.rb
CHANGED
@@ -271,6 +271,16 @@ class SassRailsTest < MiniTest::Test
|
|
271
271
|
# assert_match /\.import-css-application/, css_output
|
272
272
|
#end
|
273
273
|
|
274
|
+
def test_globbed_imports_work_with_multiple_extensions
|
275
|
+
initialize!
|
276
|
+
|
277
|
+
asset = render_asset("glob_multiple_extensions_test.css")
|
278
|
+
|
279
|
+
assert_equal <<-CSS, asset
|
280
|
+
.glob{margin:0}
|
281
|
+
CSS
|
282
|
+
end
|
283
|
+
|
274
284
|
def test_globbed_imports_work_when_globbed_file_is_changed
|
275
285
|
skip "This seems to work in practice, possible test setup problem"
|
276
286
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Boland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -186,9 +186,11 @@ files:
|
|
186
186
|
- test/dummy/app/assets/stylesheets/css_scss_erb_handler.scss.erb
|
187
187
|
- test/dummy/app/assets/stylesheets/css_scss_handler.css.scss
|
188
188
|
- test/dummy/app/assets/stylesheets/erb_render_with_context.css.erb
|
189
|
+
- test/dummy/app/assets/stylesheets/glob_multiple_extensions_test.scss
|
189
190
|
- test/dummy/app/assets/stylesheets/glob_test.scss
|
190
191
|
- test/dummy/app/assets/stylesheets/globbed/globbed.scss
|
191
192
|
- test/dummy/app/assets/stylesheets/globbed/nested/nested_glob.scss
|
193
|
+
- test/dummy/app/assets/stylesheets/globbed_multiple_extensions/glob.scss.erb
|
192
194
|
- test/dummy/app/assets/stylesheets/helpers_test.scss
|
193
195
|
- test/dummy/app/assets/stylesheets/imports_test.scss
|
194
196
|
- test/dummy/app/assets/stylesheets/in_load_paths/partial_in_load_paths.scss
|
@@ -249,9 +251,11 @@ test_files:
|
|
249
251
|
- test/dummy/app/assets/stylesheets/css_scss_erb_handler.scss.erb
|
250
252
|
- test/dummy/app/assets/stylesheets/css_scss_handler.css.scss
|
251
253
|
- test/dummy/app/assets/stylesheets/erb_render_with_context.css.erb
|
254
|
+
- test/dummy/app/assets/stylesheets/glob_multiple_extensions_test.scss
|
252
255
|
- test/dummy/app/assets/stylesheets/glob_test.scss
|
253
256
|
- test/dummy/app/assets/stylesheets/globbed/globbed.scss
|
254
257
|
- test/dummy/app/assets/stylesheets/globbed/nested/nested_glob.scss
|
258
|
+
- test/dummy/app/assets/stylesheets/globbed_multiple_extensions/glob.scss.erb
|
255
259
|
- test/dummy/app/assets/stylesheets/helpers_test.scss
|
256
260
|
- test/dummy/app/assets/stylesheets/imports_test.scss
|
257
261
|
- test/dummy/app/assets/stylesheets/in_load_paths/partial_in_load_paths.scss
|