ADB 0.5.3 → 0.5.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.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ === Release 0.5.4 / 2012-9-19
2
+ * Fixes
3
+ * Corrected push, pull when multiple arguments used
4
+
1
5
  === Release 0.5.3 / 2012-9-18
2
6
  * Enhancements
3
7
  * Added travis-ci config file for automated specs
@@ -11,9 +11,9 @@ World(ADB)
11
11
 
12
12
  at_exit do
13
13
  # emulator.stop
14
+ File.delete('cuke_test_file.txt') unless not File.exists?('cuke_test_file.txt')
14
15
  end
15
16
 
16
-
17
17
  After do
18
18
  stop_server
19
19
  sleep 1
data/lib/ADB.rb CHANGED
@@ -159,7 +159,8 @@ module ADB
159
159
  # seconds.
160
160
  #
161
161
  def push(source, destination, target={}, timeout=30)
162
- execute_adb_with_exactly(timeout, "#{which_one(target)} push", source, destination)
162
+ args = "#{which_one(target)} push".split
163
+ execute_adb_with_exactly(timeout, *args, source, destination)
163
164
  end
164
165
 
165
166
  #
@@ -173,7 +174,8 @@ module ADB
173
174
  # seconds.
174
175
  #
175
176
  def pull(source, destination, target={}, timeout=30)
176
- execute_adb_with_exactly(timeout, "#{which_one(target)} pull", source, destination)
177
+ args = "#{which_one(target)} pull".split
178
+ execute_adb_with_exactly(timeout, *args, source, destination)
177
179
  end
178
180
 
179
181
  #
@@ -1,3 +1,3 @@
1
1
  module ADB
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -49,22 +49,22 @@ describe ADB do
49
49
  context "when transferring files" do
50
50
 
51
51
  it "should be able to push a file" do
52
- should_call_adb_with(' push', '/usr/foo.txt', '/sdcard/bar.txt')
52
+ should_call_adb_with('push', '/usr/foo.txt', '/sdcard/bar.txt')
53
53
  ADB.push('/usr/foo.txt', '/sdcard/bar.txt')
54
54
  end
55
55
 
56
56
  it "should be able to push a file with spaces in the name" do
57
- should_call_adb_with(' push', '/usr/local file with spaces.txt', '/sdcard/remote file with spaces.txt')
57
+ should_call_adb_with('push', '/usr/local file with spaces.txt', '/sdcard/remote file with spaces.txt')
58
58
  ADB.push('/usr/local file with spaces.txt', '/sdcard/remote file with spaces.txt')
59
59
  end
60
60
 
61
61
  it "should be able to pull a file" do
62
- should_call_adb_with(' pull', '/usr/foo.txt', '/sdcard/bar.txt')
62
+ should_call_adb_with('pull', '/usr/foo.txt', '/sdcard/bar.txt')
63
63
  ADB.pull('/usr/foo.txt', '/sdcard/bar.txt')
64
64
  end
65
65
 
66
66
  it "should be able to pull a file with spaces in the name" do
67
- should_call_adb_with(' pull', '/usr/local file with spaces.txt', '/sdcard/remote file with spaces.txt')
67
+ should_call_adb_with('pull', '/usr/local file with spaces.txt', '/sdcard/remote file with spaces.txt')
68
68
  ADB.pull('/usr/local file with spaces.txt', '/sdcard/remote file with spaces.txt')
69
69
  end
70
70
 
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.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -71,6 +71,7 @@ files:
71
71
  - .gitignore
72
72
  - .rspec
73
73
  - .rvmrc
74
+ - .travis.yml
74
75
  - ADB.gemspec
75
76
  - ChangeLog
76
77
  - Gemfile
@@ -81,7 +82,6 @@ files:
81
82
  - cucumber.yml
82
83
  - features/ADB.feature
83
84
  - features/step_definitions/adb_steps.rb
84
- - features/support/.travis.yml
85
85
  - features/support/ApiDemos.apk
86
86
  - features/support/env.rb
87
87
  - lib/ADB.rb
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: 2790238866883201100
108
+ hash: -1465908384621988337
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  none: false
111
111
  requirements:
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 2790238866883201100
117
+ hash: -1465908384621988337
118
118
  requirements: []
119
119
  rubyforge_project:
120
120
  rubygems_version: 1.8.24
@@ -124,7 +124,6 @@ summary: Simple wrapper over Android Debug Bridge command-line tool
124
124
  test_files:
125
125
  - features/ADB.feature
126
126
  - features/step_definitions/adb_steps.rb
127
- - features/support/.travis.yml
128
127
  - features/support/ApiDemos.apk
129
128
  - features/support/env.rb
130
129
  - spec/lib/ADB/instrumentation_spec.rb