ADB 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/ChangeLog +4 -0
  2. data/lib/ADB.rb +5 -1
  3. data/lib/ADB/version.rb +1 -1
  4. metadata +4 -4
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ === Release 0.5.1
2
+ * Bug Fixes
3
+ * Corrected filename for stdout and stderr so it will work properly on Windows
4
+
1
5
  === Release 0.5 / 2012-9-9
2
6
  * Enhancements
3
7
  * Added instrument method to send an instrumentation request
data/lib/ADB.rb CHANGED
@@ -237,10 +237,14 @@ module ADB
237
237
  end
238
238
 
239
239
  def std_out_err
240
- return ::Tempfile.new("adb-out#{Time.now}"), ::Tempfile.new("adb-err#{Time.now}")
240
+ return ::Tempfile.new(filename_for('adb-out')), ::Tempfile.new(filename_for('adb-err'))
241
241
  end
242
242
 
243
243
  def stdout_contains(expected)
244
244
  last_stdout.include? expected
245
245
  end
246
+
247
+ def filename_for(prefix)
248
+ "#{prefix}-#{Time.new.to_s.gsub(' ', '_').gsub(':', '_')}"
249
+ end
246
250
  end
data/lib/ADB/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ADB
2
- VERSION = "0.5"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ADB
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-09 00:00:00.000000000 Z
13
+ date: 2012-09-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: childprocess
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 2061536077942189474
107
+ hash: 3370634203742753858
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: 2061536077942189474
116
+ hash: 3370634203742753858
117
117
  requirements: []
118
118
  rubyforge_project:
119
119
  rubygems_version: 1.8.24