rack-plastic 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/README.rdoc +4 -4
- data/Rakefile +14 -3
- data/{test → examples}/middlewares/initial.rb +0 -0
- data/{test → examples}/middlewares/intro.rb +0 -0
- data/{test → examples}/middlewares/l337.rb +0 -0
- data/{test → examples}/middlewares/stylizer.rb +0 -0
- data/{test → examples}/rackapp/app.rb +0 -0
- data/{test → examples}/railsapp/app/controllers/application_controller.rb +0 -0
- data/{test → examples}/railsapp/app/controllers/tommy_boy_controller.rb +0 -0
- data/{test → examples}/railsapp/app/helpers/application_helper.rb +0 -0
- data/{test → examples}/railsapp/app/helpers/tommy_boy_helper.rb +0 -0
- data/{test → examples}/railsapp/config/boot.rb +0 -0
- data/{test → examples}/railsapp/config/environment.rb +0 -0
- data/{test → examples}/railsapp/config/environments/development.rb +0 -0
- data/{test → examples}/railsapp/config/environments/production.rb +0 -0
- data/{test → examples}/railsapp/config/environments/test.rb +0 -0
- data/{test → examples}/railsapp/config/initializers/backtrace_silencers.rb +0 -0
- data/{test → examples}/railsapp/config/initializers/inflections.rb +0 -0
- data/{test → examples}/railsapp/config/initializers/mime_types.rb +0 -0
- data/{test → examples}/railsapp/config/initializers/new_rails_defaults.rb +0 -0
- data/{test → examples}/railsapp/config/initializers/session_store.rb +0 -0
- data/{test → examples}/railsapp/config/routes.rb +0 -0
- data/{test → examples}/railsapp/db/seeds.rb +0 -0
- data/{test → examples}/railsapp/test/functional/tommy_boy_controller_test.rb +0 -0
- data/{test → examples}/railsapp/test/performance/browsing_test.rb +0 -0
- data/{test → examples}/railsapp/test/test_helper.rb +0 -0
- data/{test → examples}/railsapp/test/unit/helpers/tommy_boy_helper_test.rb +0 -0
- data/{test → examples}/sinatraapp/app.rb +0 -0
- data/lib/plastic_helper.rb +6 -6
- data/lib/plastic_test_helper.rb +1 -1
- data/lib/rack-plastic.rb +1 -1
- data/test/rack-plastic_test.rb +21 -0
- data/test/test_helper.rb +13 -0
- metadata +125 -105
- data/test/rackapp/config.ru +0 -16
- data/test/railsapp/README +0 -243
- data/test/railsapp/Rakefile +0 -10
- data/test/railsapp/app/views/layouts/application.html.erb +0 -13
- data/test/railsapp/app/views/tommy_boy/index.html.erb +0 -44
- data/test/railsapp/app/views/tommy_boy/more.html.erb +0 -12
- data/test/railsapp/config/database.yml +0 -22
- data/test/railsapp/config/locales/en.yml +0 -5
- data/test/railsapp/db/development.sqlite3 +0 -0
- data/test/railsapp/doc/README_FOR_APP +0 -2
- data/test/railsapp/log/development.log +0 -120
- data/test/railsapp/log/production.log +0 -0
- data/test/railsapp/log/server.log +0 -0
- data/test/railsapp/log/test.log +0 -0
- data/test/railsapp/public/404.html +0 -30
- data/test/railsapp/public/422.html +0 -30
- data/test/railsapp/public/500.html +0 -30
- data/test/railsapp/public/favicon.ico +0 -0
- data/test/railsapp/public/images/rails.png +0 -0
- data/test/railsapp/public/javascripts/application.js +0 -2
- data/test/railsapp/public/javascripts/controls.js +0 -963
- data/test/railsapp/public/javascripts/dragdrop.js +0 -973
- data/test/railsapp/public/javascripts/effects.js +0 -1128
- data/test/railsapp/public/javascripts/prototype.js +0 -4320
- data/test/railsapp/public/robots.txt +0 -5
- data/test/railsapp/script/about +0 -4
- data/test/railsapp/script/console +0 -3
- data/test/railsapp/script/dbconsole +0 -3
- data/test/railsapp/script/destroy +0 -3
- data/test/railsapp/script/generate +0 -3
- data/test/railsapp/script/performance/benchmarker +0 -3
- data/test/railsapp/script/performance/profiler +0 -3
- data/test/railsapp/script/plugin +0 -3
- data/test/railsapp/script/runner +0 -3
- data/test/railsapp/script/server +0 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
0.1.2 (February 21, 2011)
|
2
|
+
* BUGFIX: process_html test helper was not working in Ruby 1.9.
|
3
|
+
* Moved test apps into the examples directory.
|
4
|
+
* Added a basic automated test.
|
5
|
+
* Added bundler support.
|
6
|
+
* Small tweaks such as require paths, gitignore updates, etc.
|
7
|
+
|
1
8
|
0.1.1 (July 18, 2010)
|
2
9
|
* Tweaked documentation but did not change code.
|
3
10
|
|
data/README.rdoc
CHANGED
@@ -30,7 +30,7 @@ Rack and Nokogiri as well as some convenience methods for testing.
|
|
30
30
|
|
31
31
|
== Examples
|
32
32
|
|
33
|
-
The
|
33
|
+
The examples/middlewares directory has examples of writing middleware using
|
34
34
|
Rack::Plastic.
|
35
35
|
|
36
36
|
== Testing
|
@@ -44,16 +44,16 @@ but it provides manual tests. Each of the example middlewares is inserted into
|
|
44
44
|
Sinatra, Rails, and Rack test app.
|
45
45
|
|
46
46
|
To run the Rails test app:
|
47
|
-
* cd
|
47
|
+
* cd examples/railsapp
|
48
48
|
* script/server
|
49
49
|
* point your browser to http://localhost:3000
|
50
50
|
|
51
51
|
To run the Sinatra test app:
|
52
|
-
* cd
|
52
|
+
* cd examples/sinatraapp
|
53
53
|
* ruby app.rb
|
54
54
|
* point your browser to http://localhost:4567
|
55
55
|
|
56
56
|
To run the Rack test app:
|
57
|
-
* cd
|
57
|
+
* cd examples/rackapp
|
58
58
|
* rackup config.ru
|
59
59
|
* point your browser to http://localhost:9292
|
data/Rakefile
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
require 'rake'
|
2
|
+
require 'rake/testtask'
|
2
3
|
require 'rake/rdoctask'
|
3
4
|
|
4
|
-
desc 'Generate documentation for Plastic.'
|
5
|
+
desc 'Generate documentation for Rack::Plastic.'
|
5
6
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
6
7
|
rdoc.rdoc_dir = 'rdoc'
|
7
8
|
rdoc.title = 'Rack::Plastic'
|
@@ -9,11 +10,21 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
9
10
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
10
11
|
end
|
11
12
|
|
13
|
+
desc 'Default: run unit tests.'
|
14
|
+
task :default => :test
|
15
|
+
|
16
|
+
desc 'Test Rack::Plastic'
|
17
|
+
Rake::TestTask.new(:test) do |t|
|
18
|
+
t.libs << 'lib'
|
19
|
+
t.pattern = 'test/**/*_test.rb'
|
20
|
+
t.verbose = true
|
21
|
+
end
|
22
|
+
|
12
23
|
begin
|
13
24
|
require 'jeweler'
|
14
25
|
Jeweler::Tasks.new do |s|
|
15
26
|
s.name = "rack-plastic"
|
16
|
-
s.version = "0.1.
|
27
|
+
s.version = "0.1.2"
|
17
28
|
s.author = "Wyatt Greene"
|
18
29
|
s.email = "techiferous@gmail.com"
|
19
30
|
s.summary = "Helps you write Rack middleware using Nokogiri."
|
@@ -24,7 +35,7 @@ begin
|
|
24
35
|
}
|
25
36
|
s.add_dependency('rack', '>= 1.0.0')
|
26
37
|
s.add_dependency('nokogiri', '>= 1.4.0')
|
27
|
-
s.add_development_dependency('dirb')
|
38
|
+
s.add_development_dependency('dirb', '2.0.0')
|
28
39
|
s.add_development_dependency('colored')
|
29
40
|
s.require_path = "lib"
|
30
41
|
s.files = []
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/plastic_helper.rb
CHANGED
@@ -7,17 +7,17 @@ module Rack
|
|
7
7
|
# time you wanted to write a new middleware that modifies the HTML response.
|
8
8
|
#
|
9
9
|
class PlasticHelper #:nodoc:
|
10
|
-
|
10
|
+
|
11
11
|
def request
|
12
12
|
@request
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def options
|
16
16
|
@options
|
17
17
|
end
|
18
18
|
|
19
19
|
private
|
20
|
-
|
20
|
+
|
21
21
|
def handle_request(env, app, options, plastic)
|
22
22
|
@app = app
|
23
23
|
@options = options
|
@@ -45,7 +45,7 @@ module Rack
|
|
45
45
|
end
|
46
46
|
[status, @headers, @body]
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def html?
|
50
50
|
@headers["Content-Type"] && @headers["Content-Type"].include?("text/html")
|
51
51
|
end
|
@@ -55,7 +55,7 @@ module Rack
|
|
55
55
|
@body.each { |x| s << x }
|
56
56
|
s
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
def update_response_body(new_body_string)
|
60
60
|
# If we're dealing with a Rails response, we don't want to throw the
|
61
61
|
# response object away, we just want to update the response string.
|
@@ -74,6 +74,6 @@ module Rack
|
|
74
74
|
end
|
75
75
|
@headers['Content-Length'] = length.to_s
|
76
76
|
end
|
77
|
-
|
77
|
+
|
78
78
|
end
|
79
79
|
end
|
data/lib/plastic_test_helper.rb
CHANGED
@@ -71,7 +71,7 @@ module PlasticTestHelper
|
|
71
71
|
# resulting_html = process_html(input_html, Rack::Linkify, :twitter => true)
|
72
72
|
#
|
73
73
|
def process_html(html, middleware_class, options={})
|
74
|
-
app = lambda { |env| [200, {'Content-Type' => 'text/html'}, html] }
|
74
|
+
app = lambda { |env| [200, {'Content-Type' => 'text/html'}, [html]] }
|
75
75
|
app2 = middleware_class.new(app, options)
|
76
76
|
Rack::MockRequest.new(app2).get('/', :lint => true).body
|
77
77
|
end
|
data/lib/rack-plastic.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
$:.unshift(File.expand_path(File.dirname(__FILE__)))
|
2
|
+
require "test_helper"
|
3
|
+
|
4
|
+
module Rack
|
5
|
+
class TestMiddleware < Plastic
|
6
|
+
def change_nokogiri_doc(doc)
|
7
|
+
h1 = create_node(doc, "h1", "Inserted a heading!")
|
8
|
+
add_first_child(doc.at_css("body"), h1)
|
9
|
+
doc
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
class RackPlasticTest < Test::Unit::TestCase
|
15
|
+
|
16
|
+
def test_modifies_document
|
17
|
+
after_html = process_html("<html><body><h1>heading</h1></body></html>", Rack::TestMiddleware)
|
18
|
+
assert_html_equal "<html><body><h1>Inserted a heading!</h1><h1>heading</h1></body></html>", after_html
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'test/unit'
|
3
|
+
$:.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
|
4
|
+
require 'rack-plastic'
|
5
|
+
require 'plastic_test_helper'
|
6
|
+
|
7
|
+
module Test
|
8
|
+
module Unit
|
9
|
+
class TestCase
|
10
|
+
include PlasticTestHelper
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-plastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 25
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Wyatt Greene
|
@@ -15,69 +14,123 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2011-02-21 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rack
|
23
|
-
prerelease: false
|
24
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
23
|
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
27
|
segments:
|
31
28
|
- 1
|
32
29
|
- 0
|
33
30
|
- 0
|
34
31
|
version: 1.0.0
|
35
32
|
type: :runtime
|
33
|
+
prerelease: false
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
38
36
|
name: nokogiri
|
39
|
-
prerelease: false
|
40
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
38
|
none: false
|
42
39
|
requirements:
|
43
40
|
- - ">="
|
44
41
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 7
|
46
42
|
segments:
|
47
43
|
- 1
|
48
44
|
- 4
|
49
45
|
- 0
|
50
46
|
version: 1.4.0
|
51
47
|
type: :runtime
|
48
|
+
prerelease: false
|
52
49
|
version_requirements: *id002
|
53
50
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
55
|
-
prerelease: false
|
51
|
+
name: jeweler
|
56
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
53
|
none: false
|
58
54
|
requirements:
|
59
55
|
- - ">="
|
60
56
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 3
|
62
57
|
segments:
|
63
58
|
- 0
|
64
59
|
version: "0"
|
65
60
|
type: :development
|
61
|
+
prerelease: false
|
66
62
|
version_requirements: *id003
|
67
63
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
69
|
-
prerelease: false
|
64
|
+
name: rake
|
70
65
|
requirement: &id004 !ruby/object:Gem::Requirement
|
71
66
|
none: false
|
72
67
|
requirements:
|
73
68
|
- - ">="
|
74
69
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
70
|
segments:
|
77
71
|
- 0
|
78
72
|
version: "0"
|
79
73
|
type: :development
|
74
|
+
prerelease: false
|
80
75
|
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: rack
|
78
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 1
|
85
|
+
- 0
|
86
|
+
- 0
|
87
|
+
version: 1.0.0
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: nokogiri
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
segments:
|
99
|
+
- 1
|
100
|
+
- 4
|
101
|
+
- 0
|
102
|
+
version: 1.4.0
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: *id006
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: dirb
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - "="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
segments:
|
114
|
+
- 2
|
115
|
+
- 0
|
116
|
+
- 0
|
117
|
+
version: 2.0.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: *id007
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: colored
|
123
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
version: "0"
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: *id008
|
81
134
|
description: "\n If you are creating Rack middleware that changes the HTML response, use\n Rack::Plastic to get a head start. Rack::Plastic takes care of the\n boilerplate Rack glue so that you can focus on simply changing the HTML.\n "
|
82
135
|
email: techiferous@gmail.com
|
83
136
|
executables: []
|
@@ -95,74 +148,41 @@ files:
|
|
95
148
|
- lib/plastic_helper.rb
|
96
149
|
- lib/plastic_test_helper.rb
|
97
150
|
- lib/rack-plastic.rb
|
98
|
-
- test/
|
99
|
-
- test/
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
- test/railsapp/db/development.sqlite3
|
127
|
-
- test/railsapp/db/seeds.rb
|
128
|
-
- test/railsapp/doc/README_FOR_APP
|
129
|
-
- test/railsapp/log/development.log
|
130
|
-
- test/railsapp/log/production.log
|
131
|
-
- test/railsapp/log/server.log
|
132
|
-
- test/railsapp/log/test.log
|
133
|
-
- test/railsapp/public/404.html
|
134
|
-
- test/railsapp/public/422.html
|
135
|
-
- test/railsapp/public/500.html
|
136
|
-
- test/railsapp/public/favicon.ico
|
137
|
-
- test/railsapp/public/images/rails.png
|
138
|
-
- test/railsapp/public/javascripts/application.js
|
139
|
-
- test/railsapp/public/javascripts/controls.js
|
140
|
-
- test/railsapp/public/javascripts/dragdrop.js
|
141
|
-
- test/railsapp/public/javascripts/effects.js
|
142
|
-
- test/railsapp/public/javascripts/prototype.js
|
143
|
-
- test/railsapp/public/robots.txt
|
144
|
-
- test/railsapp/script/about
|
145
|
-
- test/railsapp/script/console
|
146
|
-
- test/railsapp/script/dbconsole
|
147
|
-
- test/railsapp/script/destroy
|
148
|
-
- test/railsapp/script/generate
|
149
|
-
- test/railsapp/script/performance/benchmarker
|
150
|
-
- test/railsapp/script/performance/profiler
|
151
|
-
- test/railsapp/script/plugin
|
152
|
-
- test/railsapp/script/runner
|
153
|
-
- test/railsapp/script/server
|
154
|
-
- test/railsapp/test/functional/tommy_boy_controller_test.rb
|
155
|
-
- test/railsapp/test/performance/browsing_test.rb
|
156
|
-
- test/railsapp/test/test_helper.rb
|
157
|
-
- test/railsapp/test/unit/helpers/tommy_boy_helper_test.rb
|
158
|
-
- test/sinatraapp/app.rb
|
151
|
+
- test/rack-plastic_test.rb
|
152
|
+
- test/test_helper.rb
|
153
|
+
- examples/middlewares/initial.rb
|
154
|
+
- examples/middlewares/intro.rb
|
155
|
+
- examples/middlewares/l337.rb
|
156
|
+
- examples/middlewares/stylizer.rb
|
157
|
+
- examples/rackapp/app.rb
|
158
|
+
- examples/railsapp/app/controllers/application_controller.rb
|
159
|
+
- examples/railsapp/app/controllers/tommy_boy_controller.rb
|
160
|
+
- examples/railsapp/app/helpers/application_helper.rb
|
161
|
+
- examples/railsapp/app/helpers/tommy_boy_helper.rb
|
162
|
+
- examples/railsapp/config/boot.rb
|
163
|
+
- examples/railsapp/config/environment.rb
|
164
|
+
- examples/railsapp/config/environments/development.rb
|
165
|
+
- examples/railsapp/config/environments/production.rb
|
166
|
+
- examples/railsapp/config/environments/test.rb
|
167
|
+
- examples/railsapp/config/initializers/backtrace_silencers.rb
|
168
|
+
- examples/railsapp/config/initializers/inflections.rb
|
169
|
+
- examples/railsapp/config/initializers/mime_types.rb
|
170
|
+
- examples/railsapp/config/initializers/new_rails_defaults.rb
|
171
|
+
- examples/railsapp/config/initializers/session_store.rb
|
172
|
+
- examples/railsapp/config/routes.rb
|
173
|
+
- examples/railsapp/db/seeds.rb
|
174
|
+
- examples/railsapp/test/functional/tommy_boy_controller_test.rb
|
175
|
+
- examples/railsapp/test/performance/browsing_test.rb
|
176
|
+
- examples/railsapp/test/test_helper.rb
|
177
|
+
- examples/railsapp/test/unit/helpers/tommy_boy_helper_test.rb
|
178
|
+
- examples/sinatraapp/app.rb
|
159
179
|
has_rdoc: true
|
160
180
|
homepage: http://github.com/techiferous/rack-plastic
|
161
181
|
licenses: []
|
162
182
|
|
163
183
|
post_install_message:
|
164
|
-
rdoc_options:
|
165
|
-
|
184
|
+
rdoc_options: []
|
185
|
+
|
166
186
|
require_paths:
|
167
187
|
- lib
|
168
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -170,7 +190,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
170
190
|
requirements:
|
171
191
|
- - ">="
|
172
192
|
- !ruby/object:Gem::Version
|
173
|
-
hash: 3
|
174
193
|
segments:
|
175
194
|
- 0
|
176
195
|
version: "0"
|
@@ -179,7 +198,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
198
|
requirements:
|
180
199
|
- - ">="
|
181
200
|
- !ruby/object:Gem::Version
|
182
|
-
hash: 3
|
183
201
|
segments:
|
184
202
|
- 0
|
185
203
|
version: "0"
|
@@ -191,29 +209,31 @@ signing_key:
|
|
191
209
|
specification_version: 3
|
192
210
|
summary: Helps you write Rack middleware using Nokogiri.
|
193
211
|
test_files:
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
197
|
-
-
|
198
|
-
-
|
199
|
-
-
|
200
|
-
-
|
201
|
-
-
|
202
|
-
-
|
203
|
-
-
|
204
|
-
-
|
205
|
-
-
|
206
|
-
-
|
207
|
-
-
|
208
|
-
-
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
216
|
-
-
|
217
|
-
-
|
218
|
-
-
|
219
|
-
-
|
212
|
+
- examples/middlewares/initial.rb
|
213
|
+
- examples/middlewares/intro.rb
|
214
|
+
- examples/middlewares/l337.rb
|
215
|
+
- examples/middlewares/stylizer.rb
|
216
|
+
- examples/rackapp/app.rb
|
217
|
+
- examples/railsapp/app/controllers/application_controller.rb
|
218
|
+
- examples/railsapp/app/controllers/tommy_boy_controller.rb
|
219
|
+
- examples/railsapp/app/helpers/application_helper.rb
|
220
|
+
- examples/railsapp/app/helpers/tommy_boy_helper.rb
|
221
|
+
- examples/railsapp/config/boot.rb
|
222
|
+
- examples/railsapp/config/environment.rb
|
223
|
+
- examples/railsapp/config/environments/development.rb
|
224
|
+
- examples/railsapp/config/environments/production.rb
|
225
|
+
- examples/railsapp/config/environments/test.rb
|
226
|
+
- examples/railsapp/config/initializers/backtrace_silencers.rb
|
227
|
+
- examples/railsapp/config/initializers/inflections.rb
|
228
|
+
- examples/railsapp/config/initializers/mime_types.rb
|
229
|
+
- examples/railsapp/config/initializers/new_rails_defaults.rb
|
230
|
+
- examples/railsapp/config/initializers/session_store.rb
|
231
|
+
- examples/railsapp/config/routes.rb
|
232
|
+
- examples/railsapp/db/seeds.rb
|
233
|
+
- examples/railsapp/test/functional/tommy_boy_controller_test.rb
|
234
|
+
- examples/railsapp/test/performance/browsing_test.rb
|
235
|
+
- examples/railsapp/test/test_helper.rb
|
236
|
+
- examples/railsapp/test/unit/helpers/tommy_boy_helper_test.rb
|
237
|
+
- examples/sinatraapp/app.rb
|
238
|
+
- test/rack-plastic_test.rb
|
239
|
+
- test/test_helper.rb
|