hosty 0.0.2 → 0.0.3

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: aa4c812980a81da36b3932c3d701f91890b01a9a
4
- data.tar.gz: c5d0e7696dc1b6b551cfffa8d2800f0aea1aa9bf
3
+ metadata.gz: 9a2101a354c44e1b7b0781fd6cba4b00a420d326
4
+ data.tar.gz: 1e3f9e7c0cd282d3077ae52d28938bc7056ad617
5
5
  SHA512:
6
- metadata.gz: 2a1bfd75a8406de3be137551db8169522457eac4efee1019852cc7ad88c64babb0202a8b46e1b432e26b89a4457c9631a0e8c47db7ffdc0dfbb7b3f7c41ede91
7
- data.tar.gz: ecb768e70845bc7c87a7356cb53fff1f108b305c49fec3cf77c1020ab3abf61bff5f80cb729d7916a2d18bc26ef878916dc8c14d973fa8933c14499b4dc37a09
6
+ metadata.gz: 878955d88a40eab57a09335a18da945be5f60eec95e6e35f77331ca43c2a8a1204d8415ce81fe55bd280b5e085fee17e4f3d339674b3417588c9386eab910913
7
+ data.tar.gz: dacd4e95fd9867b33ad0fd17ba9720b57f486e9b10439bf89903fd938e5ac99c8efbdbffdb858cbfa31fdbc19b9251bf4489e06e305c27b0720cf9b53b277d18
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Shintaro Kojima
3
+ Copyright (c) 2017 Shintaro Kojima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -57,4 +57,4 @@ The URL scheme in your browser is always 'http'.
57
57
 
58
58
  ## Copyright and License
59
59
 
60
- Copyright (c) 2016 Shintaro Kojima. Code released under the [MIT license](LICENSE).
60
+ Copyright (c) 2017 Shintaro Kojima. Code released under the [MIT license](LICENSE).
data/exe/hosty CHANGED
@@ -4,4 +4,4 @@ require 'rack'
4
4
 
5
5
  config = File.expand_path('../../config.ru', __FILE__)
6
6
 
7
- Rack::Server.start(config: config, Port: 80)
7
+ Rack::Server.start(config: config, Host: '127.0.0.1', Port: 80)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "hosty"
7
- spec.version = '0.0.2'
7
+ spec.version = '0.0.3'
8
8
  spec.authors = ["Shintaro Kojima"]
9
9
  spec.email = ["goodies@codeout.net"]
10
10
 
@@ -34,7 +34,7 @@ module Hosty
34
34
  return @content if @content
35
35
 
36
36
  columns = @line.split
37
- return unless columns[0].local_address?
37
+ return unless columns[0] && columns[0].local_address?
38
38
 
39
39
  mark_index = columns.index('#')
40
40
  return unless mark_index
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hosty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shintaro Kojima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack-reverse-proxy
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.5.1
117
+ rubygems_version: 2.6.8
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: "/etc/hosts based tiny reverse proxy."