beanstalkapp 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,12 @@
1
1
  = Changelog
2
2
 
3
+ == 1.4.1
4
+
5
+ * Added User.find_current for fetching info about currently logged in user.
6
+
3
7
  == 1.4.0
4
8
 
5
- * Use HTTPS connection by default.
9
+ * Added Release#retry method for retrying failed deployments.
6
10
 
7
11
  == 1.3.0
8
12
 
@@ -32,5 +32,5 @@ For information about all API methods please go to the official documentation si
32
32
 
33
33
  http://api.beanstalkapp.com
34
34
 
35
- Copyright (c) 2010 Ilya Sabanin, Wildbit.
35
+ Copyright (c) 2011 Ilya Sabanin, Wildbit.
36
36
  Released under the MIT license
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -1,146 +1,144 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beanstalkapp}
8
- s.version = "1.4.0"
8
+ s.version = "1.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Sabanin"]
12
- s.date = %q{2010-12-09}
12
+ s.date = %q{2011-03-08}
13
13
  s.email = %q{ilya.sabanin@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.rdoc"
16
16
  ]
17
17
  s.files = [
18
- ".gitignore",
19
- "CHANGES.rdoc",
20
- "MIT-LICENSE",
21
- "README.rdoc",
22
- "Rakefile",
23
- "VERSION",
24
- "beanstalkapp.gemspec",
25
- "doc/account.html",
26
- "doc/changelog.html",
27
- "doc/changeset.html",
28
- "doc/comment.html",
29
- "doc/files/javascripts/code-highlighter.js",
30
- "doc/files/javascripts/global.js",
31
- "doc/files/javascripts/mootools-1.2.4-core-yc.js",
32
- "doc/files/stylesheets/global.css",
33
- "doc/files/stylesheets/ie7.css",
34
- "doc/images/apple-touch-icon.png",
35
- "doc/images/b-search.gif",
36
- "doc/images/b-submit.gif",
37
- "doc/images/b-tour.png",
38
- "doc/images/bg-comments-count.png",
39
- "doc/images/bg-corners.png",
40
- "doc/images/bg-header-pattern-alt.png",
41
- "doc/images/bg-header-pattern.png",
42
- "doc/images/bg-header.png",
43
- "doc/images/bg-input.png",
44
- "doc/images/bg-page-pattern-alt.png",
45
- "doc/images/bg-page-pattern.png",
46
- "doc/images/bg-plans.png",
47
- "doc/images/bg-ref-basecamp.gif",
48
- "doc/images/bg-ref-lighthouse.gif",
49
- "doc/images/bg-ref-rackspace.gif",
50
- "doc/images/bg-ref-versions.gif",
51
- "doc/images/bg-referrer.png",
52
- "doc/images/bg-screenshot.png",
53
- "doc/images/bg-tooltip.png",
54
- "doc/images/button.png",
55
- "doc/images/customers/blueflavor.png",
56
- "doc/images/customers/brightcove.png",
57
- "doc/images/customers/flipshake-s.png",
58
- "doc/images/customers/flipshake.png",
59
- "doc/images/customers/helloenjoy-s.png",
60
- "doc/images/customers/helloenjoy.png",
61
- "doc/images/customers/netmagazine.jpg",
62
- "doc/images/customers/newrelic.png",
63
- "doc/images/customers/puma.png",
64
- "doc/images/customers/realmac-s.png",
65
- "doc/images/customers/realmac.png",
66
- "doc/images/customers/scrapblog.png",
67
- "doc/images/customers/store74.gif",
68
- "doc/images/customers/theappleblog.jpg",
69
- "doc/images/customers/tuaw.jpg",
70
- "doc/images/customers/vzaar-s.png",
71
- "doc/images/customers/vzaar.png",
72
- "doc/images/customers/wufoo-s.png",
73
- "doc/images/customers/wufoo.png",
74
- "doc/images/favicon.ico",
75
- "doc/images/i-arrow.png",
76
- "doc/images/i-cc.png",
77
- "doc/images/i-checkmark.png",
78
- "doc/images/i-features.png",
79
- "doc/images/i-help.png",
80
- "doc/images/i-input-email.png",
81
- "doc/images/i-input-password.png",
82
- "doc/images/i-leaf.png",
83
- "doc/images/i-lock-sml.png",
84
- "doc/images/i-rss.png",
85
- "doc/images/i-tour-help.png",
86
- "doc/images/logo-rackspace.gif",
87
- "doc/images/logo-sml.png",
88
- "doc/images/logo-wildbit.png",
89
- "doc/images/logo.png",
90
- "doc/images/logos/basecamp-ref.png",
91
- "doc/images/logos/basecamp.png",
92
- "doc/images/logos/campfire.png",
93
- "doc/images/logos/cloudscaling.png",
94
- "doc/images/logos/collabnet.gif",
95
- "doc/images/logos/dynect.png",
96
- "doc/images/logos/fogbugz.png",
97
- "doc/images/logos/freckle.png",
98
- "doc/images/logos/harvest-ref.gif",
99
- "doc/images/logos/harvest.png",
100
- "doc/images/logos/lighthouse-ref.png",
101
- "doc/images/logos/lighthouse.png",
102
- "doc/images/logos/pixelnovel.png",
103
- "doc/images/logos/rackspace-ref.gif",
104
- "doc/images/logos/rackspace.gif",
105
- "doc/images/logos/rackspace.png",
106
- "doc/images/logos/splunk-s.png",
107
- "doc/images/logos/splunk.png",
108
- "doc/images/logos/teamsupport.png",
109
- "doc/images/logos/twitter.png",
110
- "doc/images/logos/versions-ref.gif",
111
- "doc/images/logos/versions.png",
112
- "doc/images/promo-screenshots.png",
113
- "doc/images/sep-promo.png",
114
- "doc/images/ss-browse.png",
115
- "doc/images/ss-changeset.png",
116
- "doc/images/ss-dashboard.png",
117
- "doc/images/ss-integrations.png",
118
- "doc/images/ss-releases.png",
119
- "doc/images/ss-repositories.png",
120
- "doc/images/ss-signup-motivator.jpg",
121
- "doc/introduction.html",
122
- "doc/rails_plugin.html",
123
- "doc/release.html",
124
- "doc/release_server.html",
125
- "doc/repository.html",
126
- "doc/ruby_gem.html",
127
- "doc/server_environment.html",
128
- "doc/user.html",
129
- "lib/beanstalkapp.rb",
130
- "lib/beanstalkapp/account.rb",
131
- "lib/beanstalkapp/base.rb",
132
- "lib/beanstalkapp/changeset.rb",
133
- "lib/beanstalkapp/comment.rb",
134
- "lib/beanstalkapp/plan.rb",
135
- "lib/beanstalkapp/release.rb",
136
- "lib/beanstalkapp/release_server.rb",
137
- "lib/beanstalkapp/repository.rb",
138
- "lib/beanstalkapp/server_environment.rb",
139
- "lib/beanstalkapp/user.rb",
140
- "test/integration.rb"
18
+ "CHANGES.rdoc",
19
+ "MIT-LICENSE",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "beanstalkapp.gemspec",
24
+ "doc/account.html",
25
+ "doc/changelog.html",
26
+ "doc/changeset.html",
27
+ "doc/comment.html",
28
+ "doc/files/javascripts/code-highlighter.js",
29
+ "doc/files/javascripts/global.js",
30
+ "doc/files/javascripts/mootools-1.2.4-core-yc.js",
31
+ "doc/files/stylesheets/global.css",
32
+ "doc/files/stylesheets/ie7.css",
33
+ "doc/images/apple-touch-icon.png",
34
+ "doc/images/b-search.gif",
35
+ "doc/images/b-submit.gif",
36
+ "doc/images/b-tour.png",
37
+ "doc/images/bg-comments-count.png",
38
+ "doc/images/bg-corners.png",
39
+ "doc/images/bg-header-pattern-alt.png",
40
+ "doc/images/bg-header-pattern.png",
41
+ "doc/images/bg-header.png",
42
+ "doc/images/bg-input.png",
43
+ "doc/images/bg-page-pattern-alt.png",
44
+ "doc/images/bg-page-pattern.png",
45
+ "doc/images/bg-plans.png",
46
+ "doc/images/bg-ref-basecamp.gif",
47
+ "doc/images/bg-ref-lighthouse.gif",
48
+ "doc/images/bg-ref-rackspace.gif",
49
+ "doc/images/bg-ref-versions.gif",
50
+ "doc/images/bg-referrer.png",
51
+ "doc/images/bg-screenshot.png",
52
+ "doc/images/bg-tooltip.png",
53
+ "doc/images/button.png",
54
+ "doc/images/customers/blueflavor.png",
55
+ "doc/images/customers/brightcove.png",
56
+ "doc/images/customers/flipshake-s.png",
57
+ "doc/images/customers/flipshake.png",
58
+ "doc/images/customers/helloenjoy-s.png",
59
+ "doc/images/customers/helloenjoy.png",
60
+ "doc/images/customers/netmagazine.jpg",
61
+ "doc/images/customers/newrelic.png",
62
+ "doc/images/customers/puma.png",
63
+ "doc/images/customers/realmac-s.png",
64
+ "doc/images/customers/realmac.png",
65
+ "doc/images/customers/scrapblog.png",
66
+ "doc/images/customers/store74.gif",
67
+ "doc/images/customers/theappleblog.jpg",
68
+ "doc/images/customers/tuaw.jpg",
69
+ "doc/images/customers/vzaar-s.png",
70
+ "doc/images/customers/vzaar.png",
71
+ "doc/images/customers/wufoo-s.png",
72
+ "doc/images/customers/wufoo.png",
73
+ "doc/images/favicon.ico",
74
+ "doc/images/i-arrow.png",
75
+ "doc/images/i-cc.png",
76
+ "doc/images/i-checkmark.png",
77
+ "doc/images/i-features.png",
78
+ "doc/images/i-help.png",
79
+ "doc/images/i-input-email.png",
80
+ "doc/images/i-input-password.png",
81
+ "doc/images/i-leaf.png",
82
+ "doc/images/i-lock-sml.png",
83
+ "doc/images/i-rss.png",
84
+ "doc/images/i-tour-help.png",
85
+ "doc/images/logo-rackspace.gif",
86
+ "doc/images/logo-sml.png",
87
+ "doc/images/logo-wildbit.png",
88
+ "doc/images/logo.png",
89
+ "doc/images/logos/basecamp-ref.png",
90
+ "doc/images/logos/basecamp.png",
91
+ "doc/images/logos/campfire.png",
92
+ "doc/images/logos/cloudscaling.png",
93
+ "doc/images/logos/collabnet.gif",
94
+ "doc/images/logos/dynect.png",
95
+ "doc/images/logos/fogbugz.png",
96
+ "doc/images/logos/freckle.png",
97
+ "doc/images/logos/harvest-ref.gif",
98
+ "doc/images/logos/harvest.png",
99
+ "doc/images/logos/lighthouse-ref.png",
100
+ "doc/images/logos/lighthouse.png",
101
+ "doc/images/logos/pixelnovel.png",
102
+ "doc/images/logos/rackspace-ref.gif",
103
+ "doc/images/logos/rackspace.gif",
104
+ "doc/images/logos/rackspace.png",
105
+ "doc/images/logos/splunk-s.png",
106
+ "doc/images/logos/splunk.png",
107
+ "doc/images/logos/teamsupport.png",
108
+ "doc/images/logos/twitter.png",
109
+ "doc/images/logos/versions-ref.gif",
110
+ "doc/images/logos/versions.png",
111
+ "doc/images/promo-screenshots.png",
112
+ "doc/images/sep-promo.png",
113
+ "doc/images/ss-browse.png",
114
+ "doc/images/ss-changeset.png",
115
+ "doc/images/ss-dashboard.png",
116
+ "doc/images/ss-integrations.png",
117
+ "doc/images/ss-releases.png",
118
+ "doc/images/ss-repositories.png",
119
+ "doc/images/ss-signup-motivator.jpg",
120
+ "doc/introduction.html",
121
+ "doc/rails_plugin.html",
122
+ "doc/release.html",
123
+ "doc/release_server.html",
124
+ "doc/repository.html",
125
+ "doc/ruby_gem.html",
126
+ "doc/server_environment.html",
127
+ "doc/user.html",
128
+ "lib/beanstalkapp.rb",
129
+ "lib/beanstalkapp/account.rb",
130
+ "lib/beanstalkapp/base.rb",
131
+ "lib/beanstalkapp/changeset.rb",
132
+ "lib/beanstalkapp/comment.rb",
133
+ "lib/beanstalkapp/plan.rb",
134
+ "lib/beanstalkapp/release.rb",
135
+ "lib/beanstalkapp/release_server.rb",
136
+ "lib/beanstalkapp/repository.rb",
137
+ "lib/beanstalkapp/server_environment.rb",
138
+ "lib/beanstalkapp/user.rb",
139
+ "test/integration.rb"
141
140
  ]
142
141
  s.homepage = %q{http://api.beanstalkapp.com}
143
- s.rdoc_options = ["--charset=UTF-8"]
144
142
  s.require_paths = ["lib"]
145
143
  s.rubygems_version = %q{1.3.7}
146
144
  s.summary = %q{Official wrapper for Beanstalk API.}
@@ -5,13 +5,17 @@ module Beanstalk
5
5
  end
6
6
  end
7
7
 
8
- require 'beanstalkapp/base'
9
- require 'beanstalkapp/account'
10
- require 'beanstalkapp/plan'
11
- require 'beanstalkapp/changeset'
12
- require 'beanstalkapp/repository'
13
- require 'beanstalkapp/comment'
14
- require 'beanstalkapp/server_environment'
15
- require 'beanstalkapp/release'
16
- require 'beanstalkapp/release_server'
17
- require 'beanstalkapp/user'
8
+ def require_local(suffix)
9
+ require(File.expand_path(File.join(File.dirname(__FILE__), suffix)))
10
+ end
11
+
12
+ require_local 'beanstalkapp/base'
13
+ require_local 'beanstalkapp/account'
14
+ require_local 'beanstalkapp/plan'
15
+ require_local 'beanstalkapp/changeset'
16
+ require_local 'beanstalkapp/repository'
17
+ require_local 'beanstalkapp/comment'
18
+ require_local 'beanstalkapp/server_environment'
19
+ require_local 'beanstalkapp/release'
20
+ require_local 'beanstalkapp/release_server'
21
+ require_local 'beanstalkapp/user'
@@ -3,7 +3,7 @@ module Beanstalk
3
3
  class Base < ActiveResource::Base
4
4
  def self.setup(options)
5
5
  options[:host] ||= "beanstalkapp.com"
6
- self.site = "https://#{options[:domain]}.#{options[:host]}/api"
6
+ self.site = "http://#{options[:domain]}.#{options[:host]}/api"
7
7
  self.user = options[:login]
8
8
  self.password = options[:password]
9
9
  end
@@ -18,5 +18,9 @@ module Beanstalk::API
18
18
  find id, :params => { :repository_id => repo_id }
19
19
  end
20
20
 
21
+ def retry
22
+ put(:retry, :id => id)
23
+ end
24
+
21
25
  end
22
26
  end
@@ -1,4 +1,9 @@
1
1
  module Beanstalk::API
2
2
  class User < Base
3
+
4
+ def self.find_current
5
+ get :current
6
+ end
7
+
3
8
  end
4
9
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalkapp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 0
10
- version: 1.4.0
9
+ - 1
10
+ version: 1.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Sabanin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-09 00:00:00 +01:00
18
+ date: 2011-03-08 00:00:00 +07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,6 @@ extensions: []
43
43
  extra_rdoc_files:
44
44
  - README.rdoc
45
45
  files:
46
- - .gitignore
47
46
  - CHANGES.rdoc
48
47
  - MIT-LICENSE
49
48
  - README.rdoc
@@ -171,8 +170,8 @@ homepage: http://api.beanstalkapp.com
171
170
  licenses: []
172
171
 
173
172
  post_install_message:
174
- rdoc_options:
175
- - --charset=UTF-8
173
+ rdoc_options: []
174
+
176
175
  require_paths:
177
176
  - lib
178
177
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC