stasis-compass 0.1.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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +52 -0
- data/Rakefile +1 -0
- data/lib/stasis-compass.rb +12 -0
- data/lib/stasis-compass/version.rb +3 -0
- data/stasis-compass.gemspec +22 -0
- metadata +75 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Jeremy Ebler
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# Stasis-Compass
|
2
|
+
|
3
|
+
Configures Stasis (with SCSS/SASS) to load compass mixins.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your stasis project's Gemfile:
|
8
|
+
|
9
|
+
gem 'stasis-compass'
|
10
|
+
|
11
|
+
You may remove:
|
12
|
+
|
13
|
+
gem 'compass'
|
14
|
+
gem 'stasis'
|
15
|
+
|
16
|
+
Because they will be automatically included in your bundle, or you may keep them in your gemfile to pull a specific version of compass / stasis. This should work with any compass >= 0.10.1 and stasis >= 0.1.9.
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle exec stasis
|
21
|
+
|
22
|
+
as usual to compile your project.
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
In a SCSS or SASS file, import and include mixins:
|
27
|
+
|
28
|
+
```scss
|
29
|
+
// style.css.scss
|
30
|
+
@import "compass/css3/opacity";
|
31
|
+
|
32
|
+
div {
|
33
|
+
@include opacity(0.5);
|
34
|
+
}
|
35
|
+
```
|
36
|
+
```sass
|
37
|
+
// style.css.sass
|
38
|
+
@import "compass/css3/opacity"
|
39
|
+
|
40
|
+
div
|
41
|
+
@include opacity(0.5)
|
42
|
+
```
|
43
|
+
|
44
|
+
See the [Compass Reference](http://compass-style.org/reference/compass/) for more information.
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
1. Fork it
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
52
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'stasis-compass/version'
|
2
|
+
require 'compass'
|
3
|
+
require 'stasis'
|
4
|
+
|
5
|
+
module StasisCompass
|
6
|
+
if ENV['VERBOSE']
|
7
|
+
puts "StasisCompass -- Compass.sass_engine_options:"
|
8
|
+
puts Compass.sass_engine_options.to_yaml
|
9
|
+
end
|
10
|
+
::Stasis::Options.set_template_option 'scss', ::Compass.sass_engine_options
|
11
|
+
::Stasis::Options.set_template_option 'sass', ::Compass.sass_engine_options
|
12
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'stasis-compass/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "stasis-compass"
|
8
|
+
gem.version = StasisCompass::VERSION
|
9
|
+
gem.authors = ["Jeremy Ebler"]
|
10
|
+
gem.email = ["jebler@gmail.com"]
|
11
|
+
gem.description = %q{Configure Stass for Compass}
|
12
|
+
gem.summary = %q{Load and configure stasis to work with scss and compass }
|
13
|
+
gem.homepage = "https://github.com/whitehat101/stasis-compass"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency 'stasis', '>= 0.1.9'
|
21
|
+
gem.add_dependency 'compass', '>= 0.10.1'
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stasis-compass
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jeremy Ebler
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: stasis
|
16
|
+
requirement: &70357026946060 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.1.9
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70357026946060
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: compass
|
27
|
+
requirement: &70357026945360 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.10.1
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70357026945360
|
36
|
+
description: Configure Stass for Compass
|
37
|
+
email:
|
38
|
+
- jebler@gmail.com
|
39
|
+
executables: []
|
40
|
+
extensions: []
|
41
|
+
extra_rdoc_files: []
|
42
|
+
files:
|
43
|
+
- .gitignore
|
44
|
+
- Gemfile
|
45
|
+
- LICENSE.txt
|
46
|
+
- README.md
|
47
|
+
- Rakefile
|
48
|
+
- lib/stasis-compass.rb
|
49
|
+
- lib/stasis-compass/version.rb
|
50
|
+
- stasis-compass.gemspec
|
51
|
+
homepage: https://github.com/whitehat101/stasis-compass
|
52
|
+
licenses: []
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 1.8.10
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: Load and configure stasis to work with scss and compass
|
75
|
+
test_files: []
|