coderay 1.0.0.846rc2 → 1.0.0.864rc3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/coderay CHANGED
@@ -54,17 +54,35 @@ end
54
54
  def commands
55
55
  puts <<-COMMANDS
56
56
  general:
57
- highlight code highlighting (default command)
58
- stylesheet print the CSS stylesheet with the given name
57
+ highlight code highlighting (default command, optional)
58
+ stylesheet print the CSS stylesheet with the given name (aliases: style, css)
59
59
 
60
60
  about:
61
- list [of] list all available plugins (or just the scanners|encoders)
61
+ list [of] list all available plugins (or just the scanners|encoders|styles|filetypes)
62
62
  commands print this list
63
63
  help show some help
64
64
  version print CodeRay version
65
65
  COMMANDS
66
66
  end
67
67
 
68
+ def print_list_of plugin_host
69
+ plugins = plugin_host.all_plugins.map do |plugin|
70
+ info = " #{plugin.plugin_id}: #{plugin.title}"
71
+
72
+ aliases = (plugin.aliases - [:default]).map { |key| "-#{key}" }.sort_by { |key| key.size }
73
+ if plugin.respond_to?(:file_extension) || !aliases.empty?
74
+ additional_info = []
75
+ additional_info << aliases.join(', ') unless aliases.empty?
76
+ info << " (#{additional_info.join('; ')})"
77
+ end
78
+
79
+ info << ' <-- default' if plugin.aliases.include? :default
80
+
81
+ info
82
+ end
83
+ puts plugins.sort
84
+ end
85
+
68
86
  if option? '-v', '--version'
69
87
  version
70
88
  end
@@ -87,28 +105,32 @@ when 'highlight', nil
87
105
  when /^ff?$/
88
106
  input_file, output_file, = *names
89
107
  when /^f-f?$/
90
- input_file, output_filetype, output_file, = *names
108
+ input_file, output_format, output_file, = *names
91
109
  when /^-ff?$/
92
- input_filetype, input_file, output_file, = *names
110
+ input_lang, input_file, output_file, = *names
93
111
  when /^-f-f?$/
94
- input_filetype, input_file, output_filetype, output_file, = *names
112
+ input_lang, input_file, output_format, output_file, = *names
95
113
  when /^--?f?$/
96
- input_filetype, output_filetype, output_file, = *names
114
+ input_lang, output_format, output_file, = *names
97
115
  else
98
- raise signature
116
+ $stdout = $stderr
117
+ help
118
+ puts
119
+ puts "Unknown parameter order: #{args.join ' '}, expected: [-language] [input] [-format] [output]"
120
+ exit 1
99
121
  end
100
122
 
101
123
  if input_file
102
- input_filetype ||= CodeRay::FileType.fetch input_file, :text, true
124
+ input_lang ||= CodeRay::FileType.fetch input_file, :text, true
103
125
  end
104
126
 
105
127
  if output_file
106
- output_filetype ||= CodeRay::FileType[output_file]
128
+ output_format ||= CodeRay::FileType[output_file]
107
129
  else
108
- output_filetype ||= :terminal
130
+ output_format ||= :terminal
109
131
  end
110
132
 
111
- output_filetype = :page if output_filetype.to_s == 'html'
133
+ output_format = :page if output_format.to_s == 'html'
112
134
 
113
135
  if input_file
114
136
  input = File.read input_file
@@ -124,9 +146,10 @@ when 'highlight', nil
124
146
  $stdout.sync = true
125
147
  $stdout
126
148
  end
127
- CodeRay.encode(input, input_filetype, output_filetype, :out => file)
149
+ CodeRay.encode(input, input_lang, output_format, :out => file)
128
150
  file.puts
129
151
  rescue CodeRay::PluginHost::PluginNotFound => boom
152
+ $stdout = $stderr
130
153
  if boom.message[/CodeRay::(\w+)s could not load plugin :?(.*?): /]
131
154
  puts "I don't know the #$1 \"#$2\"."
132
155
  else
@@ -134,32 +157,46 @@ when 'highlight', nil
134
157
  end
