rack-pygments 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -0
- data/lib/rack/pygments.rb +2 -2
- metadata +23 -13
data/LICENSE
CHANGED
data/lib/rack/pygments.rb
CHANGED
@@ -13,11 +13,11 @@ module Rack
|
|
13
13
|
raise Exception, "Pygmentize is missing"
|
14
14
|
end
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def call(env)
|
18
18
|
if env["PATH_INFO"] !~ /.*\.css$/
|
19
19
|
status, headers, response = @app.call(env)
|
20
|
-
content = response.
|
20
|
+
content = response.each.map.join
|
21
21
|
document = Nokogiri::HTML(content)
|
22
22
|
nodes = document.css(@tag)
|
23
23
|
nodes.each do |node|
|
metadata
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-pygments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
version: "0.2"
|
5
9
|
platform: ruby
|
6
10
|
authors:
|
7
11
|
- Bryan Goines
|
@@ -9,29 +13,33 @@ autorequire:
|
|
9
13
|
bindir: bin
|
10
14
|
cert_chain: []
|
11
15
|
|
12
|
-
date:
|
16
|
+
date: 2010-05-07 00:00:00 -05:00
|
13
17
|
default_executable:
|
14
18
|
dependencies:
|
15
19
|
- !ruby/object:Gem::Dependency
|
16
20
|
name: rack
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
prerelease: false
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
23
|
requirements:
|
21
24
|
- - ">="
|
22
25
|
- !ruby/object:Gem::Version
|
26
|
+
segments:
|
27
|
+
- 0
|
23
28
|
version: "0"
|
24
|
-
|
29
|
+
type: :runtime
|
30
|
+
version_requirements: *id001
|
25
31
|
- !ruby/object:Gem::Dependency
|
26
32
|
name: nokogiri
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
prerelease: false
|
34
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
35
|
requirements:
|
31
36
|
- - ">="
|
32
37
|
- !ruby/object:Gem::Version
|
38
|
+
segments:
|
39
|
+
- 0
|
33
40
|
version: "0"
|
34
|
-
|
41
|
+
type: :runtime
|
42
|
+
version_requirements: *id002
|
35
43
|
description: rack-pygments - Rack Middleware for Pygments, the syntax highlighter
|
36
44
|
email: bryan@ffiirree.com
|
37
45
|
executables: []
|
@@ -60,18 +68,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
68
|
requirements:
|
61
69
|
- - ">="
|
62
70
|
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 0
|
63
73
|
version: "0"
|
64
|
-
version:
|
65
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
75
|
requirements:
|
67
76
|
- - ">="
|
68
77
|
- !ruby/object:Gem::Version
|
78
|
+
segments:
|
79
|
+
- 0
|
69
80
|
version: "0"
|
70
|
-
version:
|
71
81
|
requirements: []
|
72
82
|
|
73
83
|
rubyforge_project: rack-pygments
|
74
|
-
rubygems_version: 1.3.
|
84
|
+
rubygems_version: 1.3.6
|
75
85
|
signing_key:
|
76
86
|
specification_version: 1
|
77
87
|
summary: rack-pygments
|