coderay 0.8.270 → 0.8.273
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/README +31 -33
- data/bin/coderay +3 -3
- data/lib/coderay/helpers/plugin.rb +2 -2
- metadata +2 -2
data/README
CHANGED
|
@@ -18,14 +18,12 @@ And with line numbers.
|
|
|
18
18
|
* is what everybody should have on their website
|
|
19
19
|
* solves all your problems and makes the girls run after you
|
|
20
20
|
|
|
21
|
-
Version: 0.8.
|
|
21
|
+
Version: 0.8.1
|
|
22
22
|
Author:: murphy (Kornelius Kalnbach)
|
|
23
23
|
Contact:: murphy rubychan de
|
|
24
24
|
Website:: coderay.rubychan.de[http://coderay.rubychan.de]
|
|
25
25
|
License:: GNU LGPL; see LICENSE file in the main directory.
|
|
26
|
-
Subversion:: $Id: README
|
|
27
|
-
|
|
28
|
-
-----
|
|
26
|
+
Subversion:: $Id: README 272 2009-01-01 13:57:08Z murphy $
|
|
29
27
|
|
|
30
28
|
== Installation
|
|
31
29
|
|
|
@@ -33,17 +31,10 @@ You need RubyGems[http://rubyforge.org/frs/?group_id=126].
|
|
|
33
31
|
|
|
34
32
|
% gem install coderay
|
|
35
33
|
|
|
36
|
-
Since CodeRay is still in beta stage, nightly buildy may be useful:
|
|
37
|
-
|
|
38
|
-
% gem install coderay -rs rd.cYcnus.de/coderay
|
|
39
|
-
|
|
40
34
|
|
|
41
35
|
=== Dependencies
|
|
42
36
|
|
|
43
|
-
CodeRay needs Ruby 1.8 and
|
|
44
|
-
strscan[http://www.ruby-doc.org/stdlib/libdoc/strscan/rdoc/index.htm]
|
|
45
|
-
library (part of the standard library.) It should also run with Ruby 1.9 and
|
|
46
|
-
yarv.
|
|
37
|
+
CodeRay needs Ruby 1.8.6 or later. It should also run with Ruby 1.9 and JRuby.
|
|
47
38
|
|
|
48
39
|
|
|
49
40
|
== Example Usage
|
|
@@ -63,8 +54,6 @@ See CodeRay.
|
|
|
63
54
|
Please report errors in this documentation to <coderay cycnus de>.
|
|
64
55
|
|
|
65
56
|
|
|
66
|
-
-----
|
|
67
|
-
|
|
68
57
|
== Credits
|
|
69
58
|
|
|
70
59
|
=== Special Thanks to
|
|
@@ -72,27 +61,34 @@ Please report errors in this documentation to <coderay cycnus de>.
|
|
|
72
61
|
* licenser (Heinz N. Gies) for ending my QBasic career, inventing the Coder
|
|
73
62
|
project and the input/output plugin system.
|
|
74
63
|
CodeRay would not exist without him.
|
|
64
|
+
* bovi (Daniel Bovensiepen) for helping me out on various occasions.
|
|
75
65
|
|
|
76
66
|
=== Thanks to
|
|
77
67
|
|
|
78
68
|
* Caleb Clausen for writing RubyLexer (see
|
|
79
69
|
http://rubyforge.org/projects/rubylexer) and lots of very interesting mail
|
|
80
70
|
traffic
|
|
81
|
-
* birkenfeld (Georg Brandl) and mitsuhiku (Arnim Ronacher) for PyKleur.
|
|
82
|
-
guys rock!
|
|
71
|
+
* birkenfeld (Georg Brandl) and mitsuhiku (Arnim Ronacher) for PyKleur, now pygments.
|
|
72
|
+
You guys rock!
|
|
83
73
|
* Jamis Buck for writing Syntax (see http://rubyforge.org/projects/syntax)
|
|
84
74
|
I got some useful ideas from it.
|
|
85
75
|
* Doug Kearns and everyone else who worked on ruby.vim - it not only helped me
|
|
86
76
|
coding CodeRay, but also gave me a wonderful target to reach for the Ruby
|
|
87
77
|
scanner.
|
|
88
|
-
* everyone who
|
|
89
|
-
http://www.infhu.de/mx
|
|
90
|
-
* iGEL, magichisoka, manveru,
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
|
|
78
|
+
* everyone who uses CodeBB on http://www.rubyforen.de, http://www.python-forum.de, and
|
|
79
|
+
http://www.infhu.de/mx (down)
|
|
80
|
+
* iGEL, magichisoka, manveru, WoNáDo and everyone I forgot from rubyforen.de
|
|
81
|
+
* Dethix from ruby-mine.de
|
|
82
|
+
* zickzackw
|
|
83
|
+
* Dookie (who is no longer with us...) and Leonidas from http://www.python-forum.de
|
|
94
84
|
* Andreas Schwarz for finding out that CaseIgnoringWordList was not case
|
|
95
85
|
ignoring! Such things really make you write tests.
|
|
86
|
+
* closure for the first version of the Scheme scanner.
|
|
87
|
+
* Stefan Walk for the first version of the JavaScript scanner.
|
|
88
|
+
* Josh Goebel for another version of the JavaScript scanner and a Diff scanner.
|
|
89
|
+
* Jonathan Younger for pointing out the licence confusion caused by wrong LICENSE file.
|
|
90
|
+
* Jeremy Hinegardner for finding the shebang-on-empty-file bug in FileType.
|
|
91
|
+
* The folks at redmine.org - thank you for using and fixing CodeRay!
|
|
96
92
|
* matz and all Ruby gods and gurus
|
|
97
93
|
* The inventors of: the computer, the internet, the true color display, HTML &
|
|
98
94
|
CSS, VIM, RUBY, pizza, microwaves, guitars, scouting, programming, anime,
|
|
@@ -103,23 +99,25 @@ Where would we be without all those people?
|
|
|
103
99
|
=== Created using
|
|
104
100
|
|
|
105
101
|
* Ruby[http://ruby-lang.org/]
|
|
106
|
-
* Chihiro (my Sony VAIO laptop)
|
|
107
|
-
Seras (my
|
|
108
|
-
* VIM[http://vim.org] and TextMate[http://macromates.com]
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* Firefox[http://www.mozilla.org/products/firefox/]
|
|
102
|
+
* Chihiro (my Sony VAIO laptop); Henrietta (my old MacBook); Triella, born Rico (my new MacBook); as well as
|
|
103
|
+
Seras and Hikari (my PCs)
|
|
104
|
+
* RDE[http://homepage2.nifty.com/sakazuki/rde_e.html], VIM[http://vim.org] and TextMate[http://macromates.com]
|
|
105
|
+
* Subversion[http://subversion.tigris.org/]
|
|
106
|
+
* Redmine[http://redmine.org/]
|
|
107
|
+
* Firefox[http://www.mozilla.org/products/firefox/],
|
|
108
|
+
Firebug[http://getfirebug.com/], and
|
|
112
109
|
Thunderbird[http://www.mozilla.org/products/thunderbird/]
|
|
113
|
-
* Rake[http://rake.rubyforge.org/]
|
|
114
|
-
*
|
|
115
|
-
* {Subversion/TortoiseSVN}[http://tortoisesvn.tigris.org/] using Apache via
|
|
110
|
+
* RubyGems[http://docs.rubygems.org/] and Rake[http://rake.rubyforge.org/]
|
|
111
|
+
* TortoiseSVN[http://tortoisesvn.tigris.org/] using Apache via
|
|
116
112
|
XAMPP[http://www.apachefriends.org/en/xampp.html]
|
|
117
113
|
* RDoc (though I'm quite unsatisfied with it)
|
|
114
|
+
* Microsoft Windows (yes, I confess!) and MacOS X
|
|
118
115
|
* GNUWin32, MinGW and some other tools to make the shell under windows a bit
|
|
119
|
-
|
|
116
|
+
less useless
|
|
120
117
|
* Term::ANSIColor[http://term-ansicolor.rubyforge.org/]
|
|
118
|
+
* PLEAC[http://pleac.sourceforge.net/] code examples
|
|
121
119
|
|
|
122
|
-
|
|
120
|
+
=== Free
|
|
123
121
|
|
|
124
122
|
* As you can see, CodeRay was created under heavy use of *free* software.
|
|
125
123
|
* So CodeRay is also *free*.
|
data/bin/coderay
CHANGED
|
@@ -27,11 +27,11 @@ Example:
|
|
|
27
27
|
|
|
28
28
|
if first
|
|
29
29
|
if first[/-(\w+)/] == first
|
|
30
|
-
lang = $1
|
|
30
|
+
lang = $1
|
|
31
31
|
input = $stdin.read
|
|
32
32
|
tokens = :scan
|
|
33
33
|
elsif first == '-'
|
|
34
|
-
lang = $1
|
|
34
|
+
lang = $1
|
|
35
35
|
input = $stdin.read
|
|
36
36
|
tokens = :scan
|
|
37
37
|
else
|
|
@@ -46,7 +46,7 @@ Example:
|
|
|
46
46
|
|
|
47
47
|
if second
|
|
48
48
|
if second[/-(\w+)/] == second
|
|
49
|
-
format = $1
|
|
49
|
+
format = $1
|
|
50
50
|
else
|
|
51
51
|
raise 'Invalid format (must be -xxx).'
|
|
52
52
|
end
|
|
@@ -2,7 +2,7 @@ module CodeRay
|
|
|
2
2
|
|
|
3
3
|
# = PluginHost
|
|
4
4
|
#
|
|
5
|
-
# $Id: plugin.rb
|
|
5
|
+
# $Id: plugin.rb 272 2009-01-01 13:57:08Z murphy $
|
|
6
6
|
#
|
|
7
7
|
# A simple subclass plugin system.
|
|
8
8
|
#
|
|
@@ -245,7 +245,7 @@ protected
|
|
|
245
245
|
id
|
|
246
246
|
elsif id.is_a? String
|
|
247
247
|
if id[/\w+/] == id
|
|
248
|
-
id.to_sym
|
|
248
|
+
id.downcase.to_sym
|
|
249
249
|
else
|
|
250
250
|
raise ArgumentError, "Invalid id: '#{id}' given."
|
|
251
251
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coderay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.273
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- murphy
|
|
@@ -9,7 +9,7 @@ autorequire: coderay
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-01-
|
|
12
|
+
date: 2009-01-04 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|