rack-subdomain 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +25 -9
- data/{LICENSE → LICENSE.md} +1 -1
- data/README.md +7 -10
- data/lib/rack/subdomain/version.rb +5 -0
- data/rack-subdomain.gemspec +6 -4
- metadata +34 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91ed6a0f8dcfb0151fa71f14868c4d425e5a019a
|
4
|
+
data.tar.gz: 07c51f5fea88d6531eb1a0bd4014d669f0bf937d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5db9953985c58abd460029cd5e67fb077740852e6e803d514a47bd2d03721c64f3abf6c9e6e270b9be42ed40c7475fe8134d9d2f5aecb7e4a6fff5fcffb0d465
|
7
|
+
data.tar.gz: 5f14f4360bb0b4072e010c425f6e7fa2f985bdc6d2c1444c74617f9db4fc1acad681c8362074a6a72aed28fb98def0e44a1b2e1fb79ef8ec9665fe0fc5c3f514
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-subdomain (0.
|
4
|
+
rack-subdomain (0.4.0)
|
5
5
|
ipaddress (~> 0.8.0)
|
6
|
-
rack (
|
6
|
+
rack (~> 1.2, < 2.0.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
rack
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
diff-lcs (1.3)
|
12
|
+
ipaddress (0.8.3)
|
13
|
+
minitest (2.12.1)
|
14
|
+
rack (1.6.11)
|
15
|
+
rack-test (0.8.3)
|
16
|
+
rack (>= 1.0, < 3)
|
17
|
+
rake (12.3.2)
|
18
|
+
rspec (3.8.0)
|
19
|
+
rspec-core (~> 3.8.0)
|
20
|
+
rspec-expectations (~> 3.8.0)
|
21
|
+
rspec-mocks (~> 3.8.0)
|
22
|
+
rspec-core (3.8.2)
|
23
|
+
rspec-support (~> 3.8.0)
|
24
|
+
rspec-expectations (3.8.4)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.8.0)
|
27
|
+
rspec-mocks (3.8.1)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.8.0)
|
30
|
+
rspec-support (3.8.2)
|
18
31
|
|
19
32
|
PLATFORMS
|
20
33
|
ruby
|
@@ -25,3 +38,6 @@ DEPENDENCIES
|
|
25
38
|
rack-test (~> 0.6)
|
26
39
|
rake
|
27
40
|
rspec
|
41
|
+
|
42
|
+
BUNDLED WITH
|
43
|
+
2.0.1
|
data/{LICENSE → LICENSE.md}
RENAMED
data/README.md
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
# rack-subdomain
|
2
2
|
|
3
|
-
Rack middleware to transparently route requests with a subdomain
|
3
|
+
Rack middleware to transparently route requests with a subdomain
|
4
|
+
to a specified path with substitutions.
|
4
5
|
|
5
6
|
## Usage
|
6
7
|
|
7
8
|
### Gemfile
|
8
9
|
|
9
|
-
```
|
10
|
+
```ruby
|
10
11
|
gem 'rack-subdomain'
|
11
12
|
```
|
12
13
|
|
13
14
|
### config.ru
|
14
15
|
|
15
|
-
```
|
16
|
-
|
16
|
+
```ruby
|
17
17
|
# Simple Example
|
18
18
|
|
19
19
|
use Rack::Subdomain, "example.com", to: "/users/:subdomain"
|
@@ -27,12 +27,9 @@ end
|
|
27
27
|
|
28
28
|
## Contact
|
29
29
|
|
30
|
-
Mattt
|
31
|
-
|
32
|
-
- http://github.com/mattt
|
33
|
-
- http://twitter.com/mattt
|
34
|
-
- m@mattt.me
|
30
|
+
[Mattt](https://twitter.com/mattt)
|
35
31
|
|
36
32
|
## License
|
37
33
|
|
38
|
-
rack-subdomain is available under the MIT license.
|
34
|
+
rack-subdomain is available under the MIT license.
|
35
|
+
See the LICENSE file for more info.
|
data/rack-subdomain.gemspec
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "rack/subdomain/version"
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
5
6
|
s.name = "rack-subdomain"
|
6
|
-
s.authors = ["Mattt
|
7
|
-
s.email = "
|
7
|
+
s.authors = ["Mattt", "Piotr Sarnacki"]
|
8
|
+
s.email = "mattt@me.com"
|
9
|
+
s.license = "MIT"
|
8
10
|
s.homepage = "http://github.com/mattt/rack-subdomain"
|
9
|
-
s.version =
|
11
|
+
s.version = Rack::Subdomain::VERSION
|
10
12
|
s.platform = Gem::Platform::RUBY
|
11
13
|
s.summary = "rack-subdomain"
|
12
14
|
s.description = "Rack middleware to route requests with subdomains to specified routes with substitutions"
|
13
15
|
|
14
|
-
s.add_runtime_dependency "rack", "
|
16
|
+
s.add_runtime_dependency "rack", "~> 1.2", "< 2.0.0"
|
15
17
|
|
16
18
|
s.add_dependency "ipaddress", "~> 0.8.0"
|
17
19
|
|
metadata
CHANGED
@@ -1,123 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-subdomain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Mattt
|
7
|
+
- Mattt
|
8
8
|
- Piotr Sarnacki
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-07-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.2
|
21
|
-
- -
|
20
|
+
version: '1.2'
|
21
|
+
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 2.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 1.2
|
31
|
-
- -
|
30
|
+
version: '1.2'
|
31
|
+
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.0.0
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: ipaddress
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.8.0
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.8.0
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rspec
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rake
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: minitest
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.11'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '2.11'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: rack-test
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.6'
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0.6'
|
104
104
|
description: Rack middleware to route requests with subdomains to specified routes
|
105
105
|
with substitutions
|
106
|
-
email:
|
106
|
+
email: mattt@me.com
|
107
107
|
executables: []
|
108
108
|
extensions: []
|
109
109
|
extra_rdoc_files: []
|
110
110
|
files:
|
111
|
-
- ./Gemfile
|
112
|
-
- ./Gemfile.lock
|
113
|
-
- ./
|
114
|
-
- ./
|
115
|
-
- ./
|
116
|
-
- ./rack-subdomain.
|
117
|
-
- ./
|
118
|
-
- ./
|
111
|
+
- "./Gemfile"
|
112
|
+
- "./Gemfile.lock"
|
113
|
+
- "./LICENSE.md"
|
114
|
+
- "./README.md"
|
115
|
+
- "./Rakefile"
|
116
|
+
- "./lib/rack-subdomain.rb"
|
117
|
+
- "./lib/rack/subdomain.rb"
|
118
|
+
- "./lib/rack/subdomain/version.rb"
|
119
|
+
- "./rack-subdomain.gemspec"
|
119
120
|
homepage: http://github.com/mattt/rack-subdomain
|
120
|
-
licenses:
|
121
|
+
licenses:
|
122
|
+
- MIT
|
121
123
|
metadata: {}
|
122
124
|
post_install_message:
|
123
125
|
rdoc_options: []
|
@@ -125,17 +127,17 @@ require_paths:
|
|
125
127
|
- lib
|
126
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
129
|
requirements:
|
128
|
-
- -
|
130
|
+
- - ">="
|
129
131
|
- !ruby/object:Gem::Version
|
130
132
|
version: '0'
|
131
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
134
|
requirements:
|
133
|
-
- -
|
135
|
+
- - ">="
|
134
136
|
- !ruby/object:Gem::Version
|
135
137
|
version: '0'
|
136
138
|
requirements: []
|
137
139
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.6.14
|
139
141
|
signing_key:
|
140
142
|
specification_version: 4
|
141
143
|
summary: rack-subdomain
|