crowdflower 0.4.1 → 0.4.2

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/.gitignore CHANGED
@@ -3,4 +3,6 @@
3
3
  coverage
4
4
  rdoc
5
5
  pkg
6
- tags
6
+ tags/.loadpath
7
+ /.project
8
+ /.loadpath
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
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.4.1"
8
+ s.version = "0.4.2"
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{2010-10-18}
12
+ s.date = %q{2010-11-17}
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!
@@ -20,6 +20,10 @@ module CrowdFlower
20
20
  Unit.get("#{resource_uri}/#{id}")
21
21
  end
22
22
 
23
+ def ping
24
+ Unit.get("#{resource_uri}/ping")
25
+ end
26
+
23
27
  def judgments(id)
24
28
  Unit.get("#{resource_uri}/#{id}/judgments")
25
29
  end
@@ -71,6 +71,10 @@ say "-- Waiting for CrowdFlower to process the data"
71
71
  # server.
72
72
  wait_until { job.get["units_count"] == 8 }
73
73
 
74
+ say "Checking ping."
75
+ assert job.units.ping['count'] == 8
76
+ assert job.units.ping['done'] == true
77
+
74
78
  say "Getting the units for this job."
75
79
  assert job.units.all.size == 8
76
80
 
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: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
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: 2010-10-18 00:00:00 -07:00
19
+ date: 2010-11-17 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency