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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f021832fedc09fd39c6daadd01556d3c21bda3fc
4
- data.tar.gz: 041905f84ab2ad5a16fc447727cd72cfef2969cb
3
+ metadata.gz: 31d3f0e2efbaa84baf6c1a2446470255fe3de672
4
+ data.tar.gz: 1741ec4faa28198dfc0814adee2ac642bc37ca62
5
5
  SHA512:
6
- metadata.gz: ee6611329de0bd06e9ac8cf39e87b0e4cb86da11702aff2ff26e97c2279f49468bf164c3470bb16337dc6e58cbe25860611d5b58edf1c2068db8c91d4cd8065f
7
- data.tar.gz: 2cdab44ec04e7ae5fd335cd2235d691e27e2ed92e4c977bb1cd385f74d04f448fd93cc734b5a859eae32c3e86763aba4604b5e5cef24533635cd3a6247af6eda
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 `before_filter` to redirect to `http://lvh.me:<port>` (or the configured redirect domain and port)
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 `before_filter` which will check if the request is served by [http://lvh.me](http://lvh.me). If not it will redirect to the domain.
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
 
@@ -2,7 +2,7 @@ module LocalSubdomain
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- before_filter :redirect_to_lvh_me
5
+ before_action :redirect_to_lvh_me
6
6
  end
7
7
 
8
8
  def redirect_to_lvh_me
@@ -1,3 +1,3 @@
1
1
  module LocalSubdomain
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  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.1
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-03-11 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler