local-subdomain 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/local-subdomain/filters/local_subdomain.rb +1 -1
- data/lib/local-subdomain/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31d3f0e2efbaa84baf6c1a2446470255fe3de672
|
4
|
+
data.tar.gz: 1741ec4faa28198dfc0814adee2ac642bc37ca62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 949b788436bd215c3869b86a667dd378ea92313e1dc568e7ecef51a7105ee530f8c1292f4233974f2b8cf5c5b6161894086477c7cd2596a8262a94b193dca561
|
7
|
+
data.tar.gz: e1e82c7ba2e0aa7ac83eb1c962567bc3238bd61b7fd11c2aeb28cc99fce13091773a92f3238080d64cf38e3e929e75f509634502182da13cd65adf2f011e765d
|
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
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel van Rijn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|