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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7cca638ed47e5508424c1a2ff69600e773760f23a9484676466789ca656cc48
4
- data.tar.gz: a2410a358fe7a231171c62501d37e7a64c89d5d0ed28fb18ab7e60e75ce4b393
3
+ metadata.gz: bab6450e8f0f559676574d793ebfd3907047d86f1211f7b37d7ddefef7d9d489
4
+ data.tar.gz: 319f4a01bd86c17e651e54971d7e275e1112e5edf403b2ff224bcffa4860b2e8
5
5
  SHA512:
6
- metadata.gz: b47b30b6ad7e68791cfe3a868622957532c41bc843971262610046f6d5e8294e3ec489c44bfd37ee0335c5dc4b47d4e7722edeb6bc947a348b72c27e52fbde75
7
- data.tar.gz: adafe0d353e8da6e56ea973ca4e0e5b178c816c4663a913581a268f7f9e6522149a1af15e62f4a34ce31354a7fdf45369f0298ef0c3c3120ae1825c890d1949d
6
+ metadata.gz: ea0d8aa788795d3fd25cb7f929728cb24bc521fada59bc41d9342ac8d91748243ea4de171c3aa06b7135d93e72d204606fd4dd364b032cc45ca7a4f0f35f5abc
7
+ data.tar.gz: 3a058c13f10d1605db0a80e326dd16e1f5a1f7bb9e6f7775ff5102dd154ceb90e03d6c100b090ebd3de4d2ccb32d81f02a47bedb0771ce2f6632305088b1d0a4
@@ -7,4 +7,4 @@ fair place to play.
7
7
 
8
8
  [The full community guidelines can be found on the Sass website.][link]
9
9
 
10
- [link]: http://sass-lang.com/community-guidelines
10
+ [link]: https://sass-lang.com/community-guidelines
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**
@@ -1,3 +1,3 @@
1
1
  // Place all the styles related to the <%= name %> controller here.
2
2
  // They will automatically be included in application.css.
3
- // You can use Sass here: http://sass-lang.com/
3
+ // You can use Sass here: https://sass-lang.com/
@@ -1,3 +1,3 @@
1
1
  // Place all the styles related to the <%= name %> controller here.
2
2
  // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
3
+ // You can use Sass (SCSS) here: https://sass-lang.com/
@@ -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
@@ -75,13 +75,13 @@ module SassC
75
75
  EXTENSIONS = [
76
76
  CssScssExtension.new,
77
77
  CssSassExtension.new,
78
- Extension.new(".scss"),
79
- Extension.new(".sass"),
80
- CSSExtension.new,
78
+ SassERBExtension.new,
81
79
  ERBExtension.new(".scss.erb"),
82
80
  ERBExtension.new(".css.erb"),
83
- SassERBExtension.new
84
- ]
81
+ Extension.new(".scss"),
82
+ Extension.new(".sass"),
83
+ CSSExtension.new
84
+ ].freeze
85
85
 
86
86
  PREFIXS = [ "", "_" ]
87
87
  GLOB = /(\A|\/)(\*|\*\*\/\*)\z/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Rails
5
- VERSION = "2.1.1"
5
+ VERSION = "2.1.2"
6
6
  end
7
7
  end
@@ -0,0 +1 @@
1
+ @import "globbed_multiple_extensions/**/*";
@@ -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.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-04-22 00:00:00.000000000 Z
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