xipio 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
  SHA256:
3
- metadata.gz: 47ce3ba236bae0980ce20e28bf8d1c304ad07ec692e0e527803cfa3fa31021ad
4
- data.tar.gz: a5997c2c49d6e076d4c37e58b75083e99b9f5658bd8ec0ddfefb2834f1f193a1
3
+ metadata.gz: c1a5135ec37922d682f746afa6170761852a495b048059f5ef49252c13073920
4
+ data.tar.gz: 3dab85318008dee619d73e27031962ce882194cde30eec7908ad17144c4eed34
5
5
  SHA512:
6
- metadata.gz: 1fab5c7061c44d48d0f22d1d3b57be301783da974b8dae679ec296e49b4c418a964ab3503e1c7abbd681fca07cca3ab4b1ad4a2f36d86a78d2042692ffea6287
7
- data.tar.gz: 428b86b8b5274309dc7baf371b1fcb2a3b8d793b19388b4e4a92c87f3e9da0d2a851a6e1306289e7495b10e9961c430a6f6bac0e8308978bc8fdda362596ba3a
6
+ metadata.gz: d0ebf6e76736a89879079656a03855fc97507615355f6498ca0773f817bed218dbe4bda1128d204c262135e821a4ef714b0fbb4707792d066835e4fc26f62a26
7
+ data.tar.gz: 044a4cac5ea4ce3805e5ba40d4b6381ace80627f3a9fbad7eafd8e303e9a3a8247199b50c2e06142f150d797ffc5ebb650fdcc179a034f97194e57552914690a
@@ -5,7 +5,7 @@ module Xipio
5
5
  end
6
6
 
7
7
  def call(env)
8
- tld_length = env['HTTP_HOST'].match?(/\.xip\.io(:\d{1,5})?\z/) ? 6 : 1
8
+ tld_length = /\.xip\.io(:\d{1,5})?\z/ =~ env['HTTP_HOST'] ? 6 : 1
9
9
  ActionDispatch::Http::URL.tld_length = tld_length
10
10
  @app.call(env)
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Xipio
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xipio
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
  - Philipe Fatio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler