saseline 0.0.2 → 0.0.3

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: ea3d19d2e5500a7013cdcf9f5645fbcf15cedf38
4
- data.tar.gz: a9496e0de9f4a03d806274b3966138f4db8cf04d
3
+ metadata.gz: 8a4d1a363547e82571e88678eb274dead6b7f170
4
+ data.tar.gz: a1b63dc354bee63c58c72d98a0a62f3d1ea4d26c
5
5
  SHA512:
6
- metadata.gz: c386abe1bd97d92b236cc3a7a37e87fe0825b240923c1a2e1808373f95d5cbd9eac21a0a33328d6e16465f82206142ae921f3b6e6c557db682516cb0fa77aa05
7
- data.tar.gz: 891a5ac8d05a21e902c7e5a0d554e83ac85badef8da1c0f3c11b5f5fa6ad45e1394d778e83f726c31370a9df83a05785e62344133a84378bac312de4117590a7
6
+ metadata.gz: 9f95151cfca71426af3d6997cb8a617d343d9fd84d1139d9edd2aa7487ad5f41abd497875c3ef269cc7487e21cf34c6bcc77c2aff13f28f7c8b299591ce48baf
7
+ data.tar.gz: c9d8a06a3274f3b590608cabae42219bd87160dcd9074a4893609050c3a0a55347757f1fec6d2c32461c08a159e2c067cad10fa2a162408d48c3b157aba2eb0e
data/README.md CHANGED
@@ -1,29 +1,27 @@
1
1
  # saseline
2
2
 
3
- TODO: Write a gem description
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
- ## Installation
5
+ Install it yourself as:
6
6
 
7
- Add this line to your application's Gemfile:
7
+ $ gem install saseline
8
8
 
9
- gem 'saseline'
9
+ ## Usage
10
10
 
11
- And then execute:
11
+ Call it from anywhere and pass in one or more filenames, e.g.
12
12
 
13
- $ bundle
13
+ saseline main.css.scss
14
14
 
15
- Or install it yourself as:
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
- $ gem install saseline
17
+ It works for pure css files too.
18
18
 
19
- ## Usage
19
+ saseline main.css
20
+
21
+ and arrays
20
22
 
21
- TODO: Write usage instructions here
23
+ saseline main.css sidebars.css foobars.css
22
24
 
23
- ## Contributing
25
+ and even path expansion :-)
24
26
 
25
- 1. Fork it ( http://github.com/<my-github-username>/saseline/fork )
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
@@ -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
- system "rm #{filename}"
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."
@@ -1,3 +1,3 @@
1
1
  module Saseline
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-07 00:00:00.000000000 Z
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.1.11
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