serverspec 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec.rb +1 -0
- data/lib/serverspec/setup.rb +0 -1
- data/lib/serverspec/type/file.rb +5 -1
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cee837bc682c1e0815a22113fa54f290007b0c7
|
4
|
+
data.tar.gz: 50567e0c4c69ae9c4a14bd7e577439e434b99043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4121c1dce84f82991fb33e289a442316e2844545382cb3819b4458691d211c9a53960472868522ecd33725be29caf4fd9bdeac5fbc1bc6d6c70a330ae78a4fd3
|
7
|
+
data.tar.gz: 6b35b5f3b0301857fc1c77bb599ca2e6d5f0ab031d762cf38a09b0e3bf3e1c32973ad0d69efad7a70dfa518d5d088c41403085ae2edb3a755b8bed8ab2da50e9
|
data/lib/serverspec.rb
CHANGED
data/lib/serverspec/setup.rb
CHANGED
data/lib/serverspec/type/file.rb
CHANGED
@@ -98,7 +98,11 @@ module Serverspec
|
|
98
98
|
|
99
99
|
def mtime
|
100
100
|
d = backend.get_file_mtime(@name).stdout.strip
|
101
|
-
DateTime.strptime(d, '%s')
|
101
|
+
DateTime.strptime(d, '%s').new_offset(DateTime.now.offset)
|
102
|
+
end
|
103
|
+
|
104
|
+
def size
|
105
|
+
backend.get_file_size(@name).stdout.strip.to_i
|
102
106
|
end
|
103
107
|
end
|
104
108
|
end
|
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_runtime_dependency "rspec", "~> 2.13"
|
23
23
|
spec.add_runtime_dependency "rspec-its"
|
24
24
|
spec.add_runtime_dependency "highline"
|
25
|
-
spec.add_runtime_dependency "specinfra", "~> 1.
|
25
|
+
spec.add_runtime_dependency "specinfra", "~> 1.18"
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.3"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
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-06-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.18'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.18'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|