135
158
  # puts "I don't know this plugin: #{boom.message[/Could not load plugin (.*?): /, 1]}."
136
159
  rescue CodeRay::Scanners::Scanner::ScanError # FIXME: rescue Errno::EPIPE
137
- # ignore
160
+ # this is sometimes raised by pagers; ignore [TODO: wtf?]
138
161
  ensure
139
- file.close
162
+ file.close if output_file
140
163
  end
141
164
  end
142
- when 'list'
165
+ when 'li', 'list'
143
166
  arg = args.first && args.first.downcase
144
167
  if [nil, 's', 'sc', 'scanner', 'scanners'].include? arg
145
168
  puts 'input languages (Scanners):'
146
- scanners = CodeRay::Scanners.all_plugins.map do |plugin|
147
- aliases = (plugin.aliases - [nil]).map { |key| "-#{key}" }.sort_by { |key| key.size }
148
- " #{plugin.lang}: #{plugin.title}#{" (.#{plugin.file_extension}; #{aliases.join(', ')})" unless aliases.empty?}"
149
- end
150
- puts scanners.sort
151
- puts
169
+ print_list_of CodeRay::Scanners
152
170
  end
153
171
 
154
172
  if [nil, 'e', 'en', 'enc', 'encoder', 'encoders'].include? arg
155
173
  puts 'output formats (Encoders):'
156
- encoders = CodeRay::Encoders.all_plugins.map do |plugin|
157
- aliases = (plugin.aliases - [nil]).map { |key| "-#{key}" }.sort_by { |key| key.size }
158
- " #{plugin.plugin_id}: #{plugin.title}#{" (.#{plugin.file_extension}; #{aliases.join(', ')})" unless aliases.empty?}"
174
+ print_list_of CodeRay::Encoders
175
+ end
176
+
177
+ if [nil, 'st', 'style', 'styles'].include? arg
178
+ puts 'CSS themes for HTML output (Styles):'
179
+ print_list_of CodeRay::Styles
180
+ end
181
+
182
+ if [nil, 'f', 'ft', 'file', 'filetype', 'filetypes'].include? arg
183
+ puts 'recognized file types:'
184
+
185
+ filetypes = Hash.new { |h, k| h[k] = [] }
186
+ CodeRay::FileType::TypeFromExt.inject filetypes do |types, (ext, type)|
187
+ types[type.to_s] << ".#{ext}"
188
+ types
189
+ end
190
+ CodeRay::FileType::TypeFromName.inject filetypes do |types, (name, type)|
191
+ types[type.to_s] << name
192
+ types
193
+ end
194
+
195
+ filetypes.sort.each do |type, exts|
196
+ puts " #{type}: #{exts.sort_by { |ext| ext.size }.join(', ')}"
159
197
  end
160
- puts encoders.sort
161
198
  end
162
- when 'stylesheet'
199
+ when 'stylesheet', 'style', 'css'
163
200
  puts CodeRay::Encoders[:html]::CSS.new(args.first).stylesheet
164
201
  when 'commands'
165
202
  commands
@@ -21,8 +21,8 @@ module Encoders
21
21
  require 'json'
22
22
  rescue LoadError
23
23
  begin
24
- require 'rubygems'
25
- gem "json"
24
+ require 'rubygems' unless defined? Gem
25
+ gem 'json'
26
26
  require 'json'
27
27
  rescue LoadError
28
28
  $stderr.puts "The JSON encoder needs the JSON library.\n" \
@@ -61,7 +61,7 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; }
61
61
  .class { color:#B06; font-weight:bold }
62
62
  .class-variable { color:#369 }
63
63
  .color { color:#0A0 }
64
- .comment { color:#888 }
64
+ .comment { color:#777 }
65
65
  .comment .char { color:#444 }
66
66
  .comment .delimiter { color:#444 }
67
67
  .complex { color:#A08 }
@@ -83,7 +83,7 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; }
83
83
  .hex { color:#02b }
84
84
  .imaginary { color:#f00 }
85
85
  .include { color:#B44; font-weight:bold }
86
- .inline { background-color: hsla(0,0%,0%,0.1); color: black }
86
+ .inline { background-color: hsla(0,0%,0%,0.07); color: black }
87
87
  .inline-delimiter { font-weight: bold; color: #666 }
88
88
  .instance-variable { color:#33B }
89
89
  .integer { color:#00D }
@@ -104,16 +104,16 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; }
104
104
  .regexp .content { color:#808 }
105
105
  .regexp .delimiter { color:#404 }
106
106
  .regexp .modifier { color:#C2C }
107
- .regexp { background-color:hsla(300,100%,50%,0.09); }
107
+ .regexp { background-color:hsla(300,100%,50%,0.06); }
108
108
  .reserved { color:#080; font-weight:bold }
109
109
  .shell .content { color:#2B2 }
110
110
  .shell .delimiter { color:#161 }
111
- .shell { background-color:hsla(120,100%,50%,0.09); }
111
+ .shell { background-color:hsla(120,100%,50%,0.06); }
112
112
  .string .char { color: #b0b }
113
113
  .string .content { color: #D20 }
114
114
  .string .delimiter { color: #710 }
115
115
  .string .modifier { color: #E40 }
116
- .string { background-color:hsla(0,100%,50%,0.08); }
116
+ .string { background-color:hsla(0,100%,50%,0.05); }
117
117
  .symbol .content { color:#A60 }
118
118
  .symbol .delimiter { color:#630 }
119
119
  .symbol { color:#A60 }
@@ -122,8 +122,8 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; }
122
122
  .value { color: #088; }
123
123
  .variable { color:#037 }
124
124
 
125
- .insert { background: hsla(120,100%,50%,0.1) }
126
- .delete { background: hsla(0,100%,50%,0.1) }
125
+ .insert { background: hsla(120,100%,50%,0.12) }
126
+ .delete { background: hsla(0,100%,50%,0.12) }
127
127
  .change { color: #bbf; background: #007; }
128
128
  .head { color: #f8f; background: #505 }
129
129
  .head .filename { color: white; }
@@ -64,12 +64,7 @@ module CodeRay
64
64
  #
65
65
  # options are passed to the encoder.
66
66
  def encode encoder, options = {}
67
- unless encoder.is_a? Encoders::Encoder
68
- if encoder.respond_to? :to_sym
69
- encoder_class = Encoders[encoder]
70
- end
71
- encoder = encoder_class.new options
72
- end
67
+ encoder = Encoders[encoder].new options if encoder.respond_to? :to_sym
73
68
  encoder.encode_tokens self, options
74
69
  end
75
70
 
@@ -83,15 +78,11 @@ module CodeRay
83
78
  # For example, if you call +tokens.html+, the HTML encoder
84
79
  # is used to highlight the tokens.
85
80
  def method_missing meth, options = {}
86
- encode_with meth, options
81
+ encode meth, options
87
82
  rescue PluginHost::PluginNotFound
88
83
  super
89
84
  end
90
85
 
91
- def encode_with encoder, options = {}
92
- Encoders[encoder].new(options).encode_tokens self
93
- end
94
-
95
86
  # Returns the tokens compressed by joining consecutive
96
87
  # tokens of the same kind.
97
88
  #
@@ -0,0 +1,38 @@
1
+ module CodeRay
2
+
3
+ class TokensProxy < Struct.new :input, :lang, :options, :block
4
+
5
+ def encode encoder, options = {}
6
+ if encoder.respond_to? :to_sym
7
+ CodeRay.encode(input, lang, encoder, options)
8
+ else
9
+ encoder.encode_tokens tokens, options
10
+ end
11
+ end
12
+
13
+ def method_missing method, *args, &blk
14
+ encode method, *args
15
+ rescue PluginHost::PluginNotFound
16
+ tokens.send(method, *args, &blk)
17
+ end
18
+
19
+ def tokens
20
+ @tokens ||= scanner.tokenize(input)
21
+ end
22
+
23
+ def scanner
24
+ @scanner ||= CodeRay.scanner(lang, options, &block)
25
+ end
26
+
27
+ def each *args, &blk
28
+ tokens.each(*args, &blk)
29
+ self
30
+ end
31
+
32
+ def count
33
+ tokens.count
34
+ end
35
+
36
+ end
37
+
38
+ end
data/lib/coderay.rb CHANGED
@@ -134,6 +134,7 @@ module CodeRay
134
134
 
135
135
  # Tokens
136
136
  autoload :Tokens, 'coderay/tokens'
137
+ autoload :TokensProxy, 'coderay/tokens_proxy'
137
138
  autoload :TokenKinds, 'coderay/token_kinds'
138
139
 
139
140
  # Plugin system
@@ -159,7 +160,7 @@ module CodeRay
159
160
  # See also demo/demo_simple.
160
161
  def scan code, lang, options = {}, &block
161
162
  # FIXME: return a proxy for direct-stream encoding
162
- scanner(lang, options, &block).tokenize code
163
+ TokensProxy.new code, lang, options, block
163
164
  end
164
165
 
165
166
  # Scans +filename+ (a path to a code file) with the Scanner for +lang+.
@@ -176,7 +177,7 @@ module CodeRay
176
177
  def scan_file filename, lang = :auto, options = {}, &block
177
178
  lang = FileType.fetch filename, :text, true if lang == :auto
178
179
  code = File.read filename
179
- scan code, lang, options = {}, &block
180
+ scan code, lang, options, &block
180
181
  end
181
182
 
182
183
  # Encode a string.
@@ -26,7 +26,7 @@ class BasicTest < Test::Unit::TestCase
26
26
  ].flatten
27
27
  def test_simple_scan
28
28
  assert_nothing_raised do
29
- assert_equal RUBY_TEST_TOKENS, CodeRay.scan(RUBY_TEST_CODE, :ruby).to_ary
29
+ assert_equal RUBY_TEST_TOKENS, CodeRay.scan(RUBY_TEST_CODE, :ruby).tokens
30
30
  end
31
31
  end
32
32
 
@@ -10,7 +10,7 @@ class ExamplesTest < Test::Unit::TestCase
10
10
  div = CodeRay.scan('puts "Hello, world!"', :ruby).div
11
11
  assert_equal <<-DIV, div
12
12
  <div class="CodeRay">
13
- <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.08)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, world!</span><span style="color:#710">&quot;</span></span></pre></div>
13
+ <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, world!</span><span style="color:#710">&quot;</span></span></pre></div>
14
14
  </div>
15
15
  DIV
16
16
 
@@ -27,7 +27,7 @@ end
27
27
  <a href="#n3" name="n3">3</a>
28
28
  </pre></td>
29
29
  <td class="code"><pre><span style="color:#00D">5</span>.times <span style="color:#080;font-weight:bold">do</span>
30
- puts <span style="background-color:hsla(0,100%,50%,0.08)"><span style="color:#710">'</span><span style="color:#D20">Hello, world!</span><span style="color:#710">'</span></span>
30
+ puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">Hello, world!</span><span style="color:#710">'</span></span>
31
31
  <span style="color:#080;font-weight:bold">end</span></pre></td>
32
32
  </tr></table>
33
33
  DIV
@@ -48,6 +48,8 @@ end
48
48
 
49
49
  # keep scanned tokens for later use
50
50
  tokens = CodeRay.scan('{ "just": "an", "example": 42 }', :json)
51
+ assert_kind_of CodeRay::TokensProxy, tokens
52
+
51
53
  assert_equal ["{", :operator, " ", :space, :begin_group, :key,
52
54
  "\"", :delimiter, "just", :content, "\"", :delimiter,
53
55
  :end_group, :key, ":", :operator, " ", :space,
@@ -56,8 +58,8 @@ end
56
58
  " ", :space, :begin_group, :key, "\"", :delimiter,
57
59
  "example", :content, "\"", :delimiter, :end_group, :key,
58
60
  ":", :operator, " ", :space, "42", :integer,
59
- " ", :space, "}", :operator], tokens
60
-
61
+ " ", :space, "}", :operator], tokens.tokens
62
+
61
63
  # produce a token statistic
62
64
  assert_equal <<-STATISTIC, tokens.statistic
63
65
 
@@ -84,7 +86,7 @@ Token Types (7):
84
86
  STATISTIC
85
87
 
86
88
  # count the tokens
87
- assert_equal 26, tokens.count # => 26
89
+ assert_equal 26, tokens.count
88
90
 
89
91
  # produce a HTML div, but with CSS classes
90
92
  div = tokens.div(:css => :class)
@@ -120,7 +122,7 @@ Token Types (7):
120
122
  div = ruby_highlighter.encode('puts "Hello, world!"')
121
123
  assert_equal <<-DIV, div
122
124
  <div class="CodeRay">
123
- <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.08)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, world!</span><span style="color:#710">&quot;</span></span></pre></div>
125
+ <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, world!</span><span style="color:#710">&quot;</span></span></pre></div>
124
126
  </div>
125
127
  DIV
126
128
  end
@@ -17,11 +17,11 @@ class BasicTest < Test::Unit::TestCase
17
17
 
18
18
  def test_for_redcloth
19
19
  require 'coderay/for_redcloth'
20
- assert_equal "<p><span lang=\"ruby\" class=\"CodeRay\">puts <span style=\"background-color:hsla(0,100%,50%,0.08)\"><span style=\"color:#710\">&quot;</span><span style=\"color:#D20\">Hello, World!</span><span style=\"color:#710\">&quot;</span></span></span></p>",
20
+ assert_equal "<p><span lang=\"ruby\" class=\"CodeRay\">puts <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">&quot;</span><span style=\"color:#D20\">Hello, World!</span><span style=\"color:#710\">&quot;</span></span></span></p>",
21
21
  RedCloth.new('@[ruby]puts "Hello, World!"@').to_html
22
22
  assert_equal <<-BLOCKCODE.chomp,
23
23
  <div lang="ruby" class="CodeRay">
24
- <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.08)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, World!</span><span style="color:#710">&quot;</span></span></pre></div>
24
+ <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">&quot;</span><span style="color:#D20">Hello, World!</span><span style="color:#710">&quot;</span></span></pre></div>
25
25
  </div>
26
26
  BLOCKCODE
27
27
  RedCloth.new('bc[ruby]. puts "Hello, World!"').to_html
metadata CHANGED
@@ -1,129 +1,126 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.864rc3
4
5
  prerelease: 9
5
- version: 1.0.0.846rc2
6
6
  platform: ruby
7
- authors:
8
- - Kornelius Kalnbach
7
+ authors:
8
+ - Kornelius Kalnbach
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-09-08 00:00:00 Z
12
+ date: 2011-09-19 00:00:00.000000000Z
14
13
  dependencies: []
15
-
16
- description: Fast and easy syntax highlighting for selected languages, written in Ruby. Comes with RedCloth integration and LOC counter.
17
- email:
18
- - murphy@rubychan.de
19
- executables:
20
- - coderay
14
+ description: Fast and easy syntax highlighting for selected languages, written in
15
+ Ruby. Comes with RedCloth integration and LOC counter.
16
+ email:
17
+ - murphy@rubychan.de
18
+ executables:
19
+ - coderay
21
20
  extensions: []
22
-
23
- extra_rdoc_files:
24
- - README_INDEX.rdoc
25
- files:
26
- - lib/coderay.rb
27
- - lib/coderay/duo.rb
28
- - lib/coderay/encoder.rb
29
- - lib/coderay/for_redcloth.rb
30
- - lib/coderay/scanner.rb
31
- - lib/coderay/style.rb
32
- - lib/coderay/token_kinds.rb
33
- - lib/coderay/tokens.rb
34
- - lib/coderay/version.rb
35
- - lib/coderay/encoders/_map.rb
36
- - lib/coderay/encoders/comment_filter.rb
37
- - lib/coderay/encoders/count.rb
38
- - lib/coderay/encoders/debug.rb
39
- - lib/coderay/encoders/div.rb
40
- - lib/coderay/encoders/filter.rb
41
- - lib/coderay/encoders/html.rb
42
- - lib/coderay/encoders/json.rb
43
- - lib/coderay/encoders/lines_of_code.rb
44
- - lib/coderay/encoders/null.rb
45
- - lib/coderay/encoders/page.rb
46
- - lib/coderay/encoders/span.rb
47
- - lib/coderay/encoders/statistic.rb
48
- - lib/coderay/encoders/terminal.rb
49
- - lib/coderay/encoders/text.rb
50
- - lib/coderay/encoders/token_kind_filter.rb
51
- - lib/coderay/encoders/xml.rb
52
- - lib/coderay/encoders/yaml.rb
53
- - lib/coderay/encoders/html/css.rb
54
- - lib/coderay/encoders/html/numbering.rb
55
- - lib/coderay/encoders/html/output.rb
56
- - lib/coderay/helpers/file_type.rb
57
- - lib/coderay/helpers/gzip.rb
58
- - lib/coderay/helpers/plugin.rb
59
- - lib/coderay/helpers/word_list.rb
60
- - lib/coderay/scanners/_map.rb
61
- - lib/coderay/scanners/c.rb
62
- - lib/coderay/scanners/clojure.rb
63
- - lib/coderay/scanners/cpp.rb
64
- - lib/coderay/scanners/css.rb
65
- - lib/coderay/scanners/debug.rb
66
- - lib/coderay/scanners/delphi.rb
67
- - lib/coderay/scanners/diff.rb
68
- - lib/coderay/scanners/erb.rb
69
- - lib/coderay/scanners/groovy.rb
70
- - lib/coderay/scanners/haml.rb
71
- - lib/coderay/scanners/html.rb
72
- - lib/coderay/scanners/java.rb
73
- - lib/coderay/scanners/java_script.rb
74
- - lib/coderay/scanners/json.rb
75
- - lib/coderay/scanners/php.rb
76
- - lib/coderay/scanners/python.rb
77
- - lib/coderay/scanners/raydebug.rb
78
- - lib/coderay/scanners/ruby.rb
79
- - lib/coderay/scanners/sql.rb
80
- - lib/coderay/scanners/text.rb
81
- - lib/coderay/scanners/xml.rb
82
- - lib/coderay/scanners/yaml.rb
83
- - lib/coderay/scanners/java/builtin_types.rb
84
- - lib/coderay/scanners/ruby/patterns.rb
85
- - lib/coderay/scanners/ruby/string_state.rb
86
- - lib/coderay/styles/_map.rb
87
- - lib/coderay/styles/alpha.rb
88
- - Rakefile
89
- - README_INDEX.rdoc
90
- - LICENSE
91
- - test/functional/basic.rb
92
- - test/functional/examples.rb
93
- - test/functional/for_redcloth.rb
94
- - test/functional/suite.rb
95
- - bin/coderay
21
+ extra_rdoc_files:
22
+ - README_INDEX.rdoc
23
+ files:
24
+ - lib/coderay/duo.rb
25
+ - lib/coderay/encoder.rb
26
+ - lib/coderay/encoders/_map.rb
27
+ - lib/coderay/encoders/comment_filter.rb
28
+ - lib/coderay/encoders/count.rb
29
+ - lib/coderay/encoders/debug.rb
30
+ - lib/coderay/encoders/div.rb
31
+ - lib/coderay/encoders/filter.rb
32
+ - lib/coderay/encoders/html/css.rb
33
+ - lib/coderay/encoders/html/numbering.rb
34
+ - lib/coderay/encoders/html/output.rb
35
+ - lib/coderay/encoders/html.rb
36
+ - lib/coderay/encoders/json.rb
37
+ - lib/coderay/encoders/lines_of_code.rb
38
+ - lib/coderay/encoders/null.rb
39
+ - lib/coderay/encoders/page.rb
40
+ - lib/coderay/encoders/span.rb
41
+ - lib/coderay/encoders/statistic.rb
42
+ - lib/coderay/encoders/terminal.rb
43
+ - lib/coderay/encoders/text.rb
44
+ - lib/coderay/encoders/token_kind_filter.rb
45
+ - lib/coderay/encoders/xml.rb
46
+ - lib/coderay/encoders/yaml.rb
47
+ - lib/coderay/for_redcloth.rb
48
+ - lib/coderay/helpers/file_type.rb
49
+ - lib/coderay/helpers/gzip.rb
50
+ - lib/coderay/helpers/plugin.rb
51
+ - lib/coderay/helpers/word_list.rb
52
+ - lib/coderay/scanner.rb
53
+ - lib/coderay/scanners/_map.rb
54
+ - lib/coderay/scanners/c.rb
55
+ - lib/coderay/scanners/clojure.rb
56
+ - lib/coderay/scanners/cpp.rb
57
+ - lib/coderay/scanners/css.rb
58
+ - lib/coderay/scanners/debug.rb
59
+ - lib/coderay/scanners/delphi.rb
60
+ - lib/coderay/scanners/diff.rb
61
+ - lib/coderay/scanners/erb.rb
62
+ - lib/coderay/scanners/groovy.rb
63
+ - lib/coderay/scanners/haml.rb
64
+ - lib/coderay/scanners/html.rb
65
+ - lib/coderay/scanners/java/builtin_types.rb
66
+ - lib/coderay/scanners/java.rb
67
+ - lib/coderay/scanners/java_script.rb
68
+ - lib/coderay/scanners/json.rb
69
+ - lib/coderay/scanners/php.rb
70
+ - lib/coderay/scanners/python.rb
71
+ - lib/coderay/scanners/raydebug.rb
72
+ - lib/coderay/scanners/ruby/patterns.rb
73
+ - lib/coderay/scanners/ruby/string_state.rb
74
+ - lib/coderay/scanners/ruby.rb
75
+ - lib/coderay/scanners/sql.rb
76
+ - lib/coderay/scanners/text.rb
77
+ - lib/coderay/scanners/xml.rb
78
+ - lib/coderay/scanners/yaml.rb
79
+ - lib/coderay/style.rb
80
+ - lib/coderay/styles/_map.rb
81
+ - lib/coderay/styles/alpha.rb
82
+ - lib/coderay/token_kinds.rb
83
+ - lib/coderay/tokens.rb
84
+ - lib/coderay/tokens_proxy.rb
85
+ - lib/coderay/version.rb
86
+ - lib/coderay.rb
87
+ - Rakefile
88
+ - README_INDEX.rdoc
89
+ - LICENSE
90
+ - test/functional/basic.rb
91
+ - test/functional/examples.rb
92
+ - test/functional/for_redcloth.rb
93
+ - test/functional/suite.rb
94
+ - bin/coderay
96
95
  homepage: http://coderay.rubychan.de
97
96
  licenses: []
98
-
99
97
  post_install_message:
100
- rdoc_options:
101
- - -SNw2
102
- - -mREADME_INDEX.rdoc
103
- - -t CodeRay Documentation
104
- require_paths:
105
- - lib
106
- required_ruby_version: !ruby/object:Gem::Requirement
98
+ rdoc_options:
99
+ - -SNw2
100
+ - -mREADME_INDEX.rdoc
101
+ - -t CodeRay Documentation
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
107
105
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: 1.8.7
112
- required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.8.7
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  none: false
114
- requirements:
115
- - - ">"
116
- - !ruby/object:Gem::Version
117
- version: 1.3.1
112
+ requirements:
113
+ - - ! '>'
114
+ - !ruby/object:Gem::Version
115
+ version: 1.3.1
118
116
  requirements: []
119
-
120
117
  rubyforge_project: coderay
121
- rubygems_version: 1.8.9
118
+ rubygems_version: 1.8.10
122
119
  signing_key:
123
120
  specification_version: 3
124
121
  summary: Fast syntax highlighting for selected languages.
125
- test_files:
126
- - test/functional/basic.rb
127
- - test/functional/examples.rb
128
- - test/functional/for_redcloth.rb
129
- - test/functional/suite.rb
122
+ test_files:
123
+ - test/functional/basic.rb
124
+ - test/functional/examples.rb
125
+ - test/functional/for_redcloth.rb
126
+ - test/functional/suite.rb