sinatra-rabbit 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ %html
2
+ %head
3
+ %body
4
+ %h1=self.class.name
5
+ %ul
6
+ - self.class.collections.each do |c|
7
+ %li
8
+ %a{:href => c.docs_url }=c.name
@@ -0,0 +1,24 @@
1
+ %html
2
+ %head
3
+ %body
4
+ %h1=@collection.name.gsub('Sinatra::Rabbit::', '')
5
+ %blockquote=@collection.description
6
+ .url=@collection.full_path
7
+ .features
8
+ - @collection.features.each do |f|
9
+ %p.feature=f.name
10
+ %table.operations
11
+ %thead
12
+ %tr
13
+ %th Name
14
+ %th Type
15
+ %th Valid values
16
+ %th Description
17
+ %tbody
18
+ - @collection.operations.each do |o|
19
+ %tr
20
+ %td.name
21
+ %a{:href => o.docs_url }
22
+ %td.method=o.http_method.to_s.upcase
23
+ %td.url
24
+ %a{:href=>o.full_path}=o.full_path
@@ -0,0 +1,26 @@
1
+ %html
2
+ %head
3
+ %body
4
+ %h1=@operation.name.gsub('Sinatra::Rabbit::', '')
5
+ %blockquote=@operation.description
6
+ .url=@operation.full_path
7
+ - if @operation.required_capability
8
+ %p{:class => :requires}=@operation.required_capability
9
+ - @operation.features.each do |f|
10
+ .feature
11
+ .name=f.name
12
+ %blockquote=f.description
13
+ %table.parameters
14
+ %thead
15
+ %tr
16
+ %th Name
17
+ %th Type
18
+ %th Valid values
19
+ %th Description
20
+ %tbody
21
+ - (@operation.params + @operation.features_params).each do |p|
22
+ %tr
23
+ %td{ :class => p.required? && 'required'}=p.name
24
+ %td=p.klass
25
+ %td=p.values
26
+ %td=p.description
@@ -29,11 +29,12 @@ Gem::Specification.new do |s|
29
29
  a simple REST API using easy to undestand DSL.
30
30
  EOF
31
31
 
32
- s.version = '1.0.10'
32
+ s.version = '1.0.11'
33
33
  s.date = Time.now
34
34
  s.summary = %q{Sinatra REST API DSL}
35
35
  s.files = FileList[
36
36
  'lib/sinatra/*.rb',
37
+ 'lib/sinatra/docs/*.haml',
37
38
  'lib/sinatra/rabbit/*.rb',
38
39
  'tests/*.rb',
39
40
  'LICENSE',
metadata CHANGED
@@ -1,48 +1,44 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sinatra-rabbit
3
- version: !ruby/object:Gem::Version
4
- hash: 3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.11
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 10
10
- version: 1.0.10
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - The Apache Software Foundation
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-07-20 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: sinatra
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 1
31
- - 3
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.3.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- description: " Rabbit is a Sinatra extension which can help you writing\n a simple REST API using easy to undestand DSL.\n"
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.3.0
30
+ description: ! " Rabbit is a Sinatra extension which can help you writing\n a
31
+ simple REST API using easy to undestand DSL.\n"
37
32
  email: dev@deltacloud.apache.org
38
33
  executables: []
39
-
40
34
  extensions: []
41
-
42
- extra_rdoc_files:
35
+ extra_rdoc_files:
43
36
  - LICENSE
44
- files:
37
+ files:
45
38
  - lib/sinatra/rabbit.rb
39
+ - lib/sinatra/docs/api.haml
40
+ - lib/sinatra/docs/collection.haml
41
+ - lib/sinatra/docs/operation.haml
46
42
  - lib/sinatra/rabbit/base.rb
47
43
  - lib/sinatra/rabbit/base_collection.rb
48
44
  - lib/sinatra/rabbit/dsl.rb
@@ -59,38 +55,26 @@ files:
59
55
  - sinatra-rabbit.gemspec
60
56
  homepage: http://github.com/mifo/sinatra-rabbit
61
57
  licenses: []
62
-
63
58
  post_install_message:
64
59
  rdoc_options: []
65
-
66
- require_paths:
60
+ require_paths:
67
61
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
69
63
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 53
74
- segments:
75
- - 1
76
- - 8
77
- - 1
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
78
67
  version: 1.8.1
79
- required_rubygems_version: !ruby/object:Gem::Requirement
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
69
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
88
74
  requirements: []
89
-
90
75
  rubyforge_project:
91
- rubygems_version: 1.8.15
76
+ rubygems_version: 1.8.23
92
77
  signing_key:
93
78
  specification_version: 3
94
79
  summary: Sinatra REST API DSL
95
80
  test_files: []
96
-