android-adb 0.0.3 → 0.0.5
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.
- data/Gemfile +9 -0
- data/Gemfile.lock +24 -0
- data/README.md +22 -19
- data/Rakefile +53 -0
- data/android-adb.gemspec +61 -0
- data/lib/android-adb/version.rb +8 -1
- metadata +57 -37
- data/examples/t.rb +0 -12
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
POpen4 (0.1.4)
|
5
|
+
Platform (>= 0.4.0)
|
6
|
+
open4
|
7
|
+
Platform (0.4.0)
|
8
|
+
git (1.2.5)
|
9
|
+
jeweler (1.5.2)
|
10
|
+
bundler (~> 1.0.0)
|
11
|
+
git (>= 1.2.5)
|
12
|
+
rake
|
13
|
+
open4 (1.0.1)
|
14
|
+
rake (0.8.7)
|
15
|
+
rcov (0.9.9)
|
16
|
+
|
17
|
+
PLATFORMS
|
18
|
+
ruby
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
POpen4 (~> 0.1.4)
|
22
|
+
bundler (~> 1.0)
|
23
|
+
jeweler (~> 1.5.2)
|
24
|
+
rcov
|
data/README.md
CHANGED
@@ -1,19 +1,22 @@
|
|
1
|
-
Android ADB
|
2
|
-
===========
|
3
|
-
|
4
|
-
A ruby gem to bind to the various adb commands (Requires the Android SDK to be installed and tools directory to be in the path).
|
5
|
-
|
6
|
-
### Installation from GitHub sources
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
Android ADB
|
2
|
+
===========
|
3
|
+
|
4
|
+
A ruby gem to bind to the various adb commands (Requires the Android SDK to be installed and tools directory to be in the path).
|
5
|
+
|
6
|
+
### Installation from GitHub sources
|
7
|
+
|
8
|
+
git clone git://github.com/nicstrong/android-adb.git
|
9
|
+
cd android-adb
|
10
|
+
bundle install
|
11
|
+
rake install
|
12
|
+
|
13
|
+
### Running on Ruby 1.9 under Win32
|
14
|
+
|
15
|
+
The POpen4 gem uses win32/open3 on then win32 platform. This gem does not work with Ruby 1.9.
|
16
|
+
|
17
|
+
To work around this use matschaffer port from github. To install:
|
18
|
+
|
19
|
+
git clone git://github.com/matschaffer/win32-open3-19.git
|
20
|
+
cd win32-open3-19
|
21
|
+
gem build win32-open3-19.gemspec
|
22
|
+
gem intall win32-open3-19-0.0.1.gem
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
require './lib/android-adb/version.rb'
|
14
|
+
Jeweler::Tasks.new do |gem|
|
15
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
16
|
+
gem.name = "android-adb"
|
17
|
+
gem.version = AndroidAdb::Version::STRING
|
18
|
+
gem.homepage = "http://github.com/nicstrong/android-adb"
|
19
|
+
gem.license = "Apache 2.0"
|
20
|
+
gem.summary = %Q{Ruby bindings for the Android SDK adb command.}
|
21
|
+
#gem.description = %Q{TODO: longer description of your gem}
|
22
|
+
gem.email = "nic.strong@gmail.com"
|
23
|
+
gem.authors = ["Nic Strong"]
|
24
|
+
|
25
|
+
# Depencencies defined in Gemfile
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rake/testtask'
|
30
|
+
Rake::TestTask.new(:test) do |test|
|
31
|
+
test.libs << 'lib' << 'test'
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
|
36
|
+
require 'rcov/rcovtask'
|
37
|
+
Rcov::RcovTask.new do |test|
|
38
|
+
test.libs << 'test'
|
39
|
+
test.pattern = 'test/**/test_*.rb'
|
40
|
+
test.verbose = true
|
41
|
+
end
|
42
|
+
|
43
|
+
task :default => :test
|
44
|
+
|
45
|
+
require 'rake/rdoctask'
|
46
|
+
Rake::RDocTask.new do |rdoc|
|
47
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
+
|
49
|
+
rdoc.rdoc_dir = 'rdoc'
|
50
|
+
rdoc.title = "android-adb #{version}"
|
51
|
+
rdoc.rdoc_files.include('README*')
|
52
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
+
end
|
data/android-adb.gemspec
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{android-adb}
|
8
|
+
s.version = "0.0.5"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Nic Strong"]
|
12
|
+
s.date = %q{2011-04-28}
|
13
|
+
s.email = %q{nic.strong@gmail.com}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"LICENSE",
|
16
|
+
"README.md"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"Gemfile",
|
20
|
+
"Gemfile.lock",
|
21
|
+
"LICENSE",
|
22
|
+
"README.md",
|
23
|
+
"Rakefile",
|
24
|
+
"android-adb.gemspec",
|
25
|
+
"examples/listpackages.rb",
|
26
|
+
"examples/showcmds.rb",
|
27
|
+
"lib/android-adb.rb",
|
28
|
+
"lib/android-adb/version.rb"
|
29
|
+
]
|
30
|
+
s.homepage = %q{http://github.com/nicstrong/android-adb}
|
31
|
+
s.licenses = ["Apache 2.0"]
|
32
|
+
s.require_paths = ["lib"]
|
33
|
+
s.rubygems_version = %q{1.7.2}
|
34
|
+
s.summary = %q{Ruby bindings for the Android SDK adb command.}
|
35
|
+
s.test_files = [
|
36
|
+
"examples/listpackages.rb",
|
37
|
+
"examples/showcmds.rb"
|
38
|
+
]
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
s.specification_version = 3
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
+
s.add_runtime_dependency(%q<POpen4>, ["~> 0.1.4"])
|
45
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
46
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
47
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
48
|
+
else
|
49
|
+
s.add_dependency(%q<POpen4>, ["~> 0.1.4"])
|
50
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
51
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
52
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
53
|
+
end
|
54
|
+
else
|
55
|
+
s.add_dependency(%q<POpen4>, ["~> 0.1.4"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
58
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
data/lib/android-adb/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: android-adb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
-
|
13
|
+
- Nic Strong
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
@@ -18,9 +18,23 @@ cert_chain: []
|
|
18
18
|
date: 2011-04-28 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
+
none: false
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
hash: 19
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 1
|
30
|
+
- 4
|
31
|
+
version: 0.1.4
|
32
|
+
name: POpen4
|
22
33
|
prerelease: false
|
23
|
-
|
34
|
+
type: :runtime
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
24
38
|
none: false
|
25
39
|
requirements:
|
26
40
|
- - ~>
|
@@ -30,58 +44,63 @@ dependencies:
|
|
30
44
|
- 1
|
31
45
|
- 0
|
32
46
|
version: "1.0"
|
47
|
+
name: bundler
|
48
|
+
prerelease: false
|
33
49
|
type: :development
|
34
|
-
|
50
|
+
requirement: *id002
|
35
51
|
- !ruby/object:Gem::Dependency
|
36
|
-
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
52
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
39
53
|
none: false
|
40
54
|
requirements:
|
41
55
|
- - ~>
|
42
56
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
57
|
+
hash: 7
|
44
58
|
segments:
|
45
|
-
-
|
46
|
-
-
|
47
|
-
|
59
|
+
- 1
|
60
|
+
- 5
|
61
|
+
- 2
|
62
|
+
version: 1.5.2
|
63
|
+
name: jeweler
|
64
|
+
prerelease: false
|
48
65
|
type: :development
|
49
|
-
|
66
|
+
requirement: *id003
|
50
67
|
- !ruby/object:Gem::Dependency
|
51
|
-
|
52
|
-
prerelease: false
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
54
69
|
none: false
|
55
70
|
requirements:
|
56
|
-
- -
|
71
|
+
- - ">="
|
57
72
|
- !ruby/object:Gem::Version
|
58
|
-
hash:
|
73
|
+
hash: 3
|
59
74
|
segments:
|
60
75
|
- 0
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
type: :
|
65
|
-
|
76
|
+
version: "0"
|
77
|
+
name: rcov
|
78
|
+
prerelease: false
|
79
|
+
type: :development
|
80
|
+
requirement: *id004
|
66
81
|
description:
|
67
|
-
email: nic
|
82
|
+
email: nic.strong@gmail.com
|
68
83
|
executables: []
|
69
84
|
|
70
85
|
extensions: []
|
71
86
|
|
72
|
-
extra_rdoc_files:
|
73
|
-
|
87
|
+
extra_rdoc_files:
|
88
|
+
- LICENSE
|
89
|
+
- README.md
|
74
90
|
files:
|
75
|
-
-
|
76
|
-
-
|
77
|
-
- examples/listpackages.rb
|
78
|
-
- examples/showcmds.rb
|
79
|
-
- examples/t.rb
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
80
93
|
- LICENSE
|
81
94
|
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- android-adb.gemspec
|
97
|
+
- examples/listpackages.rb
|
98
|
+
- examples/showcmds.rb
|
99
|
+
- lib/android-adb.rb
|
100
|
+
- lib/android-adb/version.rb
|
82
101
|
homepage: http://github.com/nicstrong/android-adb
|
83
|
-
licenses:
|
84
|
-
|
102
|
+
licenses:
|
103
|
+
- Apache 2.0
|
85
104
|
post_install_message:
|
86
105
|
rdoc_options: []
|
87
106
|
|
@@ -112,5 +131,6 @@ rubygems_version: 1.7.2
|
|
112
131
|
signing_key:
|
113
132
|
specification_version: 3
|
114
133
|
summary: Ruby bindings for the Android SDK adb command.
|
115
|
-
test_files:
|
116
|
-
|
134
|
+
test_files:
|
135
|
+
- examples/listpackages.rb
|
136
|
+
- examples/showcmds.rb
|