syro 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/syro.rb +8 -0
- data/syro.gemspec +1 -1
- data/test/all.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb3f4305da6d5ee66e017bd8edd112ae30f98891
|
4
|
+
data.tar.gz: d7befe3d26ed52507decd6b340cabcac3a921e8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f9fcc63c2f77c4090c9f1252d7ddff0a0b05f27fc3440e135b077f47729dcc38196907e04b3b8d53275824e19023e6212711c0186aea50aaac0f30868ba6dd0
|
7
|
+
data.tar.gz: 20d7b8cbd9b6ea83465151988d80793ea67880e33417de8ad706be4badbc33740de33aa1cc93a17eb2ccf69f52fa48158309198d8bdf54166ed14116e14ade9b
|
data/CHANGELOG
CHANGED
data/lib/syro.rb
CHANGED
data/syro.gemspec
CHANGED
data/test/all.rb
CHANGED
@@ -58,6 +58,10 @@ app = Syro.new {
|
|
58
58
|
res.write("GET /foo/bar")
|
59
59
|
}
|
60
60
|
|
61
|
+
put {
|
62
|
+
res.write("PUT /foo/bar")
|
63
|
+
}
|
64
|
+
|
61
65
|
post {
|
62
66
|
res.write("POST /foo/bar")
|
63
67
|
}
|
@@ -134,14 +138,18 @@ test "path + verb" do |f|
|
|
134
138
|
assert_equal 200, f.last_response.status
|
135
139
|
assert_equal "GET /foo/bar", f.last_response.body
|
136
140
|
|
137
|
-
f.
|
141
|
+
f.put("/foo/bar")
|
138
142
|
assert_equal 200, f.last_response.status
|
139
|
-
assert_equal "
|
143
|
+
assert_equal "PUT /foo/bar", f.last_response.body
|
140
144
|
|
141
145
|
f.post("/foo/bar")
|
142
146
|
assert_equal 200, f.last_response.status
|
143
147
|
assert_equal "POST /foo/bar", f.last_response.body
|
144
148
|
|
149
|
+
f.patch("/foo/bar")
|
150
|
+
assert_equal 200, f.last_response.status
|
151
|
+
assert_equal "PATCH /foo/bar", f.last_response.body
|
152
|
+
|
145
153
|
f.delete("/foo/bar")
|
146
154
|
assert_equal 200, f.last_response.status
|
147
155
|
assert_equal "DELETE /foo/bar", f.last_response.body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Martens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: seg
|