hart 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/README.md +2 -2
- data/hart.gemspec +1 -1
- data/lib/hart.rb +1 -5
- data/test/all.rb +4 -0
- 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: e911126ddb2bbab2837ac3eda556f24bf7906ab9
|
4
|
+
data.tar.gz: d43d0c1b55e0981756ed34163c81b266ba96ec2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3024497777d98362035c852453387c3e063292014bf1f47d6fd76d8d7df6bc760482c9137f7987c3d77c2916d03ef5e4407084207f99c12ee8d9b4c395a78187
|
7
|
+
data.tar.gz: 80e8aad29fc8e3970433fa704cd44652bf6eeff192755666d0f0e4a644179b8a33f1811634dd87b06f9941d5392db26b03fa336eea0632c25305cb66ddca46df
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -41,7 +41,7 @@ words = {
|
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
44
|
-
h = Hart.new(
|
44
|
+
h = Hart.new(words)
|
45
45
|
h.call(:define, "/c/o/d") #=> "A husk; a pod; as, a peascod."
|
46
46
|
h.call(:define, "/c/o/d/e") #=> "System of rules relating to one subject."
|
47
47
|
h.call(:define, "/c/o/d/e/r") #=> nil
|
@@ -133,7 +133,7 @@ routes = {
|
|
133
133
|
},
|
134
134
|
|
135
135
|
"users" => {
|
136
|
-
GET: [200, {}, ["GET /
|
136
|
+
GET: [200, {}, ["GET /users"]],
|
137
137
|
|
138
138
|
id: proc { |id|
|
139
139
|
{
|
data/hart.gemspec
CHANGED
data/lib/hart.rb
CHANGED
data/test/all.rb
CHANGED
@@ -114,6 +114,10 @@ scope "routing HTTP requests" do
|
|
114
114
|
assert_equal 200, f.last_response.status
|
115
115
|
assert_equal "GET /foo/bar", f.last_response.body
|
116
116
|
|
117
|
+
f.get("/foo")
|
118
|
+
assert_equal 404, f.last_response.status
|
119
|
+
assert_equal "", f.last_response.body
|
120
|
+
|
117
121
|
f.put("/foo/bar")
|
118
122
|
assert_equal 200, f.last_response.status
|
119
123
|
assert_equal "PUT /foo/bar", f.last_response.body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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-12-
|
11
|
+
date: 2015-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: seg
|