rouge 0.0.11 → 0.0.12

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.
@@ -13,6 +13,8 @@ module Rouge
13
13
  end
14
14
 
15
15
  load_dir = Pathname.new(__FILE__).dirname
16
+ load load_dir.join('rouge/version.rb')
17
+
16
18
  load load_dir.join('rouge/text_analyzer.rb')
17
19
  load load_dir.join('rouge/token.rb')
18
20
  load load_dir.join('rouge/lexer.rb')
@@ -12,6 +12,11 @@ module Rouge
12
12
  default_task :highlight
13
13
 
14
14
  def self.start(argv=ARGV, *a)
15
+ if argv.include? '-v' or argv.include? '--version'
16
+ puts Rouge.version
17
+ exit 0
18
+ end
19
+
15
20
  unless %w(highlight style).include?(argv.first)
16
21
  argv.unshift 'highlight'
17
22
  end
@@ -1,3 +1,6 @@
1
+ # stdlib
2
+ require 'set'
3
+
1
4
  module Rouge
2
5
  module Lexers
3
6
  class CommonLisp < RegexLexer
@@ -1,5 +1,5 @@
1
1
  module Rouge
2
2
  def self.version
3
- "0.0.11"
3
+ "0.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rouge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: