nadb 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 989bce0af15848488e8f3cf70780e47a910a75fa
4
- data.tar.gz: 95abe0f884e659b598d5bad3d77b2fe65055b1bd
3
+ metadata.gz: ca9f8416a119a6e5adfa9f3b1d265e2a3bfcd74e
4
+ data.tar.gz: 1c83d64e3837151bdacd54fc284e1a0ae59261e7
5
5
  SHA512:
6
- metadata.gz: 6e09ddf1eca0dab4ddcf67b4f56d6c4eafadc3fb9dad2e4dded88726b4e2f883eed168ab6451ccb48c5136942307b954dfe479b55d2563b6ad59867ce1a2e021
7
- data.tar.gz: b67c7e2c9b6cf7df53d8fb259cb18cc593127ff14271fda0a14592b218fbe2c448d3b42d2229174afe628c040838d7037e40a5368f2ecbfb9452d9e7a67dcba6
6
+ metadata.gz: 0e86628bd65d4942a746f651d5e9b1e48540e8761ef3b844d7d4de5d611d41679f99d78ada34a20780363967567aa0dedf2f1511a05fc6af56413cbf4f865a4c
7
+ data.tar.gz: a7f60b0aafc35694a7639810a8289f6c4aca52f02f989c5ac645326b5c2a24fa99d55aca797b2ec91788bbc28a6360a32576d301f1c2652d8e4a4cee46d9c502
data/README.md CHANGED
@@ -18,6 +18,11 @@ Options:
18
18
  -h, --help Display this screen
19
19
  ```
20
20
 
21
+ ## Installation
22
+
23
+ ``gem install nadb``
24
+
25
+
21
26
  ## Defining aliases
22
27
 
23
28
  Simply create a ``~/.nadb.config`` file with contents like these:
data/lib/nadb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nadb
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/nadb.rb CHANGED
@@ -102,6 +102,22 @@ eos
102
102
  return
103
103
  end
104
104
 
105
+ # Run on a specific device
106
+ if @options[:name]
107
+ if !@config.key? "aliases"
108
+ raise "No aliases defined in your ~/nadb.config file"
109
+ end
110
+
111
+ device = @config["aliases"][@options[:name]]
112
+ if device.nil?
113
+ raise "Requested device not found in aliases"
114
+ end
115
+
116
+ run_adb_command command_to_run, device
117
+
118
+ return
119
+ end
120
+
105
121
  # Run on all connected devices
106
122
  if @options[:all]
107
123
  devices = get_connected_devices
data/nadb.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["hamid.palo@gmail.com"]
11
11
  spec.summary = %q{A nicer interface for adb}
12
12
  spec.description = %q{}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/hamidp/nadb"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
data/pkg/nadb-0.0.1.gem CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nadb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamid Palo
@@ -56,7 +56,7 @@ files:
56
56
  - lib/nadb/version.rb
57
57
  - nadb.gemspec
58
58
  - pkg/nadb-0.0.1.gem
59
- homepage: ''
59
+ homepage: https://github.com/hamidp/nadb
60
60
  licenses:
61
61
  - MIT
62
62
  metadata: {}