sinatra-rabbit 0.9.1 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,26 +32,10 @@ module Sinatra
32
32
  module Rabbit
33
33
 
34
34
  STANDARD_OPERATIONS = {
35
- :create => {
36
- :member => false,
37
- :method => :post,
38
- :collection => true
39
- },
40
- :show => {
41
- :member => false,
42
- :method => :get,
43
- :required_params => [ :id ]
44
- },
45
- :destroy => {
46
- :member => false,
47
- :method => :delete,
48
- :required_params => [ :id ]
49
- },
50
- :index => {
51
- :member => false,
52
- :method => :get,
53
- :collection => true
54
- }
35
+ :create => { :member => false, :method => :post, :collection => true },
36
+ :show => { :member => false, :method => :get },
37
+ :destroy => { :member => false, :method => :delete },
38
+ :index => { :member => false, :method => :get, :collection => true }
55
39
  }
56
40
 
57
41
  def self.configure(&block)
@@ -230,14 +214,7 @@ module Sinatra
230
214
  instance_eval(&o.params)
231
215
  end
232
216
  end
233
- if Sinatra::Rabbit::STANDARD_OPERATIONS.has_key? name
234
- required_params = Sinatra::Rabbit::STANDARD_OPERATIONS[name][:required_params]
235
- required_params.each do |p|
236
- param p, :required, :string, "The #{p} parameter"
237
- end unless required_params.nil?
238
- end
239
217
  class_eval(&block)
240
- description "#{name.to_s.capitalize} operation on #{@collection.name} collection" if description.nil?
241
218
  self
242
219
  end
243
220
 
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  a simple REST API using easy to undestand DSL.
30
30
  EOF
31
31
 
32
- s.version = '0.9.1'
32
+ s.version = '1.0'
33
33
  s.date = Time.now
34
34
  s.summary = %q{Sinatra REST API DSL}
35
35
  s.files = FileList[
metadata CHANGED
@@ -1,35 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sinatra-rabbit
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ version: "1.0"
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - The Apache Software Foundation
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-03-28 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-03-14 00:00:00 Z
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
15
20
  name: sinatra
16
- requirement: &70283050880100 !ruby/object:Gem::Requirement
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 27
28
+ segments:
29
+ - 1
30
+ - 3
31
+ - 0
21
32
  version: 1.3.0
22
33
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70283050880100
25
- description: ! " Rabbit is a Sinatra extension which can help you writing\n a
26
- simple REST API using easy to undestand DSL.\n"
34
+ version_requirements: *id001
35
+ description: " Rabbit is a Sinatra extension which can help you writing\n a simple REST API using easy to undestand DSL.\n"
27
36
  email: dev@deltacloud.apache.org
28
37
  executables: []
38
+
29
39
  extensions: []
30
- extra_rdoc_files:
40
+
41
+ extra_rdoc_files:
31
42
  - LICENSE
32
- files:
43
+ files:
33
44
  - lib/sinatra/rabbit.rb
34
45
  - lib/sinatra/rabbit/base.rb
35
46
  - lib/sinatra/rabbit/base_collection.rb
@@ -42,26 +53,38 @@ files:
42
53
  - sinatra-rabbit.gemspec
43
54
  homepage: http://github.com/mifo/sinatra-rabbit
44
55
  licenses: []
56
+
45
57
  post_install_message:
46
58
  rdoc_options: []
47
- require_paths:
59
+
60
+ require_paths:
48
61
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
50
63
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 53
68
+ segments:
69
+ - 1
70
+ - 8
71
+ - 1
54
72
  version: 1.8.1
55
- required_rubygems_version: !ruby/object:Gem::Requirement
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
74
  none: false
57
- requirements:
58
- - - ! '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ hash: 3
79
+ segments:
80
+ - 0
81
+ version: "0"
61
82
  requirements: []
83
+
62
84
  rubyforge_project:
63
- rubygems_version: 1.8.15
85
+ rubygems_version: 1.8.10
64
86
  signing_key:
65
87
  specification_version: 3
66
88
  summary: Sinatra REST API DSL
67
89
  test_files: []
90
+