adb_device 0.1.0

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.
@@ -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
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --color
3
+ --format documentation
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in adb_device.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
@@ -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
@@ -0,0 +1,2 @@
1
+ # adb_device
2
+ This is a gem for interacting with a connected Android devices
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -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
@@ -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__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -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
@@ -0,0 +1,3 @@
1
+ module AdbDevice
2
+ VERSION = "0.1.0"
3
+ 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: []