polleverywhere 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -185,6 +185,18 @@ module PollEverywhere # :nodoc
185
185
  end
186
186
  end
187
187
 
188
+ def results
189
+ if persisted?
190
+ http.get.to(path + '/results').response do |response|
191
+ return true
192
+ end
193
+
194
+ return false
195
+ else
196
+ false
197
+ end
198
+ end
199
+
188
200
  def path
189
201
  "/#{self.class.root_key}s/#{permalink}" if persisted?
190
202
  end
@@ -1,3 +1,3 @@
1
1
  module PollEverywhere
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polleverywhere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &70218786356160 !ruby/object:Gem::Requirement
16
+ requirement: &70134099846800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70218786356160
24
+ version_requirements: *70134099846800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &70218786355540 !ruby/object:Gem::Requirement
27
+ requirement: &70134099845440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.6.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70218786355540
35
+ version_requirements: *70134099845440
36
36
  description: An easy way to integrate Poll Everywhere into your Ruby applications.
37
37
  email:
38
38
  - opensource@polleverywhere.com
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: -3436188828779530093
80
+ hash: -2418092711012021666
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements:
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  segments:
88
88
  - 0
89
- hash: -3436188828779530093
89
+ hash: -2418092711012021666
90
90
  requirements: []
91
91
  rubyforge_project: polleverywhere
92
92
  rubygems_version: 1.8.10