sassfmt 0.1.1 → 0.1.2

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: 9ccee59eed79cb807ca0f9dcd7a6149d278dea4f
4
- data.tar.gz: 405d957f694a190fb82b78967a04fb58fc4a9e8c
3
+ metadata.gz: 0b4da5bdd9a274d86ff0b1265892b06b42dc84c7
4
+ data.tar.gz: 5acb6f3242ecae478a738a05ad736815d1f56984
5
5
  SHA512:
6
- metadata.gz: c423460c3827c3a173fe9f241003c1f0a5cd6a228dd0390f4271dc71227a790272c36e484338d43ae66911e486028b4894d7ff226ed4071a01d76298fedfcc73
7
- data.tar.gz: 78f5ddab4f2e3f3f0e4e728ca93f599b32e523b0e830d2b25abed7784be3a160a83ce34a65bdc049c6be19a3fffd57dc499542b9d2807c75ec6bfbf15902dedd
6
+ metadata.gz: e0e7c1cd6a4b61f313a720f8245b1b9070cde4f843d288ef7de0f29eb74662d0c623fd2efce97019cee75d7edc4031189fed97e89aeb23ed747ddabbfe26e7d9
7
+ data.tar.gz: e8ff144a6522fcf6c1b32f182a23622f796ca66d1fcfb9aae8ffd9efa341f42b5d1018a28fa8e1d993b1c0c9e406f6b6b90bf2e32bf3b535377624675abb35c4
data/README.md CHANGED
@@ -14,13 +14,17 @@ Twitter's [RECESS]. (Sassfmt actually uses [scss-lint]'s updated fork available
14
14
 
15
15
  ## Usage
16
16
 
17
- To format a .sass file and print to stdout:
17
+ ### Format a .sass file and print to stdout
18
18
 
19
19
  $ sassfmt /path/to/your/style.sass
20
20
 
21
- or
21
+ ### Format a .sass file and overwrite the original with it
22
22
 
23
- $ cat /path/to/your/style.sass | sassfmt
23
+ $ sassfmt -w /path/to/your/style.sass
24
+
25
+ ### Format stdin and print to stdout
26
+
27
+ $ sassfmt
24
28
 
25
29
  ## Development
26
30
 
data/lib/sassfmt.rb CHANGED
@@ -35,7 +35,7 @@ transition-timing-function background-clip backface-visibility resize
35
35
  appearance user-select interpolation-mode direction marks page set-link-source
36
36
  unicode-bidi speak).map.with_index { |p, i| [p, i] }.to_h
37
37
 
38
- PROPERTY_REGEXP = /^\s*([a-zA-Z0-9-]+)\s*:/
38
+ PROPERTY_REGEXP = /^\s*([a-zA-Z0-9-]+)\s*:\s+/
39
39
 
40
40
  def self.format(sass)
41
41
  sass.lines.chunk do |line|
@@ -1,3 +1,3 @@
1
1
  module Sassfmt
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassfmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Utkarsh Kukreti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler