crowdflower 0.6.2 → 0.6.3

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/crowdflower.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{crowdflower}
8
- s.version = "0.6.2"
8
+ s.version = "0.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian P O'Rourke", "Chris Van Pelt"]
12
- s.date = %q{2011-03-03}
12
+ s.date = %q{2011-03-08}
13
13
  s.description = %q{A toolkit for interacting with CrowdFlower via the REST API.
14
14
 
15
15
  This is alpha software. Have fun!
@@ -43,5 +43,9 @@ module CrowdFlower
43
43
  def cancel(unit_id)
44
44
  connection.post("#{resource_uri}/#{unit_id}/cancel.json")
45
45
  end
46
+
47
+ def request_more_judgments(unit_id, nb_judgments = 1)
48
+ connection.post("#{resource_uri}/#{unit_id}/request_more_judgments.json", :body => {:nb_judgments => nb_judgments})
49
+ end
46
50
  end
47
51
  end
@@ -17,7 +17,7 @@ module CrowdFlower
17
17
  :amount => amount,
18
18
  :reason => reason
19
19
  }
20
- connection.post( "#{resource_uri}/#{worker_id}/bonus", :query => params )
20
+ connection.post( "#{resource_uri}/#{worker_id}/bonus", :body => params )
21
21
  end
22
22
 
23
23
  def approve( worker_id )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdflower
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian P O'Rourke
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-03 00:00:00 -08:00
19
+ date: 2011-03-08 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency