specinfra 1.25.3 → 1.25.4
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 +4 -4
- data/lib/specinfra/command/windows.rb +3 -3
- data/lib/specinfra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24e1bd17c3dd9225965333243be3fa6c1b5302fe
|
|
4
|
+
data.tar.gz: dcd388398d12dbb60bf43f10553a917c632b5569
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c93790a2b2549d3d488caaa707313f948a325d30627ad9230cb0d7fb15561b1a9454be116cceb636bfa3d16d53a4ced03a76e377ab4bde330155329db1b201da
|
|
7
|
+
data.tar.gz: f1252f2816c8507e55cce54bdee9651c74c7917af55c083620ffd106fe5895f3967095977d36ddd0d0da0dacb9f2b978d1da1c435ffeb61e9fd67f07aa6ea87f
|
|
@@ -53,7 +53,7 @@ module SpecInfra
|
|
|
53
53
|
|
|
54
54
|
def check_file_contain(file, pattern)
|
|
55
55
|
Backend::PowerShell::Command.new do
|
|
56
|
-
exec
|
|
56
|
+
exec %Q![[Io.File]::ReadAllText("#{file}") -match '#{convert_regexp(pattern)}'!
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -62,12 +62,12 @@ module SpecInfra
|
|
|
62
62
|
to ||= '$'
|
|
63
63
|
Backend::PowerShell::Command.new do
|
|
64
64
|
using 'crop_text.ps1'
|
|
65
|
-
exec %Q
|
|
65
|
+
exec %Q!(CropText -text ([Io.File]::ReadAllText("#{file}")) -fromPattern '#{convert_regexp(from)}' -toPattern '#{convert_regexp(to)}') -match '#{pattern}'!
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def get_file_content(file)
|
|
70
|
-
|
|
70
|
+
%Q![Io.File]::ReadAllText("#{file}")!
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def check_access_by_user(file, user, access)
|
data/lib/specinfra/version.rb
CHANGED
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: 1.25.
|
|
4
|
+
version: 1.25.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-08-
|
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|