sass_mult 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +4 -0
- data/bin/sass_mult +33 -0
- metadata +87 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 SpinGo
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/bin/sass_mult
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# The command line Sass parser.
|
3
|
+
|
4
|
+
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
5
|
+
require 'sass'
|
6
|
+
require 'micro-optparse'
|
7
|
+
require 'sass/exec'
|
8
|
+
|
9
|
+
parser = Parser.new do |p|
|
10
|
+
p.banner = <<-EOF
|
11
|
+
Sass-Mult. Usage:
|
12
|
+
|
13
|
+
sass_mult [options] (infile[:outfile]...) -- [sass-options]
|
14
|
+
|
15
|
+
Where sass-options excludes the [INPUT] [OUTPUT] paramters. (sass_mult will append them for each in:out compile pair)
|
16
|
+
EOF
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
separator = ARGV.index('--') || ARGV.length
|
21
|
+
our_args = ARGV[0..(separator - 1)]
|
22
|
+
sass_args = ARGV[(separator + 1)..(ARGV.length - 1)] || []
|
23
|
+
|
24
|
+
parser.process!(our_args)
|
25
|
+
pairs = our_args # unparsed leftovers
|
26
|
+
|
27
|
+
pairs.each do |pair|
|
28
|
+
infile, outfile = pair.split(":")
|
29
|
+
outfile ||= infile.gsub(/sass$/, 'css')
|
30
|
+
STDERR.puts "Compiling #{infile} => #{outfile}..."
|
31
|
+
Sass::Exec::Sass.new(sass_args + [infile, outfile]).parse
|
32
|
+
end
|
33
|
+
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sass_mult
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tim Harper
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-06-19 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sass
|
16
|
+
requirement: &70336106341620 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70336106341620
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: micro-optparse
|
27
|
+
requirement: &70336106340980 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.1.5
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70336106340980
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &70336106340280 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.6'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70336106340280
|
47
|
+
description: SASS command line executable only supports compiling one file at a time.
|
48
|
+
This is inefficient if compiling batches of SASS files. This is a simple wrapper
|
49
|
+
that extends the executable in such a way that SASS need not be reinitialized on
|
50
|
+
each compile
|
51
|
+
email: tim.harper@spingo.com
|
52
|
+
executables:
|
53
|
+
- sass_mult
|
54
|
+
extensions: []
|
55
|
+
extra_rdoc_files:
|
56
|
+
- MIT-LICENSE
|
57
|
+
- README.md
|
58
|
+
files:
|
59
|
+
- bin/sass_mult
|
60
|
+
- MIT-LICENSE
|
61
|
+
- README.md
|
62
|
+
homepage: http://github.com/spingo/sass_mult
|
63
|
+
licenses: []
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options: []
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 1.8.7
|
83
|
+
signing_key:
|
84
|
+
specification_version: 3
|
85
|
+
summary: Efficiently many sass files
|
86
|
+
test_files: []
|
87
|
+
has_rdoc:
|