sassc-rails 0.0.9 → 0.1.0

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
  SHA1:
3
- metadata.gz: 96f86f8627a626d3e1a913a0edae7ea5ed78b694
4
- data.tar.gz: 251373d5cbe880216d251a11cd454fd49032a853
3
+ metadata.gz: ae97d3f35dca444f3fc0b4ad70778d255877d25d
4
+ data.tar.gz: 2dfda9e9b31a9934cad0793cd781573180485fb0
5
5
  SHA512:
6
- metadata.gz: 474481aa93fe80123d2068e1e574c9f8897b44fb0ebae5b53269af3508c8fa55417b1375f725538e5d6fe6e13560c4ec0d6e1bfccce87d1c8980b5dee6a21ebe
7
- data.tar.gz: a515b1c0d0f95b46921c4c729a047d0d8f7badef05d932255f13a7dce560847296c781838a8755795a06bc07592bb21f1f32f94a5b1345c0686fb57271509811
6
+ metadata.gz: bc12198915c971167266c0a17dc451698b3a96e1de117c69f924fed2735a8f81ca45366f1e36875c0c30736a5f8eb12a2b60c1dc17d6063a3bfe33e7e3e138f0
7
+ data.tar.gz: 5a9895f07a9c5adc4b5662525a8b5fbe226248db004e0b6b8fc14fc9353659eae7939b344012c5a60c41cda1e0d852b581269ec352d9d17e8bdb28cd8408cfa6
data/README.md CHANGED
@@ -24,6 +24,13 @@ This should essentially be a drop in alternative to [sass-rails](https://github.
24
24
 
25
25
  __Note: This is a new project, please report any issues you come across!__
26
26
 
27
+
28
+ ## Libsass Compatibility With Ruby Sass
29
+
30
+ For a look at the compatibility between Ruby Sass and Libsass, check this
31
+ [compatibility chart](http://sass-compatibility.github.io/) out.
32
+
33
+
27
34
  ## Installation
28
35
 
29
36
  Add this line to your application's Gemfile:
@@ -37,6 +44,23 @@ And then execute:
37
44
  $ bundle
38
45
 
39
46
 
47
+ ## Deployment to Heroku
48
+
49
+ Due to Libsass compilation requirements, you upgrade to the
50
+ [Heroku Cedar-14 Stack](https://devcenter.heroku.com/articles/cedar-14-migration)
51
+ in order to successfully install this gem.
52
+
53
+ Upgrading to Cedar-14 is usually a painless process.
54
+
55
+
56
+ ## Installing alongside a gem that depends on Sass-Rails
57
+
58
+ Libraries explicitly depending on Sass-Rails, such as ActiveAdmin, can cause
59
+ conflicts with installation of SassC-Rails. While we have no built-in solution
60
+ for this, please check out [this issue](https://github.com/bolandrm/sassc-rails/issues/6)
61
+ for a workaround.
62
+
63
+
40
64
  ## Contributing
41
65
 
42
66
  1. Fork it ( https://github.com/[my-github-username]/sassc-rails/fork )
@@ -46,6 +70,7 @@ And then execute:
46
70
  1. Push to the branch (`git push origin my-new-feature`)
47
71
  1. Create a new Pull Request
48
72
 
73
+
49
74
  ## Credits
50
75
 
51
76
  This gem is based on [sass-rails](https://github.com/rails/sass-rails), and
@@ -116,8 +116,7 @@ module SassC
116
116
  end
117
117
  end
118
118
 
119
- # TODO: Raise an error from SassC here
120
- raise ArgumentError.new("file not found: #{path}")
119
+ SassC::Importer::Import.new(path)
121
120
  end
122
121
 
123
122
  private
@@ -1,5 +1,5 @@
1
1
  module SassC
2
2
  module Rails
3
- VERSION = "0.0.9"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  # unfortunately we require sass for now, so that we can
27
27
  # reuse portions of the sprockets template
28
28
  spec.add_dependency 'sass'
29
- spec.add_dependency "sassc", "~> 1.1.2"
29
+ spec.add_dependency "sassc", "~> 1.2.0"
30
30
 
31
31
  spec.add_dependency "tilt"
32
32
 
@@ -1,6 +1,7 @@
1
1
  @import "partials/css_sass_import";
2
2
  @import "partials/sass_import";
3
3
  @import "partials/scss_import";
4
+ @import "partials/explicit_extension_import.foo";
4
5
  @import "globbed/**/*";
5
6
  @import "subfolder/plain";
6
7
  @import "subfolder/second_level";
@@ -126,6 +126,7 @@ class SassRailsTest < MiniTest::Unit::TestCase
126
126
  assert_match /top-level/, css_output
127
127
  assert_match /partial-sass/, css_output
128
128
  assert_match /partial-scss/, css_output
129
+ assert_match /partial-foo/, css_output
129
130
  assert_match /sub-folder-relative-sass/, css_output
130
131
  assert_match /sub-folder-relative-scss/, css_output
131
132
  assert_match /not-a-partial/, css_output
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: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Boland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-04 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.1.2
89
+ version: 1.2.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.1.2
96
+ version: 1.2.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: tilt
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -182,6 +182,7 @@ files:
182
182
  - test/dummy/app/assets/stylesheets/helpers_test.scss
183
183
  - test/dummy/app/assets/stylesheets/imports_test.scss
184
184
  - test/dummy/app/assets/stylesheets/partials/_css_sass_import.sass
185
+ - test/dummy/app/assets/stylesheets/partials/_explicit_extension_import.foo
185
186
  - test/dummy/app/assets/stylesheets/partials/_sass_import.sass
186
187
  - test/dummy/app/assets/stylesheets/partials/_scss_import.scss
187
188
  - test/dummy/app/assets/stylesheets/partials/_without_css_ext.scss
@@ -454,6 +455,7 @@ test_files:
454
455
  - test/dummy/app/assets/stylesheets/helpers_test.scss
455
456
  - test/dummy/app/assets/stylesheets/imports_test.scss
456
457
  - test/dummy/app/assets/stylesheets/partials/_css_sass_import.sass
458
+ - test/dummy/app/assets/stylesheets/partials/_explicit_extension_import.foo
457
459
  - test/dummy/app/assets/stylesheets/partials/_sass_import.sass
458
460
  - test/dummy/app/assets/stylesheets/partials/_scss_import.scss
459
461
  - test/dummy/app/assets/stylesheets/partials/_without_css_ext.scss