Skip to content

Commit 8e43341

Browse files
authored
Merge branch 'master' into roman/dependency
2 parents bc0ed55 + af54ca0 commit 8e43341

File tree

11 files changed

+59
-13
lines changed

11 files changed

+59
-13
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ language: ruby
33
bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
44
script: "bundle exec rake test"
55
rvm:
6-
- 2.2.0
76
- 2.3.3
8-
- 2.4.0
7+
- 2.4.4
8+
- 2.5.1
99
notifications:
1010
email: false

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Sass is more than a technology; Sass is driven by the community of individuals
2+
that power its development and use every day. As a community, we want to embrace
3+
the very differences that have made our collaboration so powerful, and work
4+
together to provide the best environment for learning, growing, and sharing of
5+
ideas. It is imperative that we keep Sass a fun, welcoming, challenging, and
6+
fair place to play.
7+
8+
[The full community guidelines can be found on the Sass website.][link]
9+
10+
[link]: http://sass-lang.com/community-guidelines

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
Use `libsass` with Ruby!
44

5-
This gem combines the speed of `libsass`, the [Sass C implementation](https://github.com/sass/libsass), with the ease of use of the original [Ruby Sass](https://github.com/sass/sass) library.
5+
This gem combines the speed of `libsass`, the [Sass C implementation](https://github.com/sass/libsass), with the ease of use of the original [Ruby Sass](https://github.com/sass/ruby-sass) library.
66

77
### libsass Version
88

9-
[3.4.1](https://github.com/sass/libsass/releases/tag/3.4.1)
9+
[3.5.2](https://github.com/sass/libsass/releases/tag/3.5.2)
1010

1111
## Installation
1212

@@ -48,7 +48,17 @@ This gem is maintained by [Ryan Boland](https://ryanboland.com)
4848
and [awesome contributors](https://github.com/bolandrm/sassc-ruby/graphs/contributors).
4949

5050
## Changelog
51-
51+
- **1.12.1**
52+
- [Downgrade to libsass 3.5.2 to fix css imports](https://github.com/sass/sassc-ruby/pull/81)
53+
- **1.12.0**
54+
- [Update Libsass to 3.5.4](https://github.com/sass/sassc-ruby/pull/78)
55+
- [bundler is a development dependency](https://github.com/sass/sassc-ruby/pull/51)
56+
- **1.11.4**
57+
- Fix `Value::List` related issue with sass 3.5.0
58+
- **1.11.3**
59+
- [Require Sass::Deprecation module](https://github.com/sass/sassc-ruby/pull/68)
60+
- **1.11.2**
61+
- [Update to libsass 3.4.3](https://github.com/sass/sassc-ruby/pull/65)
5262
- **1.11.1**
5363
- [Update to libsass 3.4.1](https://github.com/sass/sassc-ruby/pull/61)
5464
- **1.11.0**

ext/libsass

Submodule libsass updated 139 files

lib/sassc/script.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ module Script
2828
end
2929

3030
require 'sass/util'
31+
32+
begin
33+
require 'sass/deprecation'
34+
rescue LoadError
35+
end
36+
3137
require 'sass/script/value/base'
3238
require 'sass/script/value/string'
3339
require 'sass/script/value/color'
@@ -40,4 +46,4 @@ module Script
4046
SassC::Script::Value::Color = Sass::Script::Value::Color
4147

4248
SassC::Script::Bool = Sass::Script::Value::Bool
43-
SassC::Script::Value::Bool = Sass::Script::Value::Bool
49+
SassC::Script::Value::Bool = Sass::Script::Value::Bool

lib/sassc/script/value_conversion.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ def self.from_native(native_value, options)
4747
native_item = Native::list_get_value(native_value, index)
4848
from_native(native_item, options)
4949
end
50-
Sass::Script::Value::List.new(items, :space)
50+
51+
if Gem.loaded_specs['sass'].version < Gem::Version.create('3.5')
52+
Sass::Script::Value::List.new(items, :space)
53+
else
54+
Sass::Script::Value::List.new(items, separator: :space)
55+
end
5156
else
5257
raise UnsupportedValue.new("Sass argument of type #{value_tag} unsupported")
5358
end

lib/sassc/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module SassC
2-
VERSION = "1.11.1"
2+
VERSION = "1.12.1"
33
end

sassc.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
2525
spec.add_development_dependency "minitest-around"
2626
spec.add_development_dependency "test_construct"
2727
spec.add_development_dependency "pry"
28+
spec.add_development_dependency "bundler"
2829

2930
spec.add_dependency "rake"
30-
spec.add_dependency "bundler"
3131
spec.add_dependency "ffi", "~> 1.9.6"
3232
spec.add_dependency "sass", ">= 3.3.0"
3333

@@ -43,4 +43,3 @@ Gem::Specification.new do |spec|
4343
end
4444
end
4545
end
46-

test/engine_test.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,5 +267,16 @@ def test_empty_template_encoding_matches_input
267267
output = Engine.new(input).render
268268
assert_equal input.encoding, output.encoding
269269
end
270+
271+
def test_import_plain_css
272+
temp_file("test.css", ".something{color: red}")
273+
expected_output = <<-CSS
274+
.something {
275+
color: red; }
276+
CSS
277+
278+
output = Engine.new("@import 'test'").render
279+
assert_equal expected_output, output
280+
end
270281
end
271282
end

test/functions_test.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,12 @@ def returns_sass_list
290290
numbers = [10, 20, 30].map do |n|
291291
Sass::Script::Value::Number.new(n, '')
292292
end
293-
Sass::Script::Value::List.new(numbers, :space)
293+
294+
if Gem.loaded_specs['sass'].version < Gem::Version.create('3.5')
295+
Sass::Script::Value::List.new(numbers, :space)
296+
else
297+
Sass::Script::Value::List.new(numbers, separator: :space)
298+
end
294299
end
295300

296301
module Compass

0 commit comments

Comments
 (0)