hobby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hobby.gemspec +1 -1
- data/lib/hobby.rb +7 -9
- data/spec/app_spec.rb +0 -7
- metadata +1 -3
- data/spec/apps/Throw.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cee023bb96c263672473ee68ae46e802e33de12
|
4
|
+
data.tar.gz: 03d6f7a16251048b78eb8182bee854f0d8143a27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afdef3c73494576b125a3a3d35804028b2d4db8e39c466ff13e6cbc792a086cc534c9f632d17612055b065140028189ded61497f18848ec01c6c4b6f5a6dcc6e
|
7
|
+
data.tar.gz: 44c6872c0a4d8fccf6ba709bddd6908cc787927abace513d09bc4d575799d9100cd3ed0c89e95a20ac32490e4dc6380ca541177b251d0fe9876ea203374b1989
|
data/hobby.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'hobby'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.5'
|
8
8
|
spec.authors = ['Anatoly Chernow']
|
9
9
|
spec.email = ['chertoly@gmail.com']
|
10
10
|
spec.summary = %q{A minimal DSL over rack}
|
data/lib/hobby.rb
CHANGED
@@ -37,17 +37,15 @@ module Hobby
|
|
37
37
|
|
38
38
|
protected
|
39
39
|
def handle env
|
40
|
-
|
41
|
-
route = self.class.router.route_for (@env = env)
|
40
|
+
route = self.class.router.route_for (@env = env)
|
42
41
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
48
|
-
|
49
|
-
response
|
42
|
+
if route
|
43
|
+
response.write instance_exec &route
|
44
|
+
else
|
45
|
+
response.status = 404
|
50
46
|
end
|
47
|
+
|
48
|
+
response
|
51
49
|
end
|
52
50
|
|
53
51
|
private
|
data/spec/app_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
@@ -50,7 +50,6 @@ files:
|
|
50
50
|
- spec/apps/Map.rb
|
51
51
|
- spec/apps/Nested.rb
|
52
52
|
- spec/apps/OneRouteRouter.rb
|
53
|
-
- spec/apps/Throw.rb
|
54
53
|
- spec/apps/Use.rb
|
55
54
|
- spec/apps/WithoutPath.rb
|
56
55
|
- spec/helper.rb
|
@@ -88,7 +87,6 @@ test_files:
|
|
88
87
|
- spec/apps/Map.rb
|
89
88
|
- spec/apps/Nested.rb
|
90
89
|
- spec/apps/OneRouteRouter.rb
|
91
|
-
- spec/apps/Throw.rb
|
92
90
|
- spec/apps/Use.rb
|
93
91
|
- spec/apps/WithoutPath.rb
|
94
92
|
- spec/helper.rb
|
data/spec/apps/Throw.rb
DELETED