beanstalkapp 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.1.3
4
+
5
+ * Added ReleaseServer#toggle_state! method for enabling/disabling Releases servers.
6
+
3
7
  == 1.1.2
4
8
 
5
9
  * Fixed find methods in Release class.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beanstalkapp}
8
- s.version = "1.1.2"
8
+ s.version = "1.1.3"
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-01-20}
12
+ s.date = %q{2010-03-25}
13
13
  s.email = %q{ilya.sabanin@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.rdoc"
@@ -10,5 +10,15 @@ module Beanstalk::API
10
10
  find name, :params => { :repository_id => repo_id }
11
11
  end
12
12
 
13
+ def to_param
14
+ name
15
+ end
16
+
17
+ def toggle_state!
18
+ repo_id = prefix_options[:repository_id]
19
+ path = element_path(:repository_id => repo_id, :id => to_param).gsub(".xml", '/toggle_state.xml')
20
+ connection.put(path)
21
+ end
22
+
13
23
  end
14
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalkapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Sabanin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-20 00:00:00 +07:00
12
+ date: 2010-03-25 00:00:00 +07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency