toolmantim-teapot 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ == 1.0.1 2009-01-15
2
+
3
+ * Fixed case issues in the gemspec so it actually installs
4
+
5
+ == 1.0.0 2009-01-15
6
+
7
+ * Initial release
8
+
data/License ADDED
@@ -0,0 +1,13 @@
1
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
+ Version 2, December 2004
3
+
4
+ Copyright (C) 2009 Tim Lucas
5
+
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
@@ -0,0 +1,28 @@
1
+ = teapot
2
+
3
+ It's imperative to respond correctly to coffee machine BREW requests when you are, in fact, a teapot. This piece of Rack middleware will ensure you comply with HTCPCP/1.0: the Hyper Text Coffee Pot Control Protocol.
4
+
5
+ For more information see http://www.ietf.org/rfc/rfc2324.txt
6
+
7
+ == INSTALL
8
+
9
+ sudo gem install toolmantim-teapot --source http://gems.github.com
10
+
11
+ == USAGE
12
+
13
+ Simply <tt>require</tt> and <tt>use</tt> from your rackup file (e.g. <tt>config.ru</tt>):
14
+
15
+ require 'rubygems'
16
+ require 'teapot'
17
+
18
+ use Teapot
19
+
20
+ Your Rack application will now serve English Breakfast and respond with a <tt>418 I'm a teapot</tt> if it receives any <tt>BREW</tt> or <tt>application/coffee-pot-command</tt> requests.
21
+
22
+ Tea connoisseurs may wish to refer to Teapot for a finer selection of tea.
23
+
24
+ == BREWING
25
+
26
+ You can perform a BREW request using curl's request method flag <tt>-X</tt>:
27
+
28
+ curl -i -X BREW myrackapp.com
@@ -6,8 +6,6 @@
6
6
  #
7
7
  # use Teapot, "Lady Grey"
8
8
  class Teapot
9
- VERSION = "1.0.0"
10
-
11
9
  def initialize(app, tea="English Breakfast") #:nodoc:
12
10
  @app, @tea = app, tea
13
11
  end
@@ -1,18 +1,18 @@
1
1
  TEAPOT_GEM_SPEC = Gem::Specification.new do |s|
2
2
  s.name = "teapot"
3
- s.version = "1.0"
3
+ s.version = "1.0.1"
4
4
  s.date = "2009-01-15"
5
5
  s.summary = s.description = "Rack middleware to help you, as a teapot, comply with HTCPCP/1.0: the Hyper Text Coffee Pot Control Protocol"
6
6
  s.email = "t.lucas@toolmantim.com"
7
7
  s.homepage = "http://github.com/toolmantim/teapot"
8
8
  s.has_rdoc = true
9
9
  s.authors = ["Tim Lucas"]
10
- s.files = ["CHANGELOG.rdoc",
11
- "LICENSE",
12
- "README.rdoc",
10
+ s.files = ["Changelog.rdoc",
11
+ "License",
12
+ "Readme.rdoc",
13
13
  "teapot.gemspec",
14
14
  "lib/teapot.rb",
15
15
  "test/test_teapot.rb"]
16
- s.rdoc_options = ["--main", "README.rdoc"]
17
- s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"]
16
+ s.rdoc_options = ["--main", "Readme.rdoc"]
17
+ s.extra_rdoc_files = ["Changelog.rdoc", "Readme.rdoc"]
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolmantim-teapot
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.0"
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas
@@ -20,12 +20,12 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - CHANGELOG.rdoc
24
- - README.rdoc
23
+ - Changelog.rdoc
24
+ - Readme.rdoc
25
25
  files:
26
- - CHANGELOG.rdoc
27
- - LICENSE
28
- - README.rdoc
26
+ - Changelog.rdoc
27
+ - License
28
+ - Readme.rdoc
29
29
  - teapot.gemspec
30
30
  - lib/teapot.rb
31
31
  - test/test_teapot.rb
@@ -34,7 +34,7 @@ homepage: http://github.com/toolmantim/teapot
34
34
  post_install_message:
35
35
  rdoc_options:
36
36
  - --main
37
- - README.rdoc
37
+ - Readme.rdoc
38
38
  require_paths:
39
39
  - lib
40
40
  required_ruby_version: !ruby/object:Gem::Requirement