droid_adbs 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c06783a633fb470aac4197887b6f5ea1fc7cbc0f
4
- data.tar.gz: e01b132a3f4388b2dc8428a0e5bf2decf8f10ee5
3
+ metadata.gz: 97c466f189038b5ae2707f2bf0c24b6981edc323
4
+ data.tar.gz: 384e0326c3942bca5fb15e586fb506df6afeecb2
5
5
  SHA512:
6
- metadata.gz: e9dae586b04d91227cb4a73fb481f00aee282e4926641f5c689cb4bfd4ef50e59671bf38cf902fc18f0738b51f8b4c10a44bb22fc90620f3a466a057e889a191
7
- data.tar.gz: 44d893850ac174013b1d822d8df1c17a19bebb06c08f3d15c4715016c600c68ce121311296f9b9bc93b81dd4c26ac5ca797ad045e7690a595d2fe5d8f76a61cf
6
+ metadata.gz: 3ff9ea72dd4981750040f23c0686e5a1338289a77646da3569fdc3c9c830c87965a4fb2c5c10650e4fbadda8b4cd4e747a28f9ca1b6be1afe71a7ed73eac1b0b
7
+ data.tar.gz: 570e138463cbc6b434fca276dfd92b9a9b9cf1db81868444181c3e9787d39cfea60d6f7079d597bfd49525069a4b7c49eb5ea46adf09ff6c5c162aa043d444a4
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # DroidAdbs
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/droid_adbs`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
2
+ `DroidAdbs` is simple `adb` commands for Android.
6
3
 
7
4
  ## Installation
8
5
 
@@ -22,7 +19,7 @@ Or install it yourself as:
22
19
 
23
20
  ## Usage
24
21
 
25
- TODO: Write usage instructions here
22
+ TODO
26
23
 
27
24
  ## Development
28
25
 
@@ -30,12 +27,14 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
30
27
 
31
28
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
29
 
30
+ ## Rubygems
31
+ - https://rubygems.org/gems/droid_adbs
32
+
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/droid_adbs. 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.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/KazuCocoa/droid_adbs. 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.
36
36
 
37
37
 
38
38
  ## License
39
39
 
40
40
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -1,3 +1,3 @@
1
1
  module DroidAdbs
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/droid_adbs.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require "droid_adbs/version"
2
2
  require_relative "droid_adbs/commons/settings"
3
3
  require_relative "droid_adbs/commons/devices"
4
- # require_relative "droid_adbs/commons/debug"
5
4
  require_relative "droid_adbs/commons/backup"
6
5
  require_relative "droid_adbs/aapt"
7
6
 
@@ -9,6 +8,11 @@ module DroidAdbs
9
8
  class << self
10
9
  attr_accessor :device_serial
11
10
 
11
+ # @return [String] adb command with serial
12
+ def adb_serial
13
+ "#{adb} #{device_serial_option}"
14
+ end
15
+
12
16
  # @return [String] adb shell command
13
17
  def shell
14
18
  "#{adb_serial} shell"
@@ -140,14 +144,10 @@ module DroidAdbs
140
144
  private
141
145
 
142
146
  def adb
143
- fail "Please set ANDROID_HOME" unless ENV["ANDROID_HOME"]
147
+ raise "Please set ANDROID_HOME" unless ENV["ANDROID_HOME"]
144
148
  "#{ENV["ANDROID_HOME"]}/platform-tools/adb"
145
149
  end
146
150
 
147
- def adb_serial
148
- "#{adb} #{device_serial_option}"
149
- end
150
-
151
151
  def device_serial_option
152
152
  return "" unless device_serial && !device_serial.empty?
153
153
  "-s #{device_serial}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: droid_adbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,8 +94,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.6.6
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: adb command wrapper
101
101
  test_files: []
102
+ has_rdoc: