attache 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2706553dd6f29cd50139c99c9c1f662408357437
4
- data.tar.gz: 9afa3085bf929946009ddd1b4e1cb5458714444a
3
+ metadata.gz: 4ab1d5e6b041867f9d9aab0ce033c1fdf8a6ccfd
4
+ data.tar.gz: 664088f4562ca6d43d58a8e5e036ccfa9375c21d
5
5
  SHA512:
6
- metadata.gz: 334e5c96812d74e2a73338fe4a4604e061e236cde3e52df828d005fc9bda8f0af38989cbc8e0e2d0615fe5ad957c2f205d64b9b3731acce152e054514b649434
7
- data.tar.gz: e90dbd37b852eca79015d27d4b7e5e7674a116a0ef7b7946eafcff2fba6127ff9e14446165ed50541bead307a8a38a798c5b0360c6312ee70f62804122fbcaa7
6
+ metadata.gz: 1b72c950f45f12a38fde73d1f3d3c1308563fc7318c17409283b4dfd3e7f656b57086e67a3e9cb22b4dbe459daac38985011823c016fc3d5461d0828bd97ddd8
7
+ data.tar.gz: f22eb959e5d4af40ee9670995ffbc69af51d45d29f2866158ef43967fb983b3733e88f3c5bffa453f4bb7cdd2a40b00d94cfd28070d704d4b492f2b7b391884b
@@ -23,3 +23,7 @@
23
23
 
24
24
  # This section will only take effect if a request is made to `localhost:9292`
25
25
  "localhost:9292":
26
+
27
+
28
+ # This section will apply if a request did not match anything else
29
+ "0.0.0.0":
data/lib/attache/base.rb CHANGED
@@ -8,7 +8,7 @@ class Attache::Base
8
8
  end
9
9
 
10
10
  def vhost_for(host)
11
- Attache::VHost.new(Attache.vhost[host])
11
+ Attache::VHost.new(Attache.vhost[host] || Attache.vhost['0.0.0.0'])
12
12
  end
13
13
 
14
14
  def request_hostname(env)
@@ -1,3 +1,3 @@
1
1
  module Attache
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attache
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
  - choonkeat