kensa 1.0.0.beta1 → 1.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -22,14 +22,14 @@ begin
22
22
  gemspec.add_development_dependency(%q<turn>, [">= 0"])
23
23
  gemspec.add_development_dependency(%q<contest>, [">= 0"])
24
24
  gemspec.add_development_dependency(%q<timecop>, [">= 0.3.5"])
25
- gemspec.add_dependency(%q<sinatra>, ["~> 0.9"])
25
+ gemspec.add_development_dependency(%q<sinatra>, [">= 0.9"])
26
26
  gemspec.add_dependency(%q<rest-client>, ["~> 1.4.0"])
27
27
  gemspec.add_dependency(%q<yajl-ruby>, ["~> 0.6"])
28
28
  gemspec.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
29
29
  gemspec.add_dependency(%q<launchy>, [">= 0.3.2"])
30
30
  gemspec.add_dependency(%q<mechanize>, ["~> 1.0.0"])
31
31
 
32
- gemspec.version = '1.0.0.beta1'
32
+ gemspec.version = '1.0.0.beta2'
33
33
  end
34
34
  rescue LoadError
35
35
  puts "Jeweler not available. Install it with: gem install jeweler"
data/kensa.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kensa}
8
- s.version = "1.0.0.beta1"
8
+ s.version = "1.0.0.beta2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Blake Mizerany", "Pedro Belo", "Adam Wiggins"]
12
- s.date = %q{2010-07-19}
12
+ s.date = %q{2010-07-28}
13
13
  s.default_executable = %q{kensa}
14
14
  s.description = %q{}
15
15
  s.email = %q{pedro@heroku.com}
@@ -65,7 +65,7 @@ Gem::Specification.new do |s|
65
65
  s.add_development_dependency(%q<turn>, [">= 0"])
66
66
  s.add_development_dependency(%q<contest>, [">= 0"])
67
67
  s.add_development_dependency(%q<timecop>, [">= 0.3.5"])
68
- s.add_runtime_dependency(%q<sinatra>, ["~> 0.9"])
68
+ s.add_development_dependency(%q<sinatra>, [">= 0.9"])
69
69
  s.add_runtime_dependency(%q<rest-client>, ["~> 1.4.0"])
70
70
  s.add_runtime_dependency(%q<yajl-ruby>, ["~> 0.6"])
71
71
  s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0"])
@@ -75,7 +75,7 @@ Gem::Specification.new do |s|
75
75
  s.add_dependency(%q<turn>, [">= 0"])
76
76
  s.add_dependency(%q<contest>, [">= 0"])
77
77
  s.add_dependency(%q<timecop>, [">= 0.3.5"])
78
- s.add_dependency(%q<sinatra>, ["~> 0.9"])
78
+ s.add_dependency(%q<sinatra>, [">= 0.9"])
79
79
  s.add_dependency(%q<rest-client>, ["~> 1.4.0"])
80
80
  s.add_dependency(%q<yajl-ruby>, ["~> 0.6"])
81
81
  s.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
@@ -86,7 +86,7 @@ Gem::Specification.new do |s|
86
86
  s.add_dependency(%q<turn>, [">= 0"])
87
87
  s.add_dependency(%q<contest>, [">= 0"])
88
88
  s.add_dependency(%q<timecop>, [">= 0.3.5"])
89
- s.add_dependency(%q<sinatra>, ["~> 0.9"])
89
+ s.add_dependency(%q<sinatra>, [">= 0.9"])
90
90
  s.add_dependency(%q<rest-client>, ["~> 1.4.0"])
91
91
  s.add_dependency(%q<yajl-ruby>, ["~> 0.6"])
92
92
  s.add_dependency(%q<term-ansicolor>, ["~> 1.0"])
@@ -258,15 +258,13 @@ module Heroku
258
258
  check "response" do
259
259
  if data[:async]
260
260
  child = fork do
261
- Timeout.timeout(10) do
262
- reader.close
263
- server = TCPServer.open(7779)
264
- client = server.accept
265
- writer.write(client.readpartial(READLEN))
266
- client.write("HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n")
267
- client.close
268
- writer.close
269
- end
261
+ reader.close
262
+ server = TCPServer.open(7779)
263
+ client = server.accept
264
+ writer.write(client.readpartial(READLEN))
265
+ client.write("HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n")
266
+ client.close
267
+ writer.close
270
268
  end
271
269
  sleep(1)
272
270
  end
@@ -69,6 +69,10 @@ module Heroku
69
69
  resource = RestClient::Resource.new(host, client.user, client.password)
70
70
  resource['provider/addons'].post(resolve_manifest)
71
71
  puts "Manifest pushed succesfully"
72
+ rescue RestClient::Unauthorized
73
+ abort("Authentication failure")
74
+ rescue RestClient::Forbidden
75
+ abort("Not authorized to push this manifest. Please make sure you have permissions to push it")
72
76
  end
73
77
 
74
78
  private
@@ -37,9 +37,9 @@ module Heroku
37
37
  :addon => 'Your Addon',
38
38
  :appname => 'myapp',
39
39
  :addons => [
40
- { :slug => 'cron', :name => 'Cron'},
41
- { :slug => 'custom_domains+wildcard', :name => 'Custom Domains + Wildcard'},
42
- { :slug => 'youraddon', :name => 'Your Addon'},
40
+ { :slug => 'cron', :name => 'Cron' },
41
+ { :slug => 'custom_domains+wildcard', :name => 'Custom Domains + Wildcard' },
42
+ { :slug => 'youraddon', :name => 'Your Addon', :current => true },
43
43
  ]
44
44
  })
45
45
  base64_url_variant(json)
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 0
8
8
  - 0
9
- - beta1
10
- version: 1.0.0.beta1
9
+ - beta2
10
+ version: 1.0.0.beta2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Blake Mizerany
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-07-19 00:00:00 -07:00
20
+ date: 2010-07-28 00:00:00 -07:00
21
21
  default_executable: kensa
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -63,13 +63,13 @@ dependencies:
63
63
  prerelease: false
64
64
  requirement: &id004 !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  segments:
69
69
  - 0
70
70
  - 9
71
71
  version: "0.9"
72
- type: :runtime
72
+ type: :development
73
73
  version_requirements: *id004
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: rest-client