af-addon-tester 0.0.6 → 0.0.7
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/README.md +7 -2
- data/bin/af-addon-tester +2 -2
- data/lib/af-addon-tester/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -44,11 +44,16 @@ Example
|
|
|
44
44
|
|
|
45
45
|
If cloned:
|
|
46
46
|
|
|
47
|
-
$ bin/af-addon-tester <path to manifest>
|
|
47
|
+
$ bin/af-addon-tester [-a] <path to manifest>
|
|
48
48
|
|
|
49
49
|
If Gem:
|
|
50
50
|
|
|
51
|
-
$ af-addon-tester <path to manifest>
|
|
51
|
+
$ af-addon-tester [-a] <path to manifest>
|
|
52
|
+
|
|
53
|
+
Options:
|
|
54
|
+
|
|
55
|
+
**-a** Wait for the callback url to called with updated config vars
|
|
56
|
+
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
## Meta ##
|
data/bin/af-addon-tester
CHANGED
|
@@ -19,7 +19,7 @@ username = nil
|
|
|
19
19
|
|
|
20
20
|
begin
|
|
21
21
|
manifest_file = File.open(File.expand_path(manifest_path), 'r')
|
|
22
|
-
manifest_json = manifest_file.
|
|
22
|
+
manifest_json = manifest_file.read
|
|
23
23
|
manifest = JSON.parse(manifest_json)
|
|
24
24
|
|
|
25
25
|
raise "Missing id" if manifest['id'].nil?
|
|
@@ -58,7 +58,7 @@ puts " SSO Salt: #{bwhite(sso_salt[0..2]+sso_salt[3..-1].gsub(/./,'*'))}"
|
|
|
58
58
|
puts ""
|
|
59
59
|
|
|
60
60
|
addon = RestClient::Resource.new resource_host, {:user => username, :password => password}
|
|
61
|
-
headers = { :accept => "application/json", :content_type => "application/json", "User-Agent" => "af-addon-tester/#{VERSION}" }
|
|
61
|
+
headers = { :accept => "application/json", :content_type => "application/json", "User-Agent" => "af-addon-tester/#{AppFog::AddonTester::VERSION}" }
|
|
62
62
|
|
|
63
63
|
resp = nil
|
|
64
64
|
code = nil
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 7
|
|
9
|
+
version: 0.0.7
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Tim Santeford
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2012-01-
|
|
17
|
+
date: 2012-01-26 00:00:00 -08:00
|
|
18
18
|
default_executable: af-addon-tester
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|