csswaxer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +5 -1
- data/VERSION +1 -1
- data/lib/csswaxer.rb +3 -3
- metadata +59 -58
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b2763f1e2c3f62b301b09e3bd8c50f56be513439
|
4
|
+
data.tar.gz: 01b5f824deff951b514e0043c0f1ef4587bfcb49
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 85b61c3db6b410fc3715b6e3e26eca18f7af6839f2c3a601e422ca1072414da6b3c3d379c35c3d0dbec59e9a70dc3d2b6de597a36b0f38a4aa98532c8f9f7465
|
7
|
+
data.tar.gz: 346aa728435970786204b8da6a48c1f0b95690d9818b955a63410cbba1d0caffcb0d55f85c8a38d8c1efdbaa5f773a2c5b67df155e50901e326cf47c412106ad
|
data/README.md
CHANGED
@@ -4,6 +4,7 @@ Ruby command-line tool that prettifies CSS files grouping lines by property rath
|
|
4
4
|
|
5
5
|
## Installation (from GemCutter) ##
|
6
6
|
|
7
|
+
sudo gem update --system # in order to install dependencies
|
7
8
|
gem install csswaxer
|
8
9
|
|
9
10
|
## Examples ##
|
@@ -29,6 +30,9 @@ Ruby command-line tool that prettifies CSS files grouping lines by property rath
|
|
29
30
|
|
30
31
|
## History ##
|
31
32
|
|
33
|
+
v0.0.9 2014/06/05
|
34
|
+
Bump CSS Parser, which is now available as a gem again. Include iconv which is required.
|
35
|
+
|
32
36
|
v0.0.8 2010/08/03
|
33
37
|
CSS Parser is no (longer) available as a gem in version 1.1.0. Fixed by creating a new gem called css_parser_1.1.0 and requiring that one instead
|
34
38
|
|
@@ -43,7 +47,7 @@ v0.0.5 2010/04/02
|
|
43
47
|
|
44
48
|
v0.0.4 2010/03/31
|
45
49
|
Fixed a bug; now also respects !important statements
|
46
|
-
|
50
|
+
|
47
51
|
v0.0.3 2010/03/28
|
48
52
|
Fixed a bug; now also works on remote CSS files
|
49
53
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/csswaxer.rb
CHANGED
@@ -53,14 +53,14 @@ module CssWaxer
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
# Finally write to CSS, ordered by family
|
58
58
|
css_families.each do |family, properties|
|
59
59
|
next unless merged.keys.any?{|property| properties.include? property}
|
60
60
|
puts titleize(family)
|
61
61
|
properties.each do |property|
|
62
62
|
next unless merged.has_key? property
|
63
|
-
puts "/* #{property}
|
63
|
+
puts "\n/* #{property} */\n"
|
64
64
|
merged[property].each do |values, selectors|
|
65
65
|
important = " !important" if values[1]
|
66
66
|
puts "#{selectors.join(", ")}\t{#{property}: #{values[0]}#{important}}"
|
@@ -72,7 +72,7 @@ module CssWaxer
|
|
72
72
|
unless merged.empty?
|
73
73
|
puts titleize("Unrecognized properties")
|
74
74
|
merged.each do |property, values_and_selectors|
|
75
|
-
puts "/* #{property}
|
75
|
+
puts "\n/* #{property} */\n"
|
76
76
|
values_and_selectors.each do |values, selectors|
|
77
77
|
important = " !important" if values[1]
|
78
78
|
puts "#{selectors.join(", ")}\t{#{property}: #{values[0]}#{important}}"
|
metadata
CHANGED
@@ -1,89 +1,90 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: csswaxer
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 8
|
10
|
-
version: 0.0.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.9
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Claudio Baccigalupo
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
11
|
+
date: 2010-04-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: css_parser
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.3.5
|
20
|
+
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.3.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: iconv
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
27
31
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 1
|
33
|
-
- 0
|
34
|
-
version: 1.1.0
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.4
|
35
34
|
type: :runtime
|
36
|
-
|
37
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.0.4
|
41
|
+
description: 'CSS Waxer refactors CSS files bringing the focus on properties, rather
|
42
|
+
than on selectors. Typically, CSS files are written by groups of selectors, you
|
43
|
+
first specify all the properties of <body>, then those of <h1>, #header, and so
|
44
|
+
on. This makes it hard to catch a glimpse of the overall style of a site, such as
|
45
|
+
the entire list of colors used, the fonts, or the dimensions. CSS Waxer reorders
|
46
|
+
the lines of a CSS files so that properties are grouped together by family. In this
|
47
|
+
way, you can rapidly check together all the fonts used, the colors, backgrounds,
|
48
|
+
layouts and so on for the whole site.'
|
38
49
|
email: claudiob@gmail.com
|
39
|
-
executables:
|
50
|
+
executables:
|
40
51
|
- csswaxer
|
41
52
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
53
|
+
extra_rdoc_files:
|
44
54
|
- LICENSE
|
45
55
|
- README.md
|
46
|
-
files:
|
56
|
+
files:
|
57
|
+
- LICENSE
|
47
58
|
- README.md
|
48
59
|
- Rakefile
|
49
|
-
- LICENSE
|
50
60
|
- VERSION
|
51
61
|
- bin/csswaxer
|
52
62
|
- lib/csswaxer.rb
|
53
63
|
- lib/example.css
|
54
|
-
has_rdoc: true
|
55
64
|
homepage: http://github.com/claudiob/csswaxer
|
56
65
|
licenses: []
|
57
|
-
|
66
|
+
metadata: {}
|
58
67
|
post_install_message:
|
59
|
-
rdoc_options:
|
60
|
-
- --charset=UTF-8
|
61
|
-
require_paths:
|
68
|
+
rdoc_options:
|
69
|
+
- "--charset=UTF-8"
|
70
|
+
require_paths:
|
62
71
|
- lib
|
63
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
-
|
65
|
-
requirements:
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
66
74
|
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
version: "0"
|
72
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
75
79
|
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
version: "0"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
81
82
|
requirements: []
|
82
|
-
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version:
|
84
|
+
rubygems_version: 2.2.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 3
|
87
|
-
summary: Command-line tool that makes stylesheet files more readable, grouping lines
|
87
|
+
summary: Command-line tool that makes stylesheet files more readable, grouping lines
|
88
|
+
by property (typography, color, layout, etc.) rather than by selector
|
88
89
|
test_files: []
|
89
|
-
|
90
|
+
has_rdoc:
|