rack-esi 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.markdown +53 -0
  2. data/Rakefile +2 -2
  3. data/VERSION +1 -1
  4. metadata +14 -4
  5. data/README.rdoc +0 -17
data/README.markdown ADDED
@@ -0,0 +1,53 @@
1
+ # rack-esi
2
+
3
+ Nokogiri based ESI middleware implementation for Rack with (limited) support
4
+ for include, remove and comment.
5
+
6
+ ## Features
7
+
8
+ * path blacklisting (:skip => nil, expects Regexp)
9
+ * type whitelisting (:only => /^text\/(?:x|ht)ml/)
10
+ * recursion limit (:depth => 5)
11
+ * include limits (:includes => 32)
12
+ * support for <include> alt and noerror attributes
13
+
14
+ _It's for development purpose since its still 0.1.x..._
15
+
16
+ ## Installation
17
+
18
+ gem install rack-esi
19
+
20
+ ## Rails Setup (environment.rb)
21
+
22
+ config.gem 'rack-esi'
23
+ config.middleware.use(Rack::ESI, opts = {})
24
+
25
+ ## TODO
26
+
27
+ * write documentation
28
+ * write more tests
29
+ * support more ESI elements
30
+ * switch to Nokogiri::XML::SAX::Document?
31
+
32
+ ## Dependencies
33
+
34
+ * Nokogiri
35
+ * Rack
36
+
37
+ ## Note on Patches/Pull Requests
38
+
39
+ * Fork the project.
40
+ * Make your feature addition or bug fix.
41
+ * Add tests for it. This is important so I don't break it in a
42
+ future version unintentionally.
43
+ * Commit, do not mess with rakefile, version, or history.
44
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
45
+ * Send me a pull request. Bonus points for topic branches.
46
+
47
+ ## Thanks
48
+
49
+ tenderlove and Qerub
50
+
51
+ ## Copyright
52
+
53
+ Copyright (c) 2009 Florian Assmann. See LICENSE for details.
data/Rakefile CHANGED
@@ -9,10 +9,10 @@ begin
9
9
  gem.description = %Q{Nokogiri based ESI middleware implementation for Rack with (limited) support for include, remove and comment.}
10
10
  gem.email = "florian.assmann@email.de"
11
11
  gem.homepage = "http://github.com/boof/rack-esi"
12
- gem.authors = ["Florian Assmann"]
12
+ gem.authors = ["Florian Aßmann"]
13
13
  gem.add_development_dependency "riot", ">= 0"
14
14
  gem.add_development_dependency "yard", ">= 0"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
+ gem.add_dependency 'nokogiri', '>= 0'
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-esi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Florian Assmann
7
+ - "Florian A\xC3\x9Fmann"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -32,6 +32,16 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: "0"
34
34
  version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: nokogiri
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
35
45
  description: Nokogiri based ESI middleware implementation for Rack with (limited) support for include, remove and comment.
36
46
  email: florian.assmann@email.de
37
47
  executables: []
@@ -40,12 +50,12 @@ extensions: []
40
50
 
41
51
  extra_rdoc_files:
42
52
  - LICENSE
43
- - README.rdoc
53
+ - README.markdown
44
54
  files:
45
55
  - .document
46
56
  - .gitignore
47
57
  - LICENSE
48
- - README.rdoc
58
+ - README.markdown
49
59
  - Rakefile
50
60
  - VERSION
51
61
  - lib/rack-esi.rb
data/README.rdoc DELETED
@@ -1,17 +0,0 @@
1
- = rack-esi
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
- * Send me a pull request. Bonus points for topic branches.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2009 Florian Assmann. See LICENSE for details.