cynic 0.0.3.1 → 0.0.3.2
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/lib/cynic/app.rb +0 -1
- data/lib/cynic/routing.rb +3 -3
- data/lib/cynic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 823bae839b41c6f0ab62c448400acf0b6e44151d
|
|
4
|
+
data.tar.gz: 7c1d10178f90c1eaf6fc7e45c1a78ade88db87c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 126207698093348a5c0dd342678779e2d20db4dd08341550f95e9e8295736d45d818b83f018a0aac1c1d25c106ef37ec423686dddcc200126c982834f55f6bf9
|
|
7
|
+
data.tar.gz: 62dbe748e92119f985f68dbf7c8fc6dd0f26cd3b1b66d7f0f40b970639e7973326fa77eb65ee96f6fcef49e9cd98bef72aecd35da82c7bdce32a690df7ec1f62
|
data/lib/cynic/app.rb
CHANGED
data/lib/cynic/routing.rb
CHANGED
|
@@ -13,14 +13,14 @@ module Cynic
|
|
|
13
13
|
|
|
14
14
|
def go_to(request_method, request_path)
|
|
15
15
|
if action(request_method, request_path)
|
|
16
|
-
action
|
|
16
|
+
action(request_method, request_path)
|
|
17
17
|
else
|
|
18
18
|
raise Error, "undefined routing #{request_method.upcase} '#{request_path}'"
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
def action(request_method
|
|
23
|
-
@
|
|
22
|
+
def action(request_method, request_path)
|
|
23
|
+
@routings[request_method.to_sym][request_path]
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def get(path, options={})
|
data/lib/cynic/version.rb
CHANGED