specinfra 2.57.3 → 2.57.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea6a32d408ee5720f358dc9f52fe186e953899b0
4
- data.tar.gz: d13f590f7f81dedb3945db4711ac799389afd583
3
+ metadata.gz: 6e72ba787dd94e395b014b8c19593b2373d75147
4
+ data.tar.gz: 2cb11a5cef29e0cad0e4ad89b69218019cb175df
5
5
  SHA512:
6
- metadata.gz: 3c0f38b754bb0494d374254d36ec916be0bebb34d73531c9c6d049601b731d8018a7ee9160e47194ee4d94530ddb182be5168b1d61e8947945ee4c4a5b8bd938
7
- data.tar.gz: 1ad6f4144626f5c4f435a08290466e35b55e45866411839c681ffbdff848778a08ba4fd5ae80a0ff0221f306e9f682d94444329e91f6b02c815a4ac75cb0da72
6
+ metadata.gz: a4c8610bd46fd2a5bdd4721a2aef8217c1fd0342ac05d4a83a793dba6960c0842a04b7c9b0a9cc69aec177d9eebe5cb5f304c4c0b2a4f8d75f08907c6a2a3c53
7
+ data.tar.gz: a3608360c5f4ea45285fdcb300afb059be6456471ea3fd56e9201e35c2ae14c9f150a965cb561b7ce93c110bd5d2bef32a53e07899e70deebee3f6d4b273c70a
@@ -31,11 +31,11 @@ class Specinfra::Command::Base::User < Specinfra::Command::Base
31
31
  end
32
32
 
33
33
  def get_minimum_days_between_password_change(user)
34
- "chage -l #{escape(user)} | grep '^Minimum.*:' | cut -f 2 -d ': '"
34
+ "chage -l #{escape(user)} | sed -n 's/^Minimum.*: //p'"
35
35
  end
36
36
 
37
37
  def get_maximum_days_between_password_change(user)
38
- "chage -l #{escape(user)} | grep '^Maximum.*:' | cut -f 2 -d ': '"
38
+ "chage -l #{escape(user)} | sed -n 's/^Maximum.*: //p'"
39
39
  end
40
40
 
41
41
  def get_uid(user)
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.57.3"
2
+ VERSION = "2.57.4"
3
3
  end
@@ -43,11 +43,11 @@ describe get_command(:check_user_has_login_shell, 'foo', '/bin/sh') do
43
43
  end
44
44
 
45
45
  describe get_command(:get_user_minimum_days_between_password_change, 'foo') do
46
- it { should eq "chage -l foo | grep '^Minimum.*:' | cut -f 2 -d ': '" }
46
+ it { should eq "chage -l foo | sed -n 's/^Minimum.*: //p'" }
47
47
  end
48
48
 
49
49
  describe get_command(:get_user_maximum_days_between_password_change, 'foo') do
50
- it { should eq "chage -l foo | grep '^Maximum.*:' | cut -f 2 -d ': '" }
50
+ it { should eq "chage -l foo | sed -n 's/^Maximum.*: //p'" }
51
51
  end
52
52
 
53
53
  describe get_command(:get_user_login_shell, 'foo') do
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.57.3
4
+ version: 2.57.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: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp