sinatra-any 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +0 -0
  2. data/lib/sinatra/any.rb +17 -0
  3. data/sinatra-any.gemspec +32 -0
  4. metadata +80 -0
File without changes
@@ -0,0 +1,17 @@
1
+ require 'sinatra/base'
2
+
3
+ module Sinatra
4
+
5
+ module Any
6
+
7
+ def any(path, *args, &blk)
8
+ passing = lambda { blk.call ; pass }
9
+ %w(get post put delete head).each do |meth|
10
+ send meth, path, *args, &passing
11
+ end
12
+ end
13
+
14
+ end
15
+
16
+ register Any
17
+ end
@@ -0,0 +1,32 @@
1
+ Gem::Specification.new do |s|
2
+ s.specification_version = 2 if s.respond_to? :specification_version=
3
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
+
5
+ s.name = 'sinatra-any'
6
+ s.version = '1.0.0'
7
+ s.date = '2009-09-21'
8
+
9
+ s.description = "granular before filters for sinatra"
10
+ s.summary = s.description
11
+
12
+ s.authors = ["Blake Mizerany"]
13
+ s.email = "blake.mizerany@gmail.com"
14
+
15
+ # = MANIFEST =
16
+ s.files = %w[
17
+ README.md
18
+ lib/sinatra/any.rb
19
+ sinatra-any.gemspec
20
+ ]
21
+ # = MANIFEST =
22
+
23
+ s.extra_rdoc_files = %w[README.md]
24
+ s.add_dependency 'sinatra', '>= 0.9.4'
25
+
26
+ s.has_rdoc = true
27
+ s.homepage = "http://github.com/bmizerany/sinatra-any"
28
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Sinatra::Any"]
29
+ s.require_paths = %w[lib]
30
+ s.rubyforge_project = 'bmizerany'
31
+ s.rubygems_version = '1.1.1'
32
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sinatra-any
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - Blake Mizerany
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2009-09-21 00:00:00 -07:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: sinatra
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 9
30
+ - 4
31
+ version: 0.9.4
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ description: granular before filters for sinatra
35
+ email: blake.mizerany@gmail.com
36
+ executables: []
37
+
38
+ extensions: []
39
+
40
+ extra_rdoc_files:
41
+ - README.md
42
+ files:
43
+ - README.md
44
+ - lib/sinatra/any.rb
45
+ - sinatra-any.gemspec
46
+ has_rdoc: true
47
+ homepage: http://github.com/bmizerany/sinatra-any
48
+ licenses: []
49
+
50
+ post_install_message:
51
+ rdoc_options:
52
+ - --line-numbers
53
+ - --inline-source
54
+ - --title
55
+ - Sinatra::Any
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ version: "0"
72
+ requirements: []
73
+
74
+ rubyforge_project: bmizerany
75
+ rubygems_version: 1.3.6
76
+ signing_key:
77
+ specification_version: 2
78
+ summary: granular before filters for sinatra
79
+ test_files: []
80
+