specinfra 0.1.0 → 0.1.1

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: 5e97a080f13f99d6a940f679604d69749f7076e1
4
- data.tar.gz: 42ef2cfa0eae875184c6c619753a0cfabb7723d4
3
+ metadata.gz: 369ce50b2e1acd4265234b32f49a36ce398d3981
4
+ data.tar.gz: 41610c693b5914cecb60b9ca91a69936c7f183dd
5
5
  SHA512:
6
- metadata.gz: 6066c4510a93101630b276d59080c9f5bc9a61071ab1a1be922942e870033490ad39b82b743a7c49020e77a2e26f8c3c5918d54db946246ef4909230215c9f36
7
- data.tar.gz: 5594e269d05856b902f7020b26152a24ddb023992313016e9d41b9c1d9f893eaa9a35657ffd6763e77d04b200da49e5926343fe09df0ab7f554bad2840dcf82b
6
+ metadata.gz: fa7bf49fe9114824893ae78ec5174802fe8d651b319fdd6c5dfa19707cf990b2101f4543ea91acfb7cb06fb8e3d4f96aa74077c4b05c3bc10f68c06c8f31d537
7
+ data.tar.gz: 528e19637222b1ae04ecc00eac3384f89961ad063dcd7193dbdaee52df2f8e1b2dade6156b2f526ac45a6ddecb2e867dcd196861534f294004756fad8377e7a3
@@ -164,7 +164,9 @@ module SpecInfra
164
164
  ret = run_command(commands.check_routing_table(expected_attr[:destination]))
165
165
  return false if ret[:exit_status] != 0
166
166
 
167
- ret[:stdout] =~ /^(\S+)(?: via (\S+))? dev (\S+).+\r\n(?:default via (\S+))?/
167
+ ret[:stdout].gsub!(/\r\n/, "\n")
168
+
169
+ ret[:stdout] =~ /^(\S+)(?: via (\S+))? dev (\S+).+\n(?:default via (\S+))?/
168
170
  actual_attr = {
169
171
  :destination => $1,
170
172
  :gateway => $2 ? $2 : $4,
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-24 00:00:00.000000000 Z
11
+ date: 2013-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler