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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f25f83fa646e00df412c0b03654a485840171fa
4
- data.tar.gz: 79510ae949e711812b565864a6e11473a8965e6a
3
+ metadata.gz: 5cee837bc682c1e0815a22113fa54f290007b0c7
4
+ data.tar.gz: 50567e0c4c69ae9c4a14bd7e577439e434b99043
5
5
  SHA512:
6
- metadata.gz: 750b7b972dc1ea70c7ac446e5df1a3eb7f2eba280fe3fc3c766483630dcfa8c6aaed6a1dac81186e2b76b24724ac8441dab1fbeb59561bcfb90d78eb62e1f15a
7
- data.tar.gz: 03df2d7e047da50dd7155d121c4f8c1dbc9cb2c1776421b3253c2f447d52eca6508f40ee7ece42f4c079f07ca1e5c22f342ef02f68bca5f90f9dfce31721327c
6
+ metadata.gz: 4121c1dce84f82991fb33e289a442316e2844545382cb3819b4458691d211c9a53960472868522ecd33725be29caf4fd9bdeac5fbc1bc6d6c70a330ae78a4fd3
7
+ data.tar.gz: 6b35b5f3b0301857fc1c77bb599ca2e6d5f0ab031d762cf38a09b0e3bf3e1c32973ad0d69efad7a70dfa518d5d088c41403085ae2edb3a755b8bed8ab2da50e9
data/lib/serverspec.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rspec'
3
+ require 'rspec/its'
3
4
  require 'specinfra'
4
5
  require 'serverspec/version'
5
6
  require 'serverspec/matchers'
@@ -215,7 +215,6 @@ task :default => :spec
215
215
  def self.spec_helper_template
216
216
  template = <<-EOF
217
217
  require 'serverspec'
218
- require 'rspec/its'
219
218
  <% if @os_type == 'UN*X' && @backend_type == 'Ssh' -%>
220
219
  require 'pathname'
221
220
  <% end -%>
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.0"
3
3
  end
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.17"
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.8.0
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-10 00:00:00.000000000 Z
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.17'
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.17'
82
+ version: '1.18'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement