mirage 4.0.0.alpha8 → 4.0.0.alpha9

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: 8e664377381f5dc9cc7913777720dbcf8725ce74
4
- data.tar.gz: a082d2793a96efded9c66d24319793415ef69558
3
+ metadata.gz: 7ce0674182d06e316fe3c29196fbe0e59736948c
4
+ data.tar.gz: 7d259d3e9484d76a2941db088f591c33367dd4cf
5
5
  SHA512:
6
- metadata.gz: 4350871c5affaf2c92539110e6b1cc3bc3f53f670200ccd8b93e66dfa4074354630cf72395b9a9ac0fc6d9ee9bb7bc843cc7d645482109323fa749bdadafcbb4
7
- data.tar.gz: 2f2120fbc55ac958b0c95fe3bce1ad7ca92b7ffd50ba6c8b6d0d448e049eb9907532084cfad607d618085ee487945337d0bb4b3b99d78ee1c23562c44ba211dd
6
+ metadata.gz: dfc9c1d46e87106d6ea9708032fdc2e8383c7fee78cbfb33be4ede4088ed76d0e7e11a6b7f96e5a7a95d5e606e331ec7607499bbec442d9edd4234afa04e8d0f
7
+ data.tar.gz: a3ba61ec5e013d6578e4e9f904de6a5fe21735cd65e70c3fb1f45c83a6d261c9d0fcaa315ad791fe2eb92d7bb8e9a6d9bf805eeb0a6f5a6378674bc1ee5a9781
@@ -9,11 +9,11 @@ module Mirage
9
9
 
10
10
  attr_reader :url
11
11
 
12
- def initialize options={:url => "http://localhost:7001"}, &block
12
+ def initialize options={:url => "http://127.0.0.1:7001"}, &block
13
13
  if options.is_a?(String) && options =~ URI.regexp
14
14
  @url = options
15
15
  elsif options.kind_of?(Hash) && options[:port]
16
- @url = "http://localhost:#{options[:port]}"
16
+ @url = "http://127.0.0.1:#{options[:port]}"
17
17
  elsif options.kind_of?(Hash) && options[:url]
18
18
  @url = options[:url]
19
19
  else
@@ -42,7 +42,7 @@ module Mirage
42
42
  # Mirage.running? :port => port -> boolean indicating whether Mirage is running on *locally* on the given port
43
43
  # Mirage.running? url -> boolean indicating whether Mirage is running on the given URL
44
44
  def running? options_or_url = {:port => 7001}
45
- url = options_or_url.kind_of?(Hash) ? "http://localhost:#{options_or_url[:port]}" : options_or_url
45
+ url = options_or_url.kind_of?(Hash) ? "http://127.0.0.1:#{options_or_url[:port]}" : options_or_url
46
46
  HTTParty.get(url) and return true
47
47
  rescue Errno::ECONNREFUSED
48
48
  return false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirage
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha8
4
+ version: 4.0.0.alpha9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra