rackstep 0.0.8 → 0.0.9
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/route.rb +16 -16
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a96bf7d7065a050b44d3ec167c393cd3cdb25523
|
|
4
|
+
data.tar.gz: ef3b6068a6a4fc284045fc3504acc0e86ab88255
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9083a1a51d2e5c0f4f6aed57d3c5e73d1b7fdbcef0e0d80daa0d0ae01bf6f372db913afffe75b789a5f22de5982cb0a91ff60450d236f29a5c0c165c3ddac16
|
|
7
|
+
data.tar.gz: 9146d4eb5cc153f8bef921079daa78b3e33c3eeb4a6891dfe0c7a0f3fd23eba0a3b809ff027c34ef67bca111853a5d1f92e1128385bd0d3d18a7b31b130bdadd
|
data/lib/route.rb
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# Represents a single route. The verb can be 'GET', 'PUT', 'POST' or 'DELETE'.
|
|
2
|
+
# The path is a string with something like 'users', the controller is the
|
|
3
|
+
# name of the class that will process this type of request.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
module RackStep
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
class Route
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
attr_accessor :verb, :path, :controller
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# Unique id (String) of the route (verb + path). Eg: 'GETuser'.
|
|
18
|
-
def id
|
|
19
|
-
verb + path
|
|
20
|
-
end
|
|
11
|
+
def initialize(verb, path, controller)
|
|
12
|
+
@verb = verb
|
|
13
|
+
@path = path
|
|
14
|
+
@controller = controller
|
|
15
|
+
end
|
|
21
16
|
|
|
17
|
+
# Unique id (String) of the route (verb + path). Eg: 'GETuser'.
|
|
18
|
+
def id
|
|
19
|
+
verb + path
|
|
22
20
|
end
|
|
23
21
|
|
|
22
|
+
end
|
|
23
|
+
|
|
24
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rackstep
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcio Frayze David
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: RackStep is (yet another) micro ruby framework for microservices and
|
|
14
14
|
web development.
|
|
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
42
42
|
version: '0'
|
|
43
43
|
requirements: []
|
|
44
44
|
rubyforge_project:
|
|
45
|
-
rubygems_version: 2.
|
|
45
|
+
rubygems_version: 2.6.8
|
|
46
46
|
signing_key:
|
|
47
47
|
specification_version: 4
|
|
48
48
|
summary: RackStep micro web framework
|