File tree 5 files changed +47
-2
lines changed
5 files changed +47
-2
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
2
+ rack-tidy-ffi- * .gem
Original file line number Diff line number Diff line change
1
+ # RackTidyFFI
2
+
3
+ ## Rack middleware to tidy application output
4
+
5
+ - Works with ruby 1.9
6
+ - uses tidy_ffi instead of tidy (broken on 1.9 because of Ruby DL changes)
7
+
8
+
9
+ ## Installation
10
+
11
+ gem install rack-tidy-ffi
12
+
13
+ ## Usage
14
+
15
+ in your config.ru:
16
+
17
+ require 'rack-tidy-ffi'
18
+
19
+ use RackTidyFFI
Original file line number Diff line number Diff line change
1
+ class RackTidyFFI
2
+ VERSION = "0.1"
3
+ end
Original file line number Diff line number Diff line change
1
+ path = File . expand_path ( "../lib" , __FILE__ )
2
+ $:. unshift ( path ) unless $:. include? ( path )
3
+ require "rack-tidy-ffi/version"
4
+
5
+ Gem ::Specification . new do |s |
6
+ s . platform = Gem ::Platform ::RUBY
7
+ s . name = 'rack-tidy-ffi'
8
+ s . version = RackTidyFFI ::VERSION
9
+ s . summary = 'Rack middleware to tidy application output'
10
+ s . description = 'Rack middleware to tidy application output using tidy_ffi gem - default output is indented and w/ html5 doctype - works with ruby1.9'
11
+
12
+ s . author = "Francesco 'makevoid' Canessa"
13
+
14
+ s . homepage = 'http://makevoid.com'
15
+
16
+ s . files = Dir [ 'README.md' , 'lib/**/*' ]
17
+ s . require_path = 'lib'
18
+ end
Original file line number Diff line number Diff line change 1
1
path = File . expand_path "../" , __FILE__
2
2
require "#{ path } /tidy-app"
3
3
4
- lib_path = File . expand_path "../../../lib" , __FILE__
5
- require "#{ lib_path } /rack-tidy-ffi"
4
+ # lib_path = File.expand_path "../../../lib", __FILE__
5
+ # require "#{lib_path}/rack-tidy-ffi"
6
+ require 'rack-tidy-ffi'
7
+
8
+
6
9
use RackTidyFFI
7
10
8
11
run TidyApp
You can’t perform that action at this time.
0 commit comments