raddocs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/raddocs.rb +10 -0
- data/lib/views/index.haml +1 -1
- data/lib/views/layout.haml +1 -1
- metadata +9 -9
data/lib/raddocs.rb
CHANGED
@@ -13,4 +13,14 @@ class Raddocs < Sinatra::Base
|
|
13
13
|
example = JSON.parse(File.read("docs/#{params[:resource]}/#{params[:example]}.json"))
|
14
14
|
haml :example, :locals => { :example => example }
|
15
15
|
end
|
16
|
+
|
17
|
+
helpers do
|
18
|
+
def link_to(name, link)
|
19
|
+
%{<a href="#{request.env["SCRIPT_NAME"]}#{link}">#{name}</a>}
|
20
|
+
end
|
21
|
+
|
22
|
+
def url_location
|
23
|
+
request.env["SCRIPT_NAME"]
|
24
|
+
end
|
25
|
+
end
|
16
26
|
end
|
data/lib/views/index.haml
CHANGED
data/lib/views/layout.haml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raddocs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement: &
|
16
|
+
requirement: &70257893115780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70257893115780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml
|
27
|
-
requirement: &
|
27
|
+
requirement: &70257893114820 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70257893114820
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: json
|
38
|
-
requirement: &
|
38
|
+
requirement: &70257893114240 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,8 +43,8 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
47
|
-
description: Browse documentation generated by
|
46
|
+
version_requirements: *70257893114240
|
47
|
+
description: Browse documentation generated by the rspec_api_documentation gem
|
48
48
|
email:
|
49
49
|
- eric@smartlogicsolutions.com
|
50
50
|
executables: []
|
@@ -79,5 +79,5 @@ rubyforge_project:
|
|
79
79
|
rubygems_version: 1.8.15
|
80
80
|
signing_key:
|
81
81
|
specification_version: 3
|
82
|
-
summary: Browse documentation generated by
|
82
|
+
summary: Browse documentation generated by the rspec_api_documentation gem
|
83
83
|
test_files: []
|