sinatra-symphony 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/sinatra/symphony.rb +2 -4
  2. metadata +4 -3
@@ -5,10 +5,8 @@ require 'async-rack'
5
5
  module Sinatra
6
6
  class Symphony < Base
7
7
 
8
- %w(get put post delete).each do |name|
9
- define_singleton_method(name) do |path, options = {}, &block|
10
- route(name.upcase, path, options) {|*args| async_invoke(*args, &block)}
11
- end
8
+ def self.route name, path, options = {}, &block
9
+ super(name.upcase, path, options) {|*args| async_invoke(*args, &block)}
12
10
  end
13
11
 
14
12
  # defaults
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-symphony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-17 00:00:00.000000000 Z
12
+ date: 2012-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -132,8 +132,8 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - test/helper.rb
134
134
  - test/test_app.rb
135
- - lib/sinatra/symphony.rb
136
135
  - lib/sinatra/symphony/test.rb
136
+ - lib/sinatra/symphony.rb
137
137
  - lib/sinatra-symphony.rb
138
138
  - README.md
139
139
  homepage: http://github.com/deepfryed/sinatra-symphony
@@ -161,3 +161,4 @@ signing_key:
161
161
  specification_version: 3
162
162
  summary: em-synchrony glue for sinatra
163
163
  test_files: []
164
+ has_rdoc: