sass-rails 3.2.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +1 -1
- data/README.md +103 -0
- data/lib/sass/rails/importer.rb +3 -120
- data/lib/sass/rails/logger.rb +3 -19
- data/lib/sass/rails/railtie.rb +1 -77
- data/lib/sass/rails/version.rb +1 -1
- data/lib/sass/rails.rb +1 -16
- data/lib/sass-rails.rb +1 -1
- metadata +42 -408
- data/.gitignore +0 -5
- data/.travis.yml +0 -12
- data/CHANGELOG.md +0 -20
- data/Gemfile +0 -17
- data/README.markdown +0 -75
- data/Rakefile +0 -12
- data/lib/rails/generators/sass/assets/assets_generator.rb +0 -13
- data/lib/rails/generators/sass/assets/templates/stylesheet.css.sass +0 -3
- data/lib/rails/generators/sass/scaffold/scaffold_generator.rb +0 -9
- data/lib/rails/generators/sass_scaffold.rb +0 -16
- data/lib/rails/generators/scss/assets/assets_generator.rb +0 -13
- data/lib/rails/generators/scss/assets/templates/stylesheet.css.scss +0 -3
- data/lib/rails/generators/scss/scaffold/scaffold_generator.rb +0 -10
- data/lib/sass/rails/compressor.rb +0 -19
- data/lib/sass/rails/helpers.rb +0 -52
- data/lib/sass/rails/template_handlers.rb +0 -117
- data/sass-rails.gemspec +0 -25
- data/test/fixtures/engine_project/.gitignore +0 -6
- data/test/fixtures/engine_project/Gemfile +0 -5
- data/test/fixtures/engine_project/README.rdoc +0 -3
- data/test/fixtures/engine_project/Rakefile +0 -39
- data/test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep +0 -0
- data/test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js +0 -9
- data/test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css +0 -7
- data/test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb +0 -4
- data/test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb +0 -4
- data/test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb +0 -14
- data/test/fixtures/engine_project/config/routes.rb +0 -2
- data/test/fixtures/engine_project/db/seeds.rb +0 -7
- data/test/fixtures/engine_project/engine_project.gemspec +0 -8
- data/test/fixtures/engine_project/lib/engine_project/engine.rb +0 -5
- data/test/fixtures/engine_project/lib/engine_project/version.rb +0 -3
- data/test/fixtures/engine_project/lib/engine_project.rb +0 -4
- data/test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake +0 -4
- data/test/fixtures/engine_project/script/rails +0 -6
- data/test/fixtures/engine_project/test/dummy/Rakefile +0 -7
- data/test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js +0 -9
- data/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css +0 -7
- data/test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/models/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/fixtures/engine_project/test/dummy/config/application.rb +0 -42
- data/test/fixtures/engine_project/test/dummy/config/boot.rb +0 -10
- data/test/fixtures/engine_project/test/dummy/config/database.yml +0 -25
- data/test/fixtures/engine_project/test/dummy/config/environment.rb +0 -5
- data/test/fixtures/engine_project/test/dummy/config/environments/development.rb +0 -27
- data/test/fixtures/engine_project/test/dummy/config/environments/production.rb +0 -51
- data/test/fixtures/engine_project/test/dummy/config/environments/test.rb +0 -39
- data/test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb +0 -12
- data/test/fixtures/engine_project/test/dummy/config/locales/en.yml +0 -5
- data/test/fixtures/engine_project/test/dummy/config/routes.rb +0 -4
- data/test/fixtures/engine_project/test/dummy/config.ru +0 -4
- data/test/fixtures/engine_project/test/dummy/db/seeds.rb +0 -7
- data/test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/log/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/public/404.html +0 -26
- data/test/fixtures/engine_project/test/dummy/public/422.html +0 -26
- data/test/fixtures/engine_project/test/dummy/public/500.html +0 -26
- data/test/fixtures/engine_project/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/engine_project/test/dummy/script/rails +0 -6
- data/test/fixtures/sass_project/.gitignore +0 -5
- data/test/fixtures/sass_project/Gemfile +0 -7
- data/test/fixtures/sass_project/README +0 -261
- data/test/fixtures/sass_project/Rakefile +0 -7
- data/test/fixtures/sass_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/sass_project/app/assets/javascripts/application.js +0 -9
- data/test/fixtures/sass_project/app/assets/stylesheets/application.css +0 -7
- data/test/fixtures/sass_project/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/sass_project/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/sass_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/sass_project/app/models/.gitkeep +0 -0
- data/test/fixtures/sass_project/app/views/layouts/application.html.erb +0 -14
- data/test/fixtures/sass_project/config/application.rb +0 -52
- data/test/fixtures/sass_project/config/boot.rb +0 -6
- data/test/fixtures/sass_project/config/database.yml +0 -25
- data/test/fixtures/sass_project/config/environment.rb +0 -5
- data/test/fixtures/sass_project/config/environments/development.rb +0 -27
- data/test/fixtures/sass_project/config/environments/production.rb +0 -54
- data/test/fixtures/sass_project/config/environments/test.rb +0 -39
- data/test/fixtures/sass_project/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/sass_project/config/initializers/inflections.rb +0 -10
- data/test/fixtures/sass_project/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/sass_project/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/sass_project/config/initializers/session_store.rb +0 -8
- data/test/fixtures/sass_project/config/initializers/wrap_parameters.rb +0 -12
- data/test/fixtures/sass_project/config/locales/en.yml +0 -5
- data/test/fixtures/sass_project/config/routes.rb +0 -58
- data/test/fixtures/sass_project/config.ru +0 -4
- data/test/fixtures/sass_project/db/seeds.rb +0 -7
- data/test/fixtures/sass_project/doc/README_FOR_APP +0 -2
- data/test/fixtures/sass_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/sass_project/log/.gitkeep +0 -0
- data/test/fixtures/sass_project/public/404.html +0 -26
- data/test/fixtures/sass_project/public/422.html +0 -26
- data/test/fixtures/sass_project/public/500.html +0 -26
- data/test/fixtures/sass_project/public/favicon.ico +0 -0
- data/test/fixtures/sass_project/public/index.html +0 -241
- data/test/fixtures/sass_project/public/robots.txt +0 -5
- data/test/fixtures/sass_project/script/rails +0 -6
- data/test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/sass_project/vendor/plugins/.gitkeep +0 -0
- data/test/fixtures/scss_project/.gitignore +0 -5
- data/test/fixtures/scss_project/Gemfile +0 -7
- data/test/fixtures/scss_project/README +0 -261
- data/test/fixtures/scss_project/Rakefile +0 -7
- data/test/fixtures/scss_project/app/assets/images/1x1.png +0 -0
- data/test/fixtures/scss_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/scss_project/app/assets/javascripts/application.js +0 -9
- data/test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/application.css.scss +0 -32
- data/test/fixtures/scss_project/app/assets/stylesheets/css_application.css +0 -7
- data/test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass +0 -5
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss +0 -9
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass +0 -2
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss +0 -1
- data/test/fixtures/scss_project/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/scss_project/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/scss_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/scss_project/app/models/.gitkeep +0 -0
- data/test/fixtures/scss_project/app/views/layouts/application.html.erb +0 -14
- data/test/fixtures/scss_project/config/application.rb +0 -49
- data/test/fixtures/scss_project/config/boot.rb +0 -6
- data/test/fixtures/scss_project/config/database.yml +0 -25
- data/test/fixtures/scss_project/config/environment.rb +0 -5
- data/test/fixtures/scss_project/config/environments/development.rb +0 -27
- data/test/fixtures/scss_project/config/environments/production.rb +0 -54
- data/test/fixtures/scss_project/config/environments/test.rb +0 -39
- data/test/fixtures/scss_project/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/scss_project/config/initializers/inflections.rb +0 -10
- data/test/fixtures/scss_project/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/scss_project/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/scss_project/config/initializers/session_store.rb +0 -8
- data/test/fixtures/scss_project/config/initializers/wrap_parameters.rb +0 -12
- data/test/fixtures/scss_project/config/locales/en.yml +0 -5
- data/test/fixtures/scss_project/config/routes.rb +0 -58
- data/test/fixtures/scss_project/config.ru +0 -4
- data/test/fixtures/scss_project/db/seeds.rb +0 -7
- data/test/fixtures/scss_project/doc/README_FOR_APP +0 -2
- data/test/fixtures/scss_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/scss_project/log/.gitkeep +0 -0
- data/test/fixtures/scss_project/public/404.html +0 -26
- data/test/fixtures/scss_project/public/422.html +0 -26
- data/test/fixtures/scss_project/public/500.html +0 -26
- data/test/fixtures/scss_project/public/favicon.ico +0 -0
- data/test/fixtures/scss_project/public/index.html +0 -241
- data/test/fixtures/scss_project/public/robots.txt +0 -5
- data/test/fixtures/scss_project/script/rails +0 -6
- data/test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/scss_project/vendor/plugins/.gitkeep +0 -0
- data/test/sass_rails_logger_test.rb +0 -24
- data/test/sass_rails_test.rb +0 -110
- data/test/support/sass_rails_test_case.rb +0 -159
- data/test/test_helper.rb +0 -30
metadata
CHANGED
@@ -1,439 +1,73 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-rails
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 2
|
9
|
-
- 3
|
10
|
-
version: 3.2.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 6.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- wycats
|
14
8
|
- chriseppstein
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
requirements:
|
12
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sassc-rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '2.1'
|
28
21
|
- - ">="
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 3
|
33
|
-
- 1
|
34
|
-
- 10
|
35
|
-
version: 3.1.10
|
36
|
-
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: railties
|
40
|
-
prerelease: false
|
41
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 31098209
|
47
|
-
segments:
|
48
|
-
- 3
|
49
|
-
- 2
|
50
|
-
- 0
|
51
|
-
- beta
|
52
|
-
version: 3.2.0.beta
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.1.1
|
53
24
|
type: :runtime
|
54
|
-
version_requirements: *id002
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: tilt
|
57
25
|
prerelease: false
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
- 3
|
67
|
-
version: "1.3"
|
68
|
-
type: :runtime
|
69
|
-
version_requirements: *id003
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '2.1'
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.1.1
|
70
34
|
description: Sass adapter for the Rails asset pipeline.
|
71
|
-
email:
|
35
|
+
email:
|
72
36
|
- wycats@gmail.com
|
73
37
|
- chris@eppsteins.net
|
74
38
|
executables: []
|
75
|
-
|
76
39
|
extensions: []
|
77
|
-
|
78
40
|
extra_rdoc_files: []
|
79
|
-
|
80
|
-
files:
|
81
|
-
- .gitignore
|
82
|
-
- .travis.yml
|
83
|
-
- CHANGELOG.md
|
84
|
-
- Gemfile
|
41
|
+
files:
|
85
42
|
- MIT-LICENSE
|
86
|
-
- README.
|
87
|
-
- Rakefile
|
88
|
-
- lib/rails/generators/sass/assets/assets_generator.rb
|
89
|
-
- lib/rails/generators/sass/assets/templates/stylesheet.css.sass
|
90
|
-
- lib/rails/generators/sass/scaffold/scaffold_generator.rb
|
91
|
-
- lib/rails/generators/sass_scaffold.rb
|
92
|
-
- lib/rails/generators/scss/assets/assets_generator.rb
|
93
|
-
- lib/rails/generators/scss/assets/templates/stylesheet.css.scss
|
94
|
-
- lib/rails/generators/scss/scaffold/scaffold_generator.rb
|
43
|
+
- README.md
|
95
44
|
- lib/sass-rails.rb
|
96
45
|
- lib/sass/rails.rb
|
97
|
-
- lib/sass/rails/compressor.rb
|
98
|
-
- lib/sass/rails/helpers.rb
|
99
46
|
- lib/sass/rails/importer.rb
|
100
47
|
- lib/sass/rails/logger.rb
|
101
48
|
- lib/sass/rails/railtie.rb
|
102
|
-
- lib/sass/rails/template_handlers.rb
|
103
49
|
- lib/sass/rails/version.rb
|
104
|
-
|
105
|
-
|
106
|
-
-
|
107
|
-
|
108
|
-
- test/fixtures/engine_project/Rakefile
|
109
|
-
- test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep
|
110
|
-
- test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js
|
111
|
-
- test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css
|
112
|
-
- test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb
|
113
|
-
- test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb
|
114
|
-
- test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb
|
115
|
-
- test/fixtures/engine_project/config/routes.rb
|
116
|
-
- test/fixtures/engine_project/db/seeds.rb
|
117
|
-
- test/fixtures/engine_project/engine_project.gemspec
|
118
|
-
- test/fixtures/engine_project/lib/engine_project.rb
|
119
|
-
- test/fixtures/engine_project/lib/engine_project/engine.rb
|
120
|
-
- test/fixtures/engine_project/lib/engine_project/version.rb
|
121
|
-
- test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake
|
122
|
-
- test/fixtures/engine_project/script/rails
|
123
|
-
- test/fixtures/engine_project/test/dummy/Rakefile
|
124
|
-
- test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js
|
125
|
-
- test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css
|
126
|
-
- test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb
|
127
|
-
- test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb
|
128
|
-
- test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep
|
129
|
-
- test/fixtures/engine_project/test/dummy/app/models/.gitkeep
|
130
|
-
- test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb
|
131
|
-
- test/fixtures/engine_project/test/dummy/config.ru
|
132
|
-
- test/fixtures/engine_project/test/dummy/config/application.rb
|
133
|
-
- test/fixtures/engine_project/test/dummy/config/boot.rb
|
134
|
-
- test/fixtures/engine_project/test/dummy/config/database.yml
|
135
|
-
- test/fixtures/engine_project/test/dummy/config/environment.rb
|
136
|
-
- test/fixtures/engine_project/test/dummy/config/environments/development.rb
|
137
|
-
- test/fixtures/engine_project/test/dummy/config/environments/production.rb
|
138
|
-
- test/fixtures/engine_project/test/dummy/config/environments/test.rb
|
139
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb
|
140
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb
|
141
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb
|
142
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb
|
143
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb
|
144
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb
|
145
|
-
- test/fixtures/engine_project/test/dummy/config/locales/en.yml
|
146
|
-
- test/fixtures/engine_project/test/dummy/config/routes.rb
|
147
|
-
- test/fixtures/engine_project/test/dummy/db/seeds.rb
|
148
|
-
- test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep
|
149
|
-
- test/fixtures/engine_project/test/dummy/log/.gitkeep
|
150
|
-
- test/fixtures/engine_project/test/dummy/public/404.html
|
151
|
-
- test/fixtures/engine_project/test/dummy/public/422.html
|
152
|
-
- test/fixtures/engine_project/test/dummy/public/500.html
|
153
|
-
- test/fixtures/engine_project/test/dummy/public/favicon.ico
|
154
|
-
- test/fixtures/engine_project/test/dummy/script/rails
|
155
|
-
- test/fixtures/sass_project/.gitignore
|
156
|
-
- test/fixtures/sass_project/Gemfile
|
157
|
-
- test/fixtures/sass_project/README
|
158
|
-
- test/fixtures/sass_project/Rakefile
|
159
|
-
- test/fixtures/sass_project/app/assets/images/rails.png
|
160
|
-
- test/fixtures/sass_project/app/assets/javascripts/application.js
|
161
|
-
- test/fixtures/sass_project/app/assets/stylesheets/application.css
|
162
|
-
- test/fixtures/sass_project/app/controllers/application_controller.rb
|
163
|
-
- test/fixtures/sass_project/app/helpers/application_helper.rb
|
164
|
-
- test/fixtures/sass_project/app/mailers/.gitkeep
|
165
|
-
- test/fixtures/sass_project/app/models/.gitkeep
|
166
|
-
- test/fixtures/sass_project/app/views/layouts/application.html.erb
|
167
|
-
- test/fixtures/sass_project/config.ru
|
168
|
-
- test/fixtures/sass_project/config/application.rb
|
169
|
-
- test/fixtures/sass_project/config/boot.rb
|
170
|
-
- test/fixtures/sass_project/config/database.yml
|
171
|
-
- test/fixtures/sass_project/config/environment.rb
|
172
|
-
- test/fixtures/sass_project/config/environments/development.rb
|
173
|
-
- test/fixtures/sass_project/config/environments/production.rb
|
174
|
-
- test/fixtures/sass_project/config/environments/test.rb
|
175
|
-
- test/fixtures/sass_project/config/initializers/backtrace_silencers.rb
|
176
|
-
- test/fixtures/sass_project/config/initializers/inflections.rb
|
177
|
-
- test/fixtures/sass_project/config/initializers/mime_types.rb
|
178
|
-
- test/fixtures/sass_project/config/initializers/secret_token.rb
|
179
|
-
- test/fixtures/sass_project/config/initializers/session_store.rb
|
180
|
-
- test/fixtures/sass_project/config/initializers/wrap_parameters.rb
|
181
|
-
- test/fixtures/sass_project/config/locales/en.yml
|
182
|
-
- test/fixtures/sass_project/config/routes.rb
|
183
|
-
- test/fixtures/sass_project/db/seeds.rb
|
184
|
-
- test/fixtures/sass_project/doc/README_FOR_APP
|
185
|
-
- test/fixtures/sass_project/lib/tasks/.gitkeep
|
186
|
-
- test/fixtures/sass_project/log/.gitkeep
|
187
|
-
- test/fixtures/sass_project/public/404.html
|
188
|
-
- test/fixtures/sass_project/public/422.html
|
189
|
-
- test/fixtures/sass_project/public/500.html
|
190
|
-
- test/fixtures/sass_project/public/favicon.ico
|
191
|
-
- test/fixtures/sass_project/public/index.html
|
192
|
-
- test/fixtures/sass_project/public/robots.txt
|
193
|
-
- test/fixtures/sass_project/script/rails
|
194
|
-
- test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep
|
195
|
-
- test/fixtures/sass_project/vendor/plugins/.gitkeep
|
196
|
-
- test/fixtures/scss_project/.gitignore
|
197
|
-
- test/fixtures/scss_project/Gemfile
|
198
|
-
- test/fixtures/scss_project/README
|
199
|
-
- test/fixtures/scss_project/Rakefile
|
200
|
-
- test/fixtures/scss_project/app/assets/images/1x1.png
|
201
|
-
- test/fixtures/scss_project/app/assets/images/rails.png
|
202
|
-
- test/fixtures/scss_project/app/assets/javascripts/application.js
|
203
|
-
- test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss
|
204
|
-
- test/fixtures/scss_project/app/assets/stylesheets/application.css.scss
|
205
|
-
- test/fixtures/scss_project/app/assets/stylesheets/css_application.css
|
206
|
-
- test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss
|
207
|
-
- test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss
|
208
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass
|
209
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss
|
210
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
211
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass
|
212
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss
|
213
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss
|
214
|
-
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css
|
215
|
-
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css
|
216
|
-
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss
|
217
|
-
- test/fixtures/scss_project/app/controllers/application_controller.rb
|
218
|
-
- test/fixtures/scss_project/app/helpers/application_helper.rb
|
219
|
-
- test/fixtures/scss_project/app/mailers/.gitkeep
|
220
|
-
- test/fixtures/scss_project/app/models/.gitkeep
|
221
|
-
- test/fixtures/scss_project/app/views/layouts/application.html.erb
|
222
|
-
- test/fixtures/scss_project/config.ru
|
223
|
-
- test/fixtures/scss_project/config/application.rb
|
224
|
-
- test/fixtures/scss_project/config/boot.rb
|
225
|
-
- test/fixtures/scss_project/config/database.yml
|
226
|
-
- test/fixtures/scss_project/config/environment.rb
|
227
|
-
- test/fixtures/scss_project/config/environments/development.rb
|
228
|
-
- test/fixtures/scss_project/config/environments/production.rb
|
229
|
-
- test/fixtures/scss_project/config/environments/test.rb
|
230
|
-
- test/fixtures/scss_project/config/initializers/backtrace_silencers.rb
|
231
|
-
- test/fixtures/scss_project/config/initializers/inflections.rb
|
232
|
-
- test/fixtures/scss_project/config/initializers/mime_types.rb
|
233
|
-
- test/fixtures/scss_project/config/initializers/secret_token.rb
|
234
|
-
- test/fixtures/scss_project/config/initializers/session_store.rb
|
235
|
-
- test/fixtures/scss_project/config/initializers/wrap_parameters.rb
|
236
|
-
- test/fixtures/scss_project/config/locales/en.yml
|
237
|
-
- test/fixtures/scss_project/config/routes.rb
|
238
|
-
- test/fixtures/scss_project/db/seeds.rb
|
239
|
-
- test/fixtures/scss_project/doc/README_FOR_APP
|
240
|
-
- test/fixtures/scss_project/lib/tasks/.gitkeep
|
241
|
-
- test/fixtures/scss_project/log/.gitkeep
|
242
|
-
- test/fixtures/scss_project/public/404.html
|
243
|
-
- test/fixtures/scss_project/public/422.html
|
244
|
-
- test/fixtures/scss_project/public/500.html
|
245
|
-
- test/fixtures/scss_project/public/favicon.ico
|
246
|
-
- test/fixtures/scss_project/public/index.html
|
247
|
-
- test/fixtures/scss_project/public/robots.txt
|
248
|
-
- test/fixtures/scss_project/script/rails
|
249
|
-
- test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep
|
250
|
-
- test/fixtures/scss_project/vendor/plugins/.gitkeep
|
251
|
-
- test/sass_rails_logger_test.rb
|
252
|
-
- test/sass_rails_test.rb
|
253
|
-
- test/support/sass_rails_test_case.rb
|
254
|
-
- test/test_helper.rb
|
255
|
-
has_rdoc: true
|
256
|
-
homepage: ""
|
257
|
-
licenses: []
|
258
|
-
|
50
|
+
homepage: https://github.com/rails/sass-rails
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
metadata: {}
|
259
54
|
post_install_message:
|
260
55
|
rdoc_options: []
|
261
|
-
|
262
|
-
require_paths:
|
56
|
+
require_paths:
|
263
57
|
- lib
|
264
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
265
|
-
|
266
|
-
requirements:
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
267
60
|
- - ">="
|
268
|
-
- !ruby/object:Gem::Version
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
version: "0"
|
273
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
|
-
none: false
|
275
|
-
requirements:
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
276
65
|
- - ">="
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
|
279
|
-
segments:
|
280
|
-
- 0
|
281
|
-
version: "0"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
282
68
|
requirements: []
|
283
|
-
|
284
|
-
rubyforge_project: sass-rails
|
285
|
-
rubygems_version: 1.3.7
|
69
|
+
rubygems_version: 3.0.1
|
286
70
|
signing_key:
|
287
|
-
specification_version:
|
71
|
+
specification_version: 4
|
288
72
|
summary: Sass adapter for the Rails asset pipeline.
|
289
|
-
test_files:
|
290
|
-
- test/fixtures/engine_project/.gitignore
|
291
|
-
- test/fixtures/engine_project/Gemfile
|
292
|
-
- test/fixtures/engine_project/README.rdoc
|
293
|
-
- test/fixtures/engine_project/Rakefile
|
294
|
-
- test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep
|
295
|
-
- test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js
|
296
|
-
- test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css
|
297
|
-
- test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb
|
298
|
-
- test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb
|
299
|
-
- test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb
|
300
|
-
- test/fixtures/engine_project/config/routes.rb
|
301
|
-
- test/fixtures/engine_project/db/seeds.rb
|
302
|
-
- test/fixtures/engine_project/engine_project.gemspec
|
303
|
-
- test/fixtures/engine_project/lib/engine_project.rb
|
304
|
-
- test/fixtures/engine_project/lib/engine_project/engine.rb
|
305
|
-
- test/fixtures/engine_project/lib/engine_project/version.rb
|
306
|
-
- test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake
|
307
|
-
- test/fixtures/engine_project/script/rails
|
308
|
-
- test/fixtures/engine_project/test/dummy/Rakefile
|
309
|
-
- test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js
|
310
|
-
- test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css
|
311
|
-
- test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb
|
312
|
-
- test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb
|
313
|
-
- test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep
|
314
|
-
- test/fixtures/engine_project/test/dummy/app/models/.gitkeep
|
315
|
-
- test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb
|
316
|
-
- test/fixtures/engine_project/test/dummy/config.ru
|
317
|
-
- test/fixtures/engine_project/test/dummy/config/application.rb
|
318
|
-
- test/fixtures/engine_project/test/dummy/config/boot.rb
|
319
|
-
- test/fixtures/engine_project/test/dummy/config/database.yml
|
320
|
-
- test/fixtures/engine_project/test/dummy/config/environment.rb
|
321
|
-
- test/fixtures/engine_project/test/dummy/config/environments/development.rb
|
322
|
-
- test/fixtures/engine_project/test/dummy/config/environments/production.rb
|
323
|
-
- test/fixtures/engine_project/test/dummy/config/environments/test.rb
|
324
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb
|
325
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb
|
326
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb
|
327
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb
|
328
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb
|
329
|
-
- test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb
|
330
|
-
- test/fixtures/engine_project/test/dummy/config/locales/en.yml
|
331
|
-
- test/fixtures/engine_project/test/dummy/config/routes.rb
|
332
|
-
- test/fixtures/engine_project/test/dummy/db/seeds.rb
|
333
|
-
- test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep
|
334
|
-
- test/fixtures/engine_project/test/dummy/log/.gitkeep
|
335
|
-
- test/fixtures/engine_project/test/dummy/public/404.html
|
336
|
-
- test/fixtures/engine_project/test/dummy/public/422.html
|
337
|
-
- test/fixtures/engine_project/test/dummy/public/500.html
|
338
|
-
- test/fixtures/engine_project/test/dummy/public/favicon.ico
|
339
|
-
- test/fixtures/engine_project/test/dummy/script/rails
|
340
|
-
- test/fixtures/sass_project/.gitignore
|
341
|
-
- test/fixtures/sass_project/Gemfile
|
342
|
-
- test/fixtures/sass_project/README
|
343
|
-
- test/fixtures/sass_project/Rakefile
|
344
|
-
- test/fixtures/sass_project/app/assets/images/rails.png
|
345
|
-
- test/fixtures/sass_project/app/assets/javascripts/application.js
|
346
|
-
- test/fixtures/sass_project/app/assets/stylesheets/application.css
|
347
|
-
- test/fixtures/sass_project/app/controllers/application_controller.rb
|
348
|
-
- test/fixtures/sass_project/app/helpers/application_helper.rb
|
349
|
-
- test/fixtures/sass_project/app/mailers/.gitkeep
|
350
|
-
- test/fixtures/sass_project/app/models/.gitkeep
|
351
|
-
- test/fixtures/sass_project/app/views/layouts/application.html.erb
|
352
|
-
- test/fixtures/sass_project/config.ru
|
353
|
-
- test/fixtures/sass_project/config/application.rb
|
354
|
-
- test/fixtures/sass_project/config/boot.rb
|
355
|
-
- test/fixtures/sass_project/config/database.yml
|
356
|
-
- test/fixtures/sass_project/config/environment.rb
|
357
|
-
- test/fixtures/sass_project/config/environments/development.rb
|
358
|
-
- test/fixtures/sass_project/config/environments/production.rb
|
359
|
-
- test/fixtures/sass_project/config/environments/test.rb
|
360
|
-
- test/fixtures/sass_project/config/initializers/backtrace_silencers.rb
|
361
|
-
- test/fixtures/sass_project/config/initializers/inflections.rb
|
362
|
-
- test/fixtures/sass_project/config/initializers/mime_types.rb
|
363
|
-
- test/fixtures/sass_project/config/initializers/secret_token.rb
|
364
|
-
- test/fixtures/sass_project/config/initializers/session_store.rb
|
365
|
-
- test/fixtures/sass_project/config/initializers/wrap_parameters.rb
|
366
|
-
- test/fixtures/sass_project/config/locales/en.yml
|
367
|
-
- test/fixtures/sass_project/config/routes.rb
|
368
|
-
- test/fixtures/sass_project/db/seeds.rb
|
369
|
-
- test/fixtures/sass_project/doc/README_FOR_APP
|
370
|
-
- test/fixtures/sass_project/lib/tasks/.gitkeep
|
371
|
-
- test/fixtures/sass_project/log/.gitkeep
|
372
|
-
- test/fixtures/sass_project/public/404.html
|
373
|
-
- test/fixtures/sass_project/public/422.html
|
374
|
-
- test/fixtures/sass_project/public/500.html
|
375
|
-
- test/fixtures/sass_project/public/favicon.ico
|
376
|
-
- test/fixtures/sass_project/public/index.html
|
377
|
-
- test/fixtures/sass_project/public/robots.txt
|
378
|
-
- test/fixtures/sass_project/script/rails
|
379
|
-
- test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep
|
380
|
-
- test/fixtures/sass_project/vendor/plugins/.gitkeep
|
381
|
-
- test/fixtures/scss_project/.gitignore
|
382
|
-
- test/fixtures/scss_project/Gemfile
|
383
|
-
- test/fixtures/scss_project/README
|
384
|
-
- test/fixtures/scss_project/Rakefile
|
385
|
-
- test/fixtures/scss_project/app/assets/images/1x1.png
|
386
|
-
- test/fixtures/scss_project/app/assets/images/rails.png
|
387
|
-
- test/fixtures/scss_project/app/assets/javascripts/application.js
|
388
|
-
- test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss
|
389
|
-
- test/fixtures/scss_project/app/assets/stylesheets/application.css.scss
|
390
|
-
- test/fixtures/scss_project/app/assets/stylesheets/css_application.css
|
391
|
-
- test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss
|
392
|
-
- test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss
|
393
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass
|
394
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss
|
395
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss
|
396
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass
|
397
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss
|
398
|
-
- test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss
|
399
|
-
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css
|
400
|
-
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css
|
401
|
-
- test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss
|
402
|
-
- test/fixtures/scss_project/app/controllers/application_controller.rb
|
403
|
-
- test/fixtures/scss_project/app/helpers/application_helper.rb
|
404
|
-
- test/fixtures/scss_project/app/mailers/.gitkeep
|
405
|
-
- test/fixtures/scss_project/app/models/.gitkeep
|
406
|
-
- test/fixtures/scss_project/app/views/layouts/application.html.erb
|
407
|
-
- test/fixtures/scss_project/config.ru
|
408
|
-
- test/fixtures/scss_project/config/application.rb
|
409
|
-
- test/fixtures/scss_project/config/boot.rb
|
410
|
-
- test/fixtures/scss_project/config/database.yml
|
411
|
-
- test/fixtures/scss_project/config/environment.rb
|
412
|
-
- test/fixtures/scss_project/config/environments/development.rb
|
413
|
-
- test/fixtures/scss_project/config/environments/production.rb
|
414
|
-
- test/fixtures/scss_project/config/environments/test.rb
|
415
|
-
- test/fixtures/scss_project/config/initializers/backtrace_silencers.rb
|
416
|
-
- test/fixtures/scss_project/config/initializers/inflections.rb
|
417
|
-
- test/fixtures/scss_project/config/initializers/mime_types.rb
|
418
|
-
- test/fixtures/scss_project/config/initializers/secret_token.rb
|
419
|
-
- test/fixtures/scss_project/config/initializers/session_store.rb
|
420
|
-
- test/fixtures/scss_project/config/initializers/wrap_parameters.rb
|
421
|
-
- test/fixtures/scss_project/config/locales/en.yml
|
422
|
-
- test/fixtures/scss_project/config/routes.rb
|
423
|
-
- test/fixtures/scss_project/db/seeds.rb
|
424
|
-
- test/fixtures/scss_project/doc/README_FOR_APP
|
425
|
-
- test/fixtures/scss_project/lib/tasks/.gitkeep
|
426
|
-
- test/fixtures/scss_project/log/.gitkeep
|
427
|
-
- test/fixtures/scss_project/public/404.html
|
428
|
-
- test/fixtures/scss_project/public/422.html
|
429
|
-
- test/fixtures/scss_project/public/500.html
|
430
|
-
- test/fixtures/scss_project/public/favicon.ico
|
431
|
-
- test/fixtures/scss_project/public/index.html
|
432
|
-
- test/fixtures/scss_project/public/robots.txt
|
433
|
-
- test/fixtures/scss_project/script/rails
|
434
|
-
- test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep
|
435
|
-
- test/fixtures/scss_project/vendor/plugins/.gitkeep
|
436
|
-
- test/sass_rails_logger_test.rb
|
437
|
-
- test/sass_rails_test.rb
|
438
|
-
- test/support/sass_rails_test_case.rb
|
439
|
-
- test/test_helper.rb
|
73
|
+
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
rvm:
|
2
|
-
- 1.8.7
|
3
|
-
- 1.9.2
|
4
|
-
- 1.9.3
|
5
|
-
- ree
|
6
|
-
- jruby
|
7
|
-
- rbx
|
8
|
-
script: bundle exec rake test
|
9
|
-
notifications:
|
10
|
-
email: false
|
11
|
-
campfire:
|
12
|
-
secure: "CGWvthGkBKNnTnk9YSmf9AXKoiRI33fCl5D3jU4nx3cOPu6kv2R9nMjt9EAo\nOuS4Q85qNSf4VNQ2cUPNiNYSWQ+XiTfivKvDUw/QW9r1FejYyeWarMsSBWA+\n0fADjF1M2dkDIVLgYPfwoXEv7l+j654F1KLKB69F0F/netwP9CQ="
|
data/CHANGELOG.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
CHANGELOG
|
2
|
-
=========
|
3
|
-
|
4
|
-
3.1.5.rc.1 (Oct 16, 2011)
|
5
|
-
---------------------
|
6
|
-
* Several bug fixes
|
7
|
-
* Performance and bug fixes when compressing stylesheets
|
8
|
-
* Update dependency to latest sass stable release to fix caching issues.
|
9
|
-
|
10
|
-
3.1.2 (Sept 15, 2011)
|
11
|
-
---------------------
|
12
|
-
|
13
|
-
* Add asset-data-url helper for base-64 encoding of assets within stylesheets.
|
14
|
-
* Add explicit dependency on sprockets.
|
15
|
-
|
16
|
-
3.1.1 (Sept 13, 2011)
|
17
|
-
---------------------
|
18
|
-
|
19
|
-
* Add explicit version dependency on tilt.
|
20
|
-
* Add MIT License.
|
data/Gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in sass-rails.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
# Depend on the latest Rails 3.2
|
7
|
-
gem "rails", :git => 'git://github.com/rails/rails.git', :branch => '3-2-stable'
|
8
|
-
|
9
|
-
gem "sqlite3"
|
10
|
-
|
11
|
-
gem "sfl", "~> 2.0"
|
12
|
-
gem "mocha"
|
13
|
-
|
14
|
-
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
|
15
|
-
# gem 'ruby-debug'
|
16
|
-
# gem 'ruby-debug19'
|
17
|
-
|
data/README.markdown
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
# Official Ruby-on-Rails Integration with Sass
|
2
|
-
|
3
|
-
This gem provides official integration for ruby on rails projects with the Sass stylesheet language.
|
4
|
-
|
5
|
-
## Installing
|
6
|
-
|
7
|
-
Since rails 3.1, new rails projects will be already configured to use Sass. If you are upgrading to rails 3.1 you will need to add the following to your Gemfile:
|
8
|
-
|
9
|
-
gem 'sass-rails'
|
10
|
-
|
11
|
-
## Configuration
|
12
|
-
|
13
|
-
To configure Sass via rails set use `config.sass` in your
|
14
|
-
application and/or environment files to set configuration
|
15
|
-
properties that will be passed to Sass.
|
16
|
-
|
17
|
-
### Example
|
18
|
-
|
19
|
-
MyProject::Application.configure do
|
20
|
-
config.sass.line_comments = false
|
21
|
-
config.sass.syntax = :nested
|
22
|
-
end
|
23
|
-
|
24
|
-
## Important Note
|
25
|
-
|
26
|
-
Sprockets provides some directives that are placed inside of comments called `require`, `require_tree`, and
|
27
|
-
`require_self`. **<span style="color:#c00">DO NOT USE THEM IN YOUR SASS/SCSS FILES.</span>** They are very
|
28
|
-
primitive and do not work well with Sass files. Instead, use Sass's native `@import` directive which
|
29
|
-
`sass-rails` has customized to integrate with the conventions of your rails projects.
|
30
|
-
|
31
|
-
### Options
|
32
|
-
|
33
|
-
The [list of supported options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options) can be found on the Sass Website with the following caveats:
|
34
|
-
|
35
|
-
1. Output compression is now controlled via the `config.assets.compress` boolean option instead of through the `:style` option.
|
36
|
-
2. `:never_update` - This option is not supported. Instead set `config.assets.enabled = false`
|
37
|
-
3. `:always_update` - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files.
|
38
|
-
4. `:always_check` - This option is not supported. Sprockets always checks in development.
|
39
|
-
5. `:syntax` - This is determined by the file's extensions.
|
40
|
-
6. `:filename` - This is determined by the file's name.
|
41
|
-
7. `:line` - This is provided by the template handler.
|
42
|
-
|
43
|
-
## Features
|
44
|
-
|
45
|
-
* **Glob Imports**. When in rails, there is a special import syntax that allows you to
|
46
|
-
glob imports relative to the folder of the stylesheet that is doing the importing.
|
47
|
-
E.g. `@import "mixins/*"` will import all the files in the mixins folder and
|
48
|
-
`@import "mixins/**/*"` will import all the files in the mixins tree.
|
49
|
-
Any valid ruby glob may be used. The imports are sorted alphabetically.
|
50
|
-
**NOTE:** It is recommended that you only use this when importing pure library
|
51
|
-
files (containing mixins and variables) because it is difficult to control the
|
52
|
-
cascade ordering for imports that contain styles using this approach.
|
53
|
-
|
54
|
-
* **Asset Helpers**. When using the asset pipeline, paths to assets must be rewritten.
|
55
|
-
When referencing assets use the following asset helpers (underscored in Ruby, hyphenated
|
56
|
-
in Sass):
|
57
|
-
|
58
|
-
* `asset-path($relative-asset-path, $asset-class)` - Returns a string to the asset.
|
59
|
-
For example: `asset-path("rails.png", image)` becomes `"/assets/rails.png"`
|
60
|
-
* `asset-url($relative-asset-path, $asset-class)` - Returns url reference to the asset.
|
61
|
-
For example: `asset-url("rails.png", image)` becomes `url(/assets/rails.png)`
|
62
|
-
* As a convenience, for each of the following asset classes there are
|
63
|
-
corresponding `-path` and `-url` helpers:
|
64
|
-
image, font, video, audio, javascript, stylesheet.
|
65
|
-
For example: `image-url("rails.png")` becomes `url(/assets/rails.png)` and
|
66
|
-
`image-path("rails.png")` becomes `"/assets/rails.png"`.
|
67
|
-
* `asset-data-url($relative-asset-path)` - Returns url reference to the Base64-encoded asset at the specified path.
|
68
|
-
For example: `asset-data-url("rails.png")` becomes `url(data:image/png;base64,iVBORw0K...)`
|
69
|
-
|
70
|
-
## Running Tests
|
71
|
-
|
72
|
-
$ bundle install
|
73
|
-
$ bundle exec rake test
|
74
|
-
|
75
|
-
If you need to test against local gems, use Bundler's gem :path option in the Gemfile and also edit `test/support/test_helper.rb` and tell the tests where the gem is checked out.
|
data/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require "rails/generators/named_base"
|
2
|
-
|
3
|
-
module Sass
|
4
|
-
module Generators
|
5
|
-
class AssetsGenerator < ::Rails::Generators::NamedBase
|
6
|
-
source_root File.expand_path("../templates", __FILE__)
|
7
|
-
|
8
|
-
def copy_sass
|
9
|
-
template "stylesheet.css.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.sass")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|