oas-log-collector 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ module OAS
28
28
  Net::SCP.start(host, user, :port => port) do |scp|
29
29
  files.each do |remote_path, dest_path|
30
30
  FileUtils.mkdir_p(File.dirname(dest_path))
31
- scp.download!(remote_path, dest_path)
31
+ scp.download!(remote_path, dest_path, :preserve => true)
32
32
  end
33
33
  end
34
34
  end
@@ -1,5 +1,5 @@
1
1
  module OAS
2
2
  module LogCollector
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ require 'date'
4
4
 
5
5
  class TestLogFile < MiniTest::Unit::TestCase
6
6
  def setup
7
- @timestamp = DateTime.new(2012,8,1,15,30).to_time.to_i
7
+ @timestamp = Time.mktime(2012,8,1,15,30).to_i
8
8
  end
9
9
 
10
10
  def test_parse_on_initialize
@@ -3,7 +3,7 @@ require 'oas/log_collector/manager'
3
3
 
4
4
  class TestManager < MiniTest::Unit::TestCase
5
5
  def setup
6
- @timestamp = DateTime.new(2012,8,1,15,30).to_time.to_i
6
+ @timestamp = Time.mktime(2012,8,1,15,30).to_i
7
7
  @hostname = 'remote1'
8
8
  @result = ["adstream.log.#{@timestamp}.bz2", "adstream.log.#{@timestamp + 60}.bz2", "adstream.log.#{@timestamp + 120}.bz2"]
9
9
  @manager = OAS::LogCollector::Manager.new({
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oas-log-collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  segments:
183
183
  - 0
184
- hash: -1912528220465064973
184
+ hash: 463670219329236280
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements:
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  segments:
192
192
  - 0
193
- hash: -1912528220465064973
193
+ hash: 463670219329236280
194
194
  requirements: []
195
195
  rubyforge_project: oas-ivc
196
196
  rubygems_version: 1.8.24