apktool 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.
- data/lib/apktool.rb +2 -1
- data/lib/apktool/version.rb +1 -1
- data/spec/apktool_spec.rb +10 -0
- metadata +1 -1
data/lib/apktool.rb
CHANGED
@@ -2,7 +2,8 @@ require "apktool/version"
|
|
2
2
|
|
3
3
|
module Apktool
|
4
4
|
|
5
|
-
APKTOOL_PATH
|
5
|
+
APKTOOL_PATH = File.dirname(__FILE__) + "/apktool/apktool"
|
6
|
+
DEBUG_KEYSTORE_PATH = File.dirname(__FILE__) + "/apktool/debug.keystore"
|
6
7
|
|
7
8
|
class << self
|
8
9
|
def exec(cmd)
|
data/lib/apktool/version.rb
CHANGED
data/spec/apktool_spec.rb
CHANGED
@@ -10,5 +10,15 @@ describe Apktool do
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
describe "constants" do
|
14
|
+
it "get APKTOOL_PATH" do
|
15
|
+
Apktool::APKTOOL_PATH.should =~ /\/apktool/
|
16
|
+
end
|
17
|
+
|
18
|
+
it "get DEBUG_KEYSTORE_PATH" do
|
19
|
+
Apktool::DEBUG_KEYSTORE_PATH.should =~ /\/debug.keystore/
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
13
23
|
end
|
14
24
|
|