af-addon-tester 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
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** &nbsp;&nbsp; Wait for the callback url to called with updated config vars
56
+
52
57
 
53
58
 
54
59
  ## Meta ##
@@ -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.readlines.to_s
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
@@ -1,5 +1,5 @@
1
1
  module AppFog
2
2
  module AddonTester
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
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-24 00:00:00 -08:00
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