css-annotate 1.0.0 → 1.1.0

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 2010-11-11 version 1.1.0
2
+
3
+ Added shortcut option -c, same as --commented.
4
+
5
+
1
6
  2010-11-11 version 1.0.0
2
7
 
3
8
  Changed options so --commented shows only commented rules.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -7,7 +7,7 @@ if filename = ARGV[0]
7
7
  options[:syntax] = ARGV[i + 1].to_sym
8
8
  ARGV[i,2] = []
9
9
  end
10
- options[:all] = !ARGV.delete("--commented")
10
+ options[:all] = !(ARGV.delete("--commented") || ARGV.delete("-c"))
11
11
  $stdout << CSS::Annotate.new(ARGV[0], options).to_html
12
12
  else
13
13
  print <<-TEXT
@@ -15,7 +15,7 @@ Usage:
15
15
  css-annotate [options] filename
16
16
 
17
17
  Options:
18
- --commented Show only rules preceded by a comment
18
+ -c --commented Show only rules preceded by a comment
19
19
  --syntax [name] Either sass or scss (default)
20
20
 
21
21
  TEXT
@@ -21,7 +21,6 @@ module CSS
21
21
  attr_reader :filename, :options, :rows
22
22
 
23
23
  def annotate
24
- $stderr << options.inspect
25
24
  engine = Sass::Engine.new(IO.read(filename), options)
26
25
  tree = engine.to_tree
27
26
  tree.perform!(Sass::Environment.new)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css-annotate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Assaf Arkin
@@ -77,7 +77,7 @@ licenses: []
77
77
  post_install_message: To get started, run the command css-annotate
78
78
  rdoc_options:
79
79
  - --title
80
- - css-annotate 1.0.0
80
+ - css-annotate 1.1.0
81
81
  - --main
82
82
  - README.rdoc
83
83
  - --webcvs