local-subdomain 1.0.1 → 1.0.3

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: f021832fedc09fd39c6daadd01556d3c21bda3fc
4
- data.tar.gz: 041905f84ab2ad5a16fc447727cd72cfef2969cb
2
+ SHA256:
3
+ metadata.gz: 1995245b782fe64d705652e7fbf06c700a455f5ce95a61343953332f6c1d28c6
4
+ data.tar.gz: 9ae3285e5ce32cb9b332981575bdfe761603ad2fb123ee896cafc4ecaf68cb2d
5
5
  SHA512:
6
- metadata.gz: ee6611329de0bd06e9ac8cf39e87b0e4cb86da11702aff2ff26e97c2279f49468bf164c3470bb16337dc6e58cbe25860611d5b58edf1c2068db8c91d4cd8065f
7
- data.tar.gz: 2cdab44ec04e7ae5fd335cd2235d691e27e2ed92e4c977bb1cd385f74d04f448fd93cc734b5a859eae32c3e86763aba4604b5e5cef24533635cd3a6247af6eda
6
+ metadata.gz: 11a1b7a44c9bd580ff6b220a5a1a8f3f94fce872019f002839fecf811d708183a14bc56173d4fe6edcfdda0a928583fecdad52aabb788ab4efcc980ac5f01075
7
+ data.tar.gz: a1f0fbc2b4e2d564170389014b6ba3123e5475bbde16080846f1124af172888644f28c9ec45f8eeb6dc6619b739fb56e410896210f481b81deab29f27d3787ca
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ open-pull-requests-limit: 99
9
+ assignees:
10
+ - manuelvanrijn
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
@@ -19,7 +19,7 @@ module Rack
19
19
  message(options[:Port])
20
20
  options.merge!(Host: '0.0.0.0')
21
21
  end
22
- orig_run(app, options)
22
+ orig_run(app, **options)
23
23
  end
24
24
 
25
25
  def self.message(port)
@@ -1,3 +1,3 @@
1
1
  module LocalSubdomain
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
@@ -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', '~> 1.9'
23
- spec.add_development_dependency 'rake', '~> 10.0'
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.1
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: 2016-03-11 00:00:00.000000000 Z
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: '1.9'
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: '1.9'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
80
- rubygems_version: 2.5.1
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: []