Skip to content

Commit 594afce

Browse files
authored
Merge pull request #113 from glebm/jruby
JRuby Compatibility
2 parents f5ab1cb + dae1bb5 commit 594afce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gemfile:
1515
rvm:
1616
- 2.4.4
1717
- 2.5.1
18+
- jruby
1819

1920
notifications:
2021
email: false

lib/sassc/rails/template.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def call(input)
3232
environment: input[:environment],
3333
dependencies: context.metadata[:dependency_paths]
3434
}
35-
}.merge(config_options) { |*args| safe_merge(*args) }
35+
}.merge!(config_options) { |key, left, right| safe_merge(key, left, right) }
3636

3737
engine = ::SassC::Engine.new(input[:data], options)
3838

@@ -70,9 +70,9 @@ def line_comments?
7070
Rails.application.config.sass.line_comments
7171
end
7272

73-
def safe_merge(key, left, right)
73+
def safe_merge(_key, left, right)
7474
if [left, right].all? { |v| v.is_a? Hash }
75-
left.merge(right) { |*args| safe_merge *args }
75+
left.merge(right) { |k, l, r| safe_merge(k, l, r) }
7676
elsif [left, right].all? { |v| v.is_a? Array }
7777
(left + right).uniq
7878
else

0 commit comments

Comments
 (0)