ADB 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/{features/support/.travis.yml → .travis.yml} +0 -0
- data/ChangeLog +4 -0
- data/features/support/env.rb +1 -1
- data/lib/ADB.rb +4 -2
- data/lib/ADB/version.rb +1 -1
- data/spec/lib/ADB_spec.rb +4 -4
- metadata +4 -5
File without changes
|
data/ChangeLog
CHANGED
data/features/support/env.rb
CHANGED
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
|
-
|
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
|
-
|
177
|
+
args = "#{which_one(target)} pull".split
|
178
|
+
execute_adb_with_exactly(timeout, *args, source, destination)
|
177
179
|
end
|
178
180
|
|
179
181
|
#
|
data/lib/ADB/version.rb
CHANGED
data/spec/lib/ADB_spec.rb
CHANGED
@@ -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('
|
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('
|
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('
|
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('
|
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.
|
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:
|
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:
|
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
|