rescik 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/examples/example.rb +3 -3
- data/lib/rescik.rb +1 -1
- data/rescik.gemspec +1 -2
- metadata +3 -4
- data/rescik-0.2.0.gem +0 -0
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/examples/example.rb
CHANGED
@@ -3,9 +3,9 @@ require File.dirname(__FILE__) + "/../lib/rescik"
|
|
3
3
|
Rescik.generate("REST_API.pdf") do
|
4
4
|
method("POST", "/products") do
|
5
5
|
description "This methods allows us to create new products using XML REST API"
|
6
|
-
params("This describes params", {"name" => ["
|
7
|
-
"product_type" => ["
|
8
|
-
"cover_id" => ["
|
6
|
+
params("This describes params", {"name" => ["string", "This is the name"],
|
7
|
+
"product_type" => ["string", "This is product's type"],
|
8
|
+
"cover_id" => ["string", "this is cover id"]})
|
9
9
|
|
10
10
|
example_response(<<-RESPONSE
|
11
11
|
<?xml version="1.0" encoding="UTF-8"?>
|
data/lib/rescik.rb
CHANGED
@@ -37,7 +37,7 @@ class Rescik < Prawn::Document
|
|
37
37
|
move_down 5
|
38
38
|
opts.each { |k, v|
|
39
39
|
text "- #{k}", :style => :bold, :size => 9
|
40
|
-
text "(
|
40
|
+
text "(type: #{v.first}) #{v.last || ""}", :size => 9
|
41
41
|
move_down(3)
|
42
42
|
}
|
43
43
|
end
|
data/rescik.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rescik}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ignacy Moryc"]
|
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
|
|
22
22
|
"examples/example.rb",
|
23
23
|
"lib/rescik.rb",
|
24
24
|
"pkg/rescik-0.1.0.gem",
|
25
|
-
"rescik-0.2.0.gem",
|
26
25
|
"rescik.gemspec"
|
27
26
|
]
|
28
27
|
s.homepage = %q{http://github.com/ignacy/rescik}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rescik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ignacy Moryc
|
@@ -34,7 +34,6 @@ files:
|
|
34
34
|
- examples/example.rb
|
35
35
|
- lib/rescik.rb
|
36
36
|
- pkg/rescik-0.1.0.gem
|
37
|
-
- rescik-0.2.0.gem
|
38
37
|
- rescik.gemspec
|
39
38
|
has_rdoc: true
|
40
39
|
homepage: http://github.com/ignacy/rescik
|
data/rescik-0.2.0.gem
DELETED
Binary file
|