angus-router 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 23e229a9ab8e0ab0c5a2759cccc252bf0f55df8b
4
- data.tar.gz: 2717f43c081f4ae84cd8cff84a5d790750c47117
2
+ SHA256:
3
+ metadata.gz: 43fa2c81461bd6ab05ddc2d2f7bbf0eaffc126e54890521fd2fa1a5010549ab6
4
+ data.tar.gz: 342febd6dccfea511f21a06823310819dfbf93f9feb5d777db2a828ba1b848e1
5
5
  SHA512:
6
- metadata.gz: 9ebabff008794050195ef91b935fe19ec1ac4bb2fa937a595ae96b593ca0269f33045dcb6b040488a8aeb2e841d95438a5a05c727884d37e1d7ae5d8c8ed9b81
7
- data.tar.gz: 2d3e178c3ef09c9646df5768d7c2968d6138943b707adebcb18189122fc351931163b6d93c3de5c73728cdbf28073318ce0a41af77c266748ae71a6d3a43dfbd
6
+ metadata.gz: d8f05655fbac81f570901e8d68b410eb8507cd69873e8b312b942c82bf328e297bd18091ef74625300b7a5c831765d7e828bc65a7df30b1c58a79efd91d27f42
7
+ data.tar.gz: 265d68ebdd5750cbcec05ca733df619a8aaa9d91df1a74bdce8047f812486ba8912a2b34df2062a3a681b0f944fcb3ad52d8a80dd1fe79f257dfe7cf38a5786c
@@ -0,0 +1,5 @@
1
+ module Angus
2
+ class Router
3
+ VERSION = '0.0.4'
4
+ end
5
+ end
data/lib/angus/router.rb CHANGED
@@ -3,8 +3,6 @@ require 'rack'
3
3
  module Angus
4
4
  class Router
5
5
 
6
- VERSION = '0.0.2'
7
-
8
6
  RE_TRAILING_SLASH = %r{/\Z}
9
7
 
10
8
  SUPPORTED_HTTP_METHODS = [
@@ -149,8 +147,8 @@ module Angus
149
147
  #
150
148
  # @return [String]
151
149
  def encoded(char)
152
- enc = URI.escape(char)
153
- enc = "(?:#{Regexp.escape enc}|#{URI.escape char, /./})" if enc == char
150
+ enc = CGI.escape(char)
151
+ enc = "(?:#{Regexp.escape(enc)}|#{CGI.escape(char)})" if enc == char
154
152
  enc = "(?:#{enc}|#{encoded('+')})" if char == " "
155
153
  enc
156
154
  end
@@ -195,4 +193,4 @@ module Angus
195
193
  end
196
194
 
197
195
  end
198
- end
196
+ end
metadata CHANGED
@@ -1,113 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angus-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gianfranco Zas
8
+ - Adrian Gomez
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-30 00:00:00.000000000 Z
12
+ date: 2023-01-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rack
15
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ~>
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.5'
20
- requirement: !ruby/object:Gem::Requirement
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
21
24
  requirements:
22
- - - ~>
25
+ - - "~>"
23
26
  - !ruby/object:Gem::Version
24
27
  version: '1.5'
25
- prerelease: false
26
- type: :runtime
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rake
29
- version_requirements: !ruby/object:Gem::Requirement
30
+ requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - '>='
32
+ - - ">="
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
- requirement: !ruby/object:Gem::Requirement
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
35
38
  requirements:
36
- - - '>='
39
+ - - ">="
37
40
  - !ruby/object:Gem::Version
38
41
  version: '0'
39
- prerelease: false
40
- type: :development
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: rspec
43
- version_requirements: !ruby/object:Gem::Requirement
44
+ requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ~>
46
+ - - "~>"
46
47
  - !ruby/object:Gem::Version
47
48
  version: '2.14'
48
- requirement: !ruby/object:Gem::Requirement
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
49
52
  requirements:
50
- - - ~>
53
+ - - "~>"
51
54
  - !ruby/object:Gem::Version
52
55
  version: '2.14'
53
- prerelease: false
54
- type: :development
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: simplecov
57
- version_requirements: !ruby/object:Gem::Requirement
58
+ requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
60
  - - '='
60
61
  - !ruby/object:Gem::Version
61
62
  version: 0.7.1
62
- requirement: !ruby/object:Gem::Requirement
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
63
66
  requirements:
64
67
  - - '='
65
68
  - !ruby/object:Gem::Version
66
69
  version: 0.7.1
67
- prerelease: false
68
- type: :development
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: simplecov-rcov
71
- version_requirements: !ruby/object:Gem::Requirement
72
+ requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
74
  - - '='
74
75
  - !ruby/object:Gem::Version
75
76
  version: 0.2.3
76
- requirement: !ruby/object:Gem::Requirement
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
77
80
  requirements:
78
81
  - - '='
79
82
  - !ruby/object:Gem::Version
80
83
  version: 0.2.3
81
- prerelease: false
82
- type: :development
83
84
  - !ruby/object:Gem::Dependency
84
85
  name: simplecov-rcov-text
85
- version_requirements: !ruby/object:Gem::Requirement
86
+ requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
88
  - - '='
88
89
  - !ruby/object:Gem::Version
89
90
  version: 0.0.2
90
- requirement: !ruby/object:Gem::Requirement
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
91
94
  requirements:
92
95
  - - '='
93
96
  - !ruby/object:Gem::Version
94
97
  version: 0.0.2
95
- prerelease: false
96
- type: :development
97
98
  - !ruby/object:Gem::Dependency
98
99
  name: ci_reporter
99
- version_requirements: !ruby/object:Gem::Requirement
100
+ requirement: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - '>='
102
+ - - ">="
102
103
  - !ruby/object:Gem::Version
103
104
  version: '0'
104
- requirement: !ruby/object:Gem::Requirement
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
105
108
  requirements:
106
- - - '>='
109
+ - - ">="
107
110
  - !ruby/object:Gem::Version
108
111
  version: '0'
109
- prerelease: false
110
- type: :development
111
112
  description: |2
112
113
  Angus-router is a powerful router for your next generation of awesome Rack applications.
113
114
  Just throw your shit into angus-router and run away.
@@ -119,7 +120,8 @@ extra_rdoc_files: []
119
120
  files:
120
121
  - lib/angus-router.rb
121
122
  - lib/angus/router.rb
122
- homepage: http://mooveit.github.io/angus-router
123
+ - lib/angus/router/version.rb
124
+ homepage: https://github.com/Moove-it/angus-router
123
125
  licenses:
124
126
  - MIT
125
127
  metadata: {}
@@ -129,17 +131,16 @@ require_paths:
129
131
  - lib
130
132
  required_ruby_version: !ruby/object:Gem::Requirement
131
133
  requirements:
132
- - - '>='
134
+ - - ">="
133
135
  - !ruby/object:Gem::Version
134
- version: '0'
136
+ version: 2.7.0
135
137
  required_rubygems_version: !ruby/object:Gem::Requirement
136
138
  requirements:
137
- - - '>='
139
+ - - ">="
138
140
  - !ruby/object:Gem::Version
139
141
  version: '0'
140
142
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.1.5
143
+ rubygems_version: 3.3.7
143
144
  signing_key:
144
145
  specification_version: 4
145
146
  summary: Router for Rack applications.