sinatra-docdsl 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/docdsl.rb +2 -0
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50ed51e11b947de2d96212b08c9a577f5d182525
4
- data.tar.gz: f48deba4353e341b1adf8f38aecf8ffb6db81180
3
+ metadata.gz: b55409240c92951f7d14a9959ca155e5ac73e730
4
+ data.tar.gz: fa8266d1781849affedf8ea5547972074af4ef45
5
5
  SHA512:
6
- metadata.gz: ff01d25759bd3d99288f1e6a5b1f44d6b81465b5eeeba6f3f42f8bf40d2f3681d541a91553d61bbdbb215b2a14cbb33c4d97ebf60a842f0970ebaa33ee8e1d8b
7
- data.tar.gz: ef6cf62bfa46d797e64a6c92f90445e1e6b6ae0eddd086a625c1e6b4a0987453c9d9bb748e1292a1986810c23701841cda0c02a14b4838732852b2dadd6e3a81
6
+ metadata.gz: 3ebaef6f948115fc7b4773b4e54a213b3803bad322a33967335f21bda52eff9c8a9ef8e74817b69cdad9550f96e1a37fb4dd01f1eb8d1def1febf926b459a75d
7
+ data.tar.gz: 858eb3a749b3f44f3291d23455ff706604097e54b5200284c8f7f3a4c8758178b2e66d8167a9101478fc4d267c7227c313c7c8745d79f6bbfbbb3ef5bdef3135
@@ -3,6 +3,7 @@ require 'kramdown'
3
3
 
4
4
  module Sinatra
5
5
  module DocDsl
6
+ attr_accessor :page_doc
6
7
  class PageDoc
7
8
  attr_accessor :the_title,:the_header,:the_footer,:the_introduction,:entries,:the_url_prefix
8
9
 
@@ -403,6 +404,7 @@ HTML
403
404
  end
404
405
 
405
406
  def doc_endpoint(path)
407
+ @page_doc ||= PageDoc.new(&block)
406
408
  page_doc=@page_doc
407
409
  get path do
408
410
  begin
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-docdsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jilles van Gurp
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
24
  - - '>='
23
25
  - !ruby/object:Gem::Version
24
26
  version: '0'
25
- prerelease: false
26
- type: :runtime
27
27
  description: A simple DSL for generating documentation for Sinatra REST applications
28
28
  email: incoming@jillesvangurp.xom
29
29
  executables: []
@@ -35,7 +35,7 @@ homepage: https://github.com/jillesvangurp/sinatra-docdsl
35
35
  licenses:
36
36
  - MIT
37
37
  metadata: {}
38
- post_install_message:
38
+ post_install_message:
39
39
  rdoc_options: []
40
40
  require_paths:
41
41
  - lib
@@ -50,9 +50,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubyforge_project:
54
- rubygems_version: 2.1.11
55
- signing_key:
53
+ rubyforge_project:
54
+ rubygems_version: 2.0.14
55
+ signing_key:
56
56
  specification_version: 4
57
57
  summary: Documentation DSL for Sinatra
58
58
  test_files: []