sassfmt 0.1.1 → 0.1.2
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 +7 -3
- data/lib/sassfmt.rb +1 -1
- data/lib/sassfmt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b4da5bdd9a274d86ff0b1265892b06b42dc84c7
|
|
4
|
+
data.tar.gz: 5acb6f3242ecae478a738a05ad736815d1f56984
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
17
|
+
### Format a .sass file and print to stdout
|
|
18
18
|
|
|
19
19
|
$ sassfmt /path/to/your/style.sass
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
### Format a .sass file and overwrite the original with it
|
|
22
22
|
|
|
23
|
-
$
|
|
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|
|
data/lib/sassfmt/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|