rescik 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/examples/example.rb CHANGED
@@ -3,7 +3,7 @@ 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({"name" => ["required", "string", "This is the name"],
6
+ params("This describes params", {"name" => ["required", "string", "This is the name"],
7
7
  "product_type" => ["required", "string", "This is product's type"],
8
8
  "cover_id" => ["required", "string", "this is cover id"]})
9
9
 
data/lib/rescik.rb CHANGED
@@ -30,9 +30,10 @@ class Rescik < Prawn::Document
30
30
  text desc, :size => 9
31
31
  end
32
32
 
33
- def params(opts)
33
+ def params(info, opts = {})
34
34
  move_down 10
35
35
  text "Parameters", :style => :bold, :size => 9
36
+ text info, :size => 9
36
37
  move_down 5
37
38
  opts.each { |k, v|
38
39
  text "- #{k}", :style => :bold, :size => 9
data/rescik-0.2.0.gem ADDED
Binary file
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.2.0"
8
+ s.version = "0.3.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,6 +22,7 @@ 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",
25
26
  "rescik.gemspec"
26
27
  ]
27
28
  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: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ignacy Moryc
@@ -34,6 +34,7 @@ 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
37
38
  - rescik.gemspec
38
39
  has_rdoc: true
39
40
  homepage: http://github.com/ignacy/rescik