ananke 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +21 -5
  2. data/lib/version.rb +1 -1
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -101,9 +101,9 @@ The link to <b>Self</b> uses this method. The output will be something like this
101
101
 
102
102
  rest :user do
103
103
  id :id
104
- link_to :computer
104
+ link_to :car
105
105
  end
106
- rest :computer do
106
+ rest :car do
107
107
  id :id
108
108
  route_for :user
109
109
  end
@@ -114,9 +114,9 @@ The link to <b>Self</b> uses this method. The output will be something like this
114
114
  [Return User for User Id]
115
115
  end
116
116
  end
117
- module Computer
117
+ module Car
118
118
  def self.user(id)
119
- [Return List of Computers for User Id]
119
+ [Return List of Cars for User Id]
120
120
  end
121
121
  end
122
122
  end
@@ -124,7 +124,7 @@ The link to <b>Self</b> uses this method. The output will be something like this
124
124
  Routes Available/Registered:
125
125
 
126
126
  /user/:id
127
- /computer/user/:id
127
+ /car/user/:id
128
128
 
129
129
  Output:
130
130
 
@@ -146,6 +146,22 @@ Output:
146
146
  }
147
147
 
148
148
  This way of linking solves a lot of problems, and can also be used for searching support.
149
+ <b>route_for</b> supports an optional 2nd parameter to specify the type of request it must register for:
150
+
151
+ rest :car do
152
+ id :id
153
+ route_for :user, :post
154
+ end
155
+
156
+ The Called Repository can also have multiple input paramaters:
157
+
158
+ def some_method(id, name, email)
159
+ ...
160
+ end
161
+
162
+ will need an incoming Request with these paramaters:
163
+
164
+ id, name, email
149
165
 
150
166
  == Media Type
151
167
  The REST media type can be built up:
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ananke
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ananke
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andries Coetzee
@@ -127,7 +127,7 @@ licenses: []
127
127
  post_install_message: |
128
128
  **************************************************
129
129
 
130
- Thank you for installing ananke-0.0.9
130
+ Thank you for installing ananke-0.1.0
131
131
 
132
132
  Please be sure to look at README.rdoc to see what might have changed
133
133
  since the last release and how to use this GEM.
@@ -156,7 +156,7 @@ rubyforge_project:
156
156
  rubygems_version: 1.5.0
157
157
  signing_key:
158
158
  specification_version: 3
159
- summary: ananke-0.0.9
159
+ summary: ananke-0.1.0
160
160
  test_files:
161
161
  - spec/nice_formatter.rb
162
162
  - spec/call_chain.rb