adb_device 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +3 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +34 -0
- data/README.md +2 -0
- data/Rakefile +2 -0
- data/adb_device.gemspec +26 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/adb_device.rb +21 -0
- data/lib/adb_device/version.rb +3 -0
- metadata +69 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 833ecc4ce91347a300b20cf1760915ae96065bad2e969e8233ef5602bbafbf69
|
4
|
+
data.tar.gz: e14d117de13bf23d7c5ce0ace785f629e3aacf6e220e8dea9e37614f179c2d29
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 27122a29d5a3992c2f5d567025f060ba48f84e1e4a1f8eb1e58cf1b1b1358cd3fe49d3e0d4deebbba982356ce09586baa5a76c8a95d4b9efa5f21ac6f5ed86ae
|
7
|
+
data.tar.gz: 42f32724141919ab935582b5cd21dc813048c298c7dc27268515cce813617d01bac0b8419487712781f5d37721daf4b83248b64a3706645f24d972a736f8cbe5
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
adb_device (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.3)
|
10
|
+
rake (12.3.3)
|
11
|
+
rspec (3.9.0)
|
12
|
+
rspec-core (~> 3.9.0)
|
13
|
+
rspec-expectations (~> 3.9.0)
|
14
|
+
rspec-mocks (~> 3.9.0)
|
15
|
+
rspec-core (3.9.2)
|
16
|
+
rspec-support (~> 3.9.3)
|
17
|
+
rspec-expectations (3.9.2)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.9.0)
|
20
|
+
rspec-mocks (3.9.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.9.0)
|
23
|
+
rspec-support (3.9.3)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
adb_device!
|
30
|
+
rake (~> 12.0)
|
31
|
+
rspec
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
2.1.4
|
data/README.md
ADDED
data/Rakefile
ADDED
data/adb_device.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require_relative 'lib/adb_device/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "adb_device"
|
5
|
+
spec.version = AdbDevice::VERSION
|
6
|
+
spec.authors = ["Kristaps Indriksons"]
|
7
|
+
spec.email = ["indriksons.kristaps@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{Gem for interacting with connected Android devices.}
|
10
|
+
spec.description = %q{Get from connected Android devices brand, model, OS version and many more usefull info. Install, uninstall apps. Pull and push files.}
|
11
|
+
# spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
# spec.metadata["homepage_uri"] = spec.homepage
|
15
|
+
spec.metadata["source_code_uri"] = "https://github.com/KristapsIndriksons/adb_device"
|
16
|
+
spec.add_development_dependency "rspec"
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "adb_device"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/adb_device.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "adb_device/version"
|
2
|
+
|
3
|
+
module AdbDevice
|
4
|
+
class Error < StandardError; end
|
5
|
+
|
6
|
+
class Device
|
7
|
+
def initialize(sn)
|
8
|
+
@sn = sn
|
9
|
+
end
|
10
|
+
|
11
|
+
def brand
|
12
|
+
output = `adb -s #{@sn} shell getprop ro.product.brand`
|
13
|
+
brand = output.tr("\n", "")
|
14
|
+
end
|
15
|
+
|
16
|
+
def model
|
17
|
+
output = `adb -s #{@sn} shell getprop ro.product.model`
|
18
|
+
model = output.tr("\n", "")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: adb_device
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kristaps Indriksons
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Get from connected Android devices brand, model, OS version and many
|
28
|
+
more usefull info. Install, uninstall apps. Pull and push files.
|
29
|
+
email:
|
30
|
+
- indriksons.kristaps@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- ".gitignore"
|
36
|
+
- ".rspec"
|
37
|
+
- Gemfile
|
38
|
+
- Gemfile.lock
|
39
|
+
- README.md
|
40
|
+
- Rakefile
|
41
|
+
- adb_device.gemspec
|
42
|
+
- bin/console
|
43
|
+
- bin/setup
|
44
|
+
- lib/adb_device.rb
|
45
|
+
- lib/adb_device/version.rb
|
46
|
+
homepage:
|
47
|
+
licenses: []
|
48
|
+
metadata:
|
49
|
+
source_code_uri: https://github.com/KristapsIndriksons/adb_device
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options: []
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 2.3.0
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubygems_version: 3.1.2
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: Gem for interacting with connected Android devices.
|
69
|
+
test_files: []
|