reststop 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.loadpath +2 -0
- data/History.txt +5 -1
- data/lib/reststop.rb +7 -4
- data/lib/reststop/version.rb +2 -2
- metadata +14 -3
data/.loadpath
CHANGED
|
@@ -4,4 +4,6 @@
|
|
|
4
4
|
<pathentry path="org.rubypeople.rdt.launching.RUBY_CONTAINER" type="con"/>
|
|
5
5
|
<pathentry path="GEM_LIB/reststop-0.2.0.50/lib" type="var"/>
|
|
6
6
|
<pathentry path="GEM_LIB/reststop-0.2.0.50/lib" type="var"/>
|
|
7
|
+
<pathentry path="GEM_LIB/camping-1.5/lib" type="var"/>
|
|
8
|
+
<pathentry path="GEM_LIB/camping-1.5/lib" type="var"/>
|
|
7
9
|
</loadpath>
|
data/History.txt
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
=== 0.4.0 :: 2009-05-01
|
|
2
|
+
|
|
3
|
+
* Now compatible with Camping 2.0, but no longer works with Camping 1.x :(
|
|
4
|
+
|
|
1
5
|
=== 0.3.0 :: 2008-06-19
|
|
2
6
|
|
|
3
7
|
* Restr has been moved out to its own gem, and should now work properly with
|
|
@@ -30,4 +34,4 @@
|
|
|
30
34
|
|
|
31
35
|
=== 0.1.0 :: 2007-07-30
|
|
32
36
|
|
|
33
|
-
* First public release.
|
|
37
|
+
* First public release.
|
data/lib/reststop.rb
CHANGED
|
@@ -87,10 +87,12 @@ module Camping
|
|
|
87
87
|
# parameter must be 'post' (i.e. :method => post).
|
|
88
88
|
#
|
|
89
89
|
def service(*a)
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
|
|
91
|
+
if @env.REQUEST_METHOD == 'POST' && (input['_method'] == 'put' || input['_method'] == 'delete')
|
|
92
|
+
@env.REQUEST_METHOD = input._method.upcase
|
|
92
93
|
@method = input._method
|
|
93
94
|
end
|
|
95
|
+
|
|
94
96
|
super(*a)
|
|
95
97
|
end
|
|
96
98
|
|
|
@@ -426,12 +428,13 @@ module Camping
|
|
|
426
428
|
else
|
|
427
429
|
action = id_or_action
|
|
428
430
|
end
|
|
431
|
+
|
|
429
432
|
path = "/#{base}"
|
|
430
433
|
path << "/#{id}" if id
|
|
431
434
|
path << "/#{action}" if action
|
|
432
435
|
path << ".#{@format.to_s.downcase}" if @format
|
|
433
|
-
path << "?#{g.collect{|a|a.collect{|k,v|
|
|
434
|
-
|
|
436
|
+
path << "?#{g.collect{|a|a.collect{|k,v| U.escape(k)+"="+U.escape(v)}.join("&")}.join("&")}" unless g.empty? # FIXME: undefined behaviour if there are multiple arguments left
|
|
437
|
+
return path
|
|
435
438
|
else
|
|
436
439
|
_R(c, *g)
|
|
437
440
|
end
|
data/lib/reststop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reststop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Zukowski
|
|
@@ -9,11 +9,12 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-05-01 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: restr
|
|
17
|
+
type: :runtime
|
|
17
18
|
version_requirement:
|
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
|
19
20
|
requirements:
|
|
@@ -21,6 +22,16 @@ dependencies:
|
|
|
21
22
|
- !ruby/object:Gem::Version
|
|
22
23
|
version: "0"
|
|
23
24
|
version:
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: hoe
|
|
27
|
+
type: :development
|
|
28
|
+
version_requirement:
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.8.2
|
|
34
|
+
version:
|
|
24
35
|
description: Convenient RESTfulness for all your Camping needs (i.e. makes it easy to implement RESTful controllers in Camping).
|
|
25
36
|
email: matt@roughest.net
|
|
26
37
|
executables: []
|
|
@@ -71,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
82
|
requirements: []
|
|
72
83
|
|
|
73
84
|
rubyforge_project: reststop
|
|
74
|
-
rubygems_version: 1.
|
|
85
|
+
rubygems_version: 1.3.1
|
|
75
86
|
signing_key:
|
|
76
87
|
specification_version: 2
|
|
77
88
|
summary: Convenient RESTfulness for all your Camping needs (i.e. makes it easy to implement RESTful controllers in Camping).
|