specinfra 2.28.1 → 2.28.2

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: 8d32c856cd3a452bb7b1e5616cc69a3a8ccf9681
4
- data.tar.gz: 43739e2149be5b1cbe96c23eb5945db6fa48a4f2
3
+ metadata.gz: f08e173f7c1dd28dde73ba544a44035f560ae7ad
4
+ data.tar.gz: 67d87d169046fbb4955866fc494ccefec6db5514
5
5
  SHA512:
6
- metadata.gz: ec6c48f3d496c8a9926e2b2a6f58244e592a067cf000528aeb1476a1021c2d5193c631b52429a7d6e6d548407c7421d16fc3788e7dbb4ea22e2abe0a063ddd91
7
- data.tar.gz: 86cb0cc16875a4a3a3239590166a91906b447e79c0552b55cf7b7cc56c6c738bfebf0bf21a7844d1535c83fc5a5db0f26a52150c2130cd9ae4d1c8233dfe0233
6
+ metadata.gz: cc1761ef51a16ffe0cf8cd338ab5191d5e6a92f2ca43a30e1e761d1bacd98fc0d35ab8f192d8e776895035a4c0c06fad2ed3218401498ace12a87a8edb10835f
7
+ data.tar.gz: 1e602e45f80f49609db7c3ca19e89a2735f940d7e29c431a27957b9aa7adf96fd5048261f632b1caa9e251590dbc63b0fa4f1b09e18abf33ca01a57d074fd2aa
@@ -36,7 +36,7 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
36
36
  end
37
37
 
38
38
  def get_content(file)
39
- %Q![Io.File]::ReadAllText("#{file}")!
39
+ %Q!Get-Content("#{file}") | Out-String!
40
40
  end
41
41
 
42
42
  def check_is_accessible_by_user(file, user, access)
@@ -73,7 +73,7 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
73
73
 
74
74
  def check_contains(file, pattern)
75
75
  Backend::PowerShell::Command.new do
76
- exec %Q![Io.File]::ReadAllText("#{file}") -match '#{convert_regexp(pattern)}'!
76
+ exec %Q!(Get-Content("#{file}") | Out-String) -match '#{convert_regexp(pattern)}'!
77
77
  end
78
78
  end
79
79
 
@@ -82,7 +82,7 @@ class Specinfra::Command::Windows::Base::File < Specinfra::Command::Windows::Bas
82
82
  to ||= '$'
83
83
  Backend::PowerShell::Command.new do
84
84
  using 'crop_text.ps1'
85
- exec %Q!(CropText -text ([Io.File]::ReadAllText("#{file}")) -fromPattern '#{convert_regexp(from)}' -toPattern '#{convert_regexp(to)}') -match '#{pattern}'!
85
+ exec %Q!(CropText -text (Get-Content("#{file}") | Out-String) -fromPattern '#{convert_regexp(from)}' -toPattern '#{convert_regexp(to)}') -match '#{pattern}'!
86
86
  end
87
87
  end
88
88
 
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.28.1"
2
+ VERSION = "2.28.2"
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.28.1
4
+ version: 2.28.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-06 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh