yard-rest-plugin 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/yard-rest-plugin.rb +2 -2
- data/templates/rest/tags/html/example_response.erb +1 -1
- data/yard-rest-plugin.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/yard-rest-plugin.rb
CHANGED
@@ -9,6 +9,6 @@ YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../tem
|
|
9
9
|
# Define custom tags
|
10
10
|
YARD::Tags::Library.define_tag("URL for Service", :url)
|
11
11
|
YARD::Tags::Library.define_tag("Arguments", :argument, :with_types_and_name)
|
12
|
-
YARD::Tags::Library.define_tag("Example
|
13
|
-
YARD::Tags::Library.define_tag("Response
|
12
|
+
YARD::Tags::Library.define_tag("Example Responses", :example_response)
|
13
|
+
YARD::Tags::Library.define_tag("Response Fields", :response_field, :with_name)
|
14
14
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% if object.has_tag?(:example_response) %>
|
2
2
|
<div class="examples">
|
3
|
-
<h3>Example
|
3
|
+
<h3>Example Responses:</h3>
|
4
4
|
<% object.tags(:example_response).each do |tag| %>
|
5
5
|
<h4><%= htmlify_line(tag.name) %></h4>
|
6
6
|
<pre class="example code"><%= html_syntax_highlight(tag.text, :plain) %></pre>
|
data/yard-rest-plugin.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{yard-rest-plugin}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aisha Fenton"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-05-14}
|
13
13
|
s.description = %q{A plugin for Yardoc that produces API documentation for Restful web services. See README.markdown for more details}
|
14
14
|
s.email = %q{aisha.fenton@visfleet.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Aisha Fenton
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-14 00:00:00 +12:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|