specinfra 2.10.3 → 2.10.4

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: a13946bf71af8c3ceddce80a1890bb3bddcd6b91
4
- data.tar.gz: 2e1e81d048f459d42e2e308f0cf2605fdf873204
3
+ metadata.gz: 58daefbc8fc4037f564149fcfa06d1284d803b7e
4
+ data.tar.gz: f6a4fb6a92a216bf3ad622296e3aa0623b450c18
5
5
  SHA512:
6
- metadata.gz: ed2e1d032ea13a785fa00614f84de76e28562d02d89320543f4c0bc5b24a4fc222e542bbaa646e904acb019e7ec6bd33ffe678f58941a6fda0de4647bba8ccd0
7
- data.tar.gz: 92f94f083438d4c9f1903f607356ce8bc380136fc0bd66d7fab75d9b1dfadb96334d482a2e687d34e73fa276f115b54d05ff431f8cc6dd6d86eb3c5a218e5b8d
6
+ metadata.gz: b0dd548e3131f619ad2f5961f68b625e437e7b1e61ae9968d80b53809b900470c63ee95d858a064355f4d26c95bbb0f4f008489c8cee619ca5dd95fdc7a98bc3
7
+ data.tar.gz: 0b5f7b307e92f6689db3c0e54a7e1e81f452428bc56342da70822d545f2439f2d13263c9e1306c5d1e80147a764df5f4236b0e201aa5f22705e7b89995343ecb
@@ -1,7 +1,7 @@
1
1
  class Specinfra::Command::Base::Port < Specinfra::Command::Base
2
2
  class << self
3
3
  def check_is_listening(port, options={})
4
- pattern = ":#{port}"
4
+ pattern = ":#{port} "
5
5
  pattern = " #{options[:local_address]}#{pattern}" if options[:local_address]
6
6
  pattern = "^#{options[:protocol]} .*#{pattern}" if options[:protocol]
7
7
  "netstat -tunl | grep -- #{escape(pattern)}"
@@ -24,7 +24,7 @@ class Specinfra::Command::Darwin::Base::Package < Specinfra::Command::Base::Pack
24
24
  end
25
25
 
26
26
  def get_version(package, opts=nil)
27
- "basename $(/usr/local/bin/brew info #{package} | grep '\*$' | awk '{print $1}')"
27
+ "basename $((/usr/local/bin/brew info #{package} | grep '\*$' || /usr/local/bin/brew info #{package} | grep '^/usr/local/Cellar' | tail -1) | awk '{print $1}')"
28
28
  end
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.10.3"
2
+ VERSION = "2.10.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.3
4
+ version: 2.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh