Skip to content

Commit bdff2d6

Browse files
committed
added readme and gemspec
1 parent c712775 commit bdff2d6

File tree

5 files changed

+47
-2
lines changed

5 files changed

+47
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
rack-tidy-ffi-*.gem

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

lib/rack-tidy-ffi/version.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class RackTidyFFI
2+
VERSION = "0.1"
3+
end

rack-tidy-ffi.gemspec

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
s.email = '[email protected]'
14+
s.homepage = 'http://makevoid.com'
15+
16+
s.files = Dir['README.md', 'lib/**/*']
17+
s.require_path = 'lib'
18+
end

spec/request/config.ru

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
path = File.expand_path "../", __FILE__
22
require "#{path}/tidy-app"
33

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+
69
use RackTidyFFI
710

811
run TidyApp

0 commit comments

Comments
 (0)