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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/route.rb +16 -16
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47f7794e1baa598eb224745e87ee75f82672f72f
4
- data.tar.gz: 8ec6cdc1ad6377e0a553e6fb8b8967a4a004e287
3
+ metadata.gz: a96bf7d7065a050b44d3ec167c393cd3cdb25523
4
+ data.tar.gz: ef3b6068a6a4fc284045fc3504acc0e86ab88255
5
5
  SHA512:
6
- metadata.gz: f203b94527651686da8616f175d1842fa5065d62405e90e1c4b39a6ad0ec3685a76fc8fa0e3efeba1c3c329e2ac8ecd78e596c8e4f59ed27ecc62d69c5366405
7
- data.tar.gz: 41697df3b093a6ab27b82bcd26a895d31fef0f71c73bdf64d7a858b0f0c6ab3c9ed3a14878af66c93449f330b1910a1bdf3ca903f4efa9bcb257b69317aea2df
6
+ metadata.gz: e9083a1a51d2e5c0f4f6aed57d3c5e73d1b7fdbcef0e0d80daa0d0ae01bf6f372db913afffe75b789a5f22de5982cb0a91ff60450d236f29a5c0c165c3ddac16
7
+ data.tar.gz: 9146d4eb5cc153f8bef921079daa78b3e33c3eeb4a6891dfe0c7a0f3fd23eba0a3b809ff027c34ef67bca111853a5d1f92e1128385bd0d3d18a7b31b130bdadd
data/lib/route.rb CHANGED
@@ -1,24 +1,24 @@
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.
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
- module RackStep
5
+ module RackStep
6
6
 
7
- class Route
7
+ class Route
8
8
 
9
- attr_accessor :verb, :path, :controller
9
+ attr_accessor :verb, :path, :controller
10
10
 
11
- def initialize(verb, path, controller)
12
- @verb = verb
13
- @path = path
14
- @controller = controller
15
- end
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.8
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: 2016-05-19 00:00:00.000000000 Z
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.5.1
45
+ rubygems_version: 2.6.8
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: RackStep micro web framework