adb_extended 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +2 -2
- data/adb_extended.gemspec +2 -2
- data/lib/adb_extended/adb.rb +2 -2
- data/lib/adb_extended/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1c228e5fa9778dc31c80d1d4b3b7e4469d96ee5d2f4da02496b915d6459a8ff
|
4
|
+
data.tar.gz: 4c8092e8bbbe2dbeae0488b292a6a1095610c18670d4ca7ae2bca28ea438f257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca0dae8e9f4b0dcc8ec6297dad2894ed1e73d36dd93f88d92577d75da06f5087e5a94d844783bbabff5edd57cf194829324fc9ed25ba7b3508d069cf08894249
|
7
|
+
data.tar.gz: 19ee1db963fe5a031c8449a961f4ce732a364d70a51a10aadb03731dd2046428d616d77e7f7f3ec469067cc4978129a0c8474378cc5e98a6de9de88336a00b3d
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at me@dan-gilbert.uk. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
39
39
|
|
40
40
|
## Contributing
|
41
41
|
|
42
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
42
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/dangilbert/adb_extended. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
43
43
|
|
44
44
|
## License
|
45
45
|
|
@@ -47,4 +47,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
47
47
|
|
48
48
|
## Code of Conduct
|
49
49
|
|
50
|
-
Everyone interacting in the AdbExtended project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
50
|
+
Everyone interacting in the AdbExtended project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dangilbert/adb_extended/blob/master/CODE_OF_CONDUCT.md).
|
data/adb_extended.gemspec
CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "adb_extended"
|
8
8
|
spec.version = AdbExtended::VERSION
|
9
9
|
spec.authors = ["Dan Gilbert"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["me@dan-gilbert.uk"]
|
11
11
|
|
12
12
|
spec.summary = "Extended functionality for adb when working with multiple connected devices"
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/dangilbert/adb_extended"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
data/lib/adb_extended/adb.rb
CHANGED
@@ -84,10 +84,10 @@ module AdbExtended
|
|
84
84
|
def self.enter_text(text, submit = false, serial = nil)
|
85
85
|
key_event = submit ? 66 : 61
|
86
86
|
if serial != nil
|
87
|
-
stdout, stderr, status = Open3.capture3("adb -s #{serial} shell input text #{text} && adb -s #{serial} shell input keyevent #{key_event}")
|
87
|
+
stdout, stderr, status = Open3.capture3("adb -s #{serial} shell input tap 0 500 && adb -s #{serial} shell input text #{text} && adb -s #{serial} shell input keyevent #{key_event}")
|
88
88
|
else
|
89
89
|
devices.each { |device|
|
90
|
-
stdout, stderr, status = Open3.capture3("adb -s #{device[:serial]} shell input text #{text} && adb -s #{device[:serial]} shell input keyevent #{key_event}")
|
90
|
+
stdout, stderr, status = Open3.capture3("adb -s #{device[:serial]} shell input tap 0 500 && adb -s #{device[:serial]} shell input text #{text} && adb -s #{device[:serial]} shell input keyevent #{key_event}")
|
91
91
|
}
|
92
92
|
end
|
93
93
|
sleep 0.1
|
data/lib/adb_extended/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adb_extended
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Gilbert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
version: '0'
|
83
83
|
description:
|
84
84
|
email:
|
85
|
-
-
|
85
|
+
- me@dan-gilbert.uk
|
86
86
|
executables:
|
87
87
|
- adb_extended
|
88
88
|
extensions: []
|
@@ -112,7 +112,7 @@ files:
|
|
112
112
|
- lib/adb_extended/adb.rb
|
113
113
|
- lib/adb_extended/cli.rb
|
114
114
|
- lib/adb_extended/version.rb
|
115
|
-
homepage: https://github.com/
|
115
|
+
homepage: https://github.com/dangilbert/adb_extended
|
116
116
|
licenses:
|
117
117
|
- MIT
|
118
118
|
metadata: {}
|