local-subdomain 1.0.1 → 1.0.3
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 +5 -5
- data/.github/dependabot.yml +10 -0
- data/README.md +2 -2
- data/lib/local-subdomain/filters/local_subdomain.rb +1 -1
- data/lib/local-subdomain/rack/handler.rb +1 -1
- data/lib/local-subdomain/version.rb +1 -1
- data/local-subdomain.gemspec +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1995245b782fe64d705652e7fbf06c700a455f5ce95a61343953332f6c1d28c6
|
4
|
+
data.tar.gz: 9ae3285e5ce32cb9b332981575bdfe761603ad2fb123ee896cafc4ecaf68cb2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a1b7a44c9bd580ff6b220a5a1a8f3f94fce872019f002839fecf811d708183a14bc56173d4fe6edcfdda0a928583fecdad52aabb788ab4efcc980ac5f01075
|
7
|
+
data.tar.gz: a1f0fbc2b4e2d564170389014b6ba3123e5475bbde16080846f1124af172888644f28c9ec45f8eeb6dc6619b739fb56e410896210f481b81deab29f27d3787ca
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ By default the gem uses the domain `lvh.me` with the port used, when running the
|
|
42
42
|
Basically it does two things:
|
43
43
|
|
44
44
|
1. Extends the `Rack::Handler` to make sure we bind to `0.0.0.0` instead of `localhost`
|
45
|
-
2. Adds the `LocalSubdomain` module which executes a `
|
45
|
+
2. Adds the `LocalSubdomain` module which executes a `before_action` to redirect to `http://lvh.me:<port>` (or the configured redirect domain and port)
|
46
46
|
|
47
47
|
### Rack::Handler
|
48
48
|
|
@@ -53,7 +53,7 @@ Because we're going to use the external domain [http://lvh.me](http://lvh.me) wh
|
|
53
53
|
|
54
54
|
### LocalSubdomain module
|
55
55
|
|
56
|
-
This module includes a `
|
56
|
+
This module includes a `before_action` which will check if the request is served by [http://lvh.me](http://lvh.me). If not it will redirect to the domain.
|
57
57
|
|
58
58
|
So when we browse to [http://localhost:3000](http://localhost:3000) it will redirect you to [http://lvh.me:3000](http://lvh.me:3000)
|
59
59
|
|
data/local-subdomain.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_development_dependency 'bundler', '~>
|
23
|
-
spec.add_development_dependency 'rake', '~>
|
22
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
23
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: local-subdomain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel van Rijn
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
description: This gem helps out when your application depends on subdomain support
|
42
42
|
and you don't want to modify you /etc/hosts file all the time for your development
|
43
43
|
environment.
|
@@ -47,6 +47,7 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
+
- ".github/dependabot.yml"
|
50
51
|
- ".gitignore"
|
51
52
|
- Gemfile
|
52
53
|
- LICENSE.txt
|
@@ -61,7 +62,7 @@ homepage: https://github.com/manuelvanrijn/local-subdomain
|
|
61
62
|
licenses:
|
62
63
|
- MIT
|
63
64
|
metadata: {}
|
64
|
-
post_install_message:
|
65
|
+
post_install_message:
|
65
66
|
rdoc_options: []
|
66
67
|
require_paths:
|
67
68
|
- lib
|
@@ -76,9 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
77
|
- !ruby/object:Gem::Version
|
77
78
|
version: '0'
|
78
79
|
requirements: []
|
79
|
-
|
80
|
-
|
81
|
-
signing_key:
|
80
|
+
rubygems_version: 3.2.15
|
81
|
+
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: subdomain support in your development environment
|
84
84
|
test_files: []
|