saseline 0.0.2 → 0.0.3
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 +4 -4
- data/README.md +14 -16
- data/bin/saseline +3 -2
- data/lib/saseline/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a4d1a363547e82571e88678eb274dead6b7f170
|
4
|
+
data.tar.gz: a1b63dc354bee63c58c72d98a0a62f3d1ea4d26c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f95151cfca71426af3d6997cb8a617d343d9fd84d1139d9edd2aa7487ad5f41abd497875c3ef269cc7487e21cf34c6bcc77c2aff13f28f7c8b299591ce48baf
|
7
|
+
data.tar.gz: c9d8a06a3274f3b590608cabae42219bd87160dcd9074a4893609050c3a0a55347757f1fec6d2c32461c08a159e2c067cad10fa2a162408d48c3b157aba2eb0e
|
data/README.md
CHANGED
@@ -1,29 +1,27 @@
|
|
1
1
|
# saseline
|
2
2
|
|
3
|
-
|
3
|
+
A tiny commandline wrapper for sass-convert to make conversion of curly brace `scss/scss` files into indented `.sass` files a snap.
|
4
4
|
|
5
|
-
|
5
|
+
Install it yourself as:
|
6
6
|
|
7
|
-
|
7
|
+
$ gem install saseline
|
8
8
|
|
9
|
-
|
9
|
+
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
Call it from anywhere and pass in one or more filenames, e.g.
|
12
12
|
|
13
|
-
|
13
|
+
saseline main.css.scss
|
14
14
|
|
15
|
-
|
15
|
+
This will convert the file to sass indented syntax and save it as `main.sass` and then delete the original scss file.
|
16
16
|
|
17
|
-
|
17
|
+
It works for pure css files too.
|
18
18
|
|
19
|
-
|
19
|
+
saseline main.css
|
20
|
+
|
21
|
+
and arrays
|
20
22
|
|
21
|
-
|
23
|
+
saseline main.css sidebars.css foobars.css
|
22
24
|
|
23
|
-
|
25
|
+
and even path expansion :-)
|
24
26
|
|
25
|
-
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
27
|
+
saseline *.scss
|
data/bin/saseline
CHANGED
@@ -3,8 +3,9 @@
|
|
3
3
|
ARGV.each do |filename|
|
4
4
|
sass_filename = filename.chomp('.scss').chomp('.css') + '.sass'
|
5
5
|
puts "Converting #{filename} to #{sass_filename}"
|
6
|
-
system("sass-convert #{filename} #{sass_filename}")
|
7
|
-
|
6
|
+
if system("sass-convert #{filename} #{sass_filename}")
|
7
|
+
system "rm #{filename}"
|
8
|
+
end
|
8
9
|
end
|
9
10
|
|
10
11
|
puts "Done. Processed #{ARGV.count} files."
|
data/lib/saseline/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saseline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niels Buus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.0.14
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: A tiny commandline wrapper for the sass-convert utility tailored for turning
|