api_docs 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/api_docs.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{api_docs}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Neto", "The Working Group Inc."]
12
- s.date = %q{2012-05-02}
12
+ s.date = %q{2012-05-03}
13
13
  s.description = %q{}
14
14
  s.email = %q{jack@twg.ca}
15
15
  s.extra_rdoc_files = [
@@ -8,4 +8,4 @@
8
8
  - @api_docs.each do |api_tab_label, api|
9
9
  .tab-pane{:id => api_tab_label.underscore}
10
10
  - unless api.blank?
11
- = render :partial => 'panel', :locals => {:label => api_tab_label, :api => api}
11
+ = render :partial => 'api_docs/panel', :locals => {:label => api_tab_label, :api => api}
@@ -21,13 +21,13 @@
21
21
  - if api_details['description']
22
22
  %pre= api_details['description'].html_safe
23
23
 
24
- = render :partial => 'params', :object => api_details['params']
24
+ = render :partial => 'api_docs/params', :object => api_details['params']
25
25
 
26
26
  .row
27
- = render :partial => 'response', :object => api_details, :locals => {:response_type => 'success'}
28
- = render :partial => 'response', :object => api_details, :locals => {:response_type => 'fail'}
27
+ = render :partial => 'api_docs/response', :object => api_details, :locals => {:response_type => 'success'}
28
+ = render :partial => 'api_docs/response', :object => api_details, :locals => {:response_type => 'fail'}
29
29
 
30
- = render :partial => 'curl', :locals => {:api_details => api_details}
30
+ = render :partial => 'api_docs/curl', :locals => {:api_details => api_details}
31
31
 
32
- = render :partial => 'form', :locals => {:api_details => api_details}
32
+ = render :partial => 'api_docs/form', :locals => {:api_details => api_details}
33
33
 
data/lib/api_docs.rb CHANGED
@@ -31,7 +31,7 @@ module ApiDocs
31
31
  docs.each do |section|
32
32
  @api_docs[section] = YAML::load(File.open("#{Rails.root}#{ApiDocs.config.yaml_docs_folder}/#{section}.yml"))
33
33
  end
34
- render_to_string(:partial => 'api_docs').html_safe
34
+ render_to_string(:partial => 'api_docs/api_docs').html_safe
35
35
  end
36
36
 
37
37
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_docs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jack Neto
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-05-02 00:00:00 -04:00
19
+ date: 2012-05-03 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency