speedy_c2dm 1.0.1 → 1.0.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/README.markdown CHANGED
@@ -18,6 +18,11 @@ This GEM will request the token when the SpeedyC2DM::API.send_notification() cla
18
18
 
19
19
  An Android device running 2.2 or newer, its registration token, and a Google account registered for c2dm.
20
20
 
21
+ Also, make sure 'net/http' and 'net/https' are available:
22
+
23
+ require "net/http"
24
+ require "net/https"
25
+
21
26
  ##Compatibility
22
27
 
23
28
  Speedy_C2DM will work with Rails 3.x & Ruby 1.9x. It has not been tested on previous versions or Rails or Ruby, and may or may not work with those versions.
data/lib/speedy_c2dm.rb CHANGED
@@ -75,8 +75,8 @@ module SpeedyC2DM
75
75
  http.use_ssl = true
76
76
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
77
77
 
78
- response, body = http.post(uri.path, data, headers)
79
- return body.split("\n")[2].gsub("Auth=", "")
78
+ response = http.post(uri.path, data, headers)
79
+ return response.body.split("\n")[2].gsub("Auth=", "")
80
80
  end
81
81
 
82
82
  def notificationRequest(options)
@@ -1,3 +1,3 @@
1
1
  module SpeedyC2dm
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speedy_c2dm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-04 00:00:00.000000000 -04:00
13
- default_executable:
12
+ date: 2012-02-21 00:00:00.000000000Z
14
13
  dependencies: []
15
14
  description: Speedy C2DM efficiently sends push notifications to Android devices via
16
15
  google c2dm.
@@ -31,7 +30,6 @@ files:
31
30
  - speedy_c2dm.gemspec
32
31
  - test/helper.rb
33
32
  - test/test_speedy_c2dm.rb
34
- has_rdoc: true
35
33
  homepage: ''
36
34
  licenses: []
37
35
  post_install_message:
@@ -52,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
50
  version: '0'
53
51
  requirements: []
54
52
  rubyforge_project: speedy_c2dm
55
- rubygems_version: 1.6.2
53
+ rubygems_version: 1.8.15
56
54
  signing_key:
57
55
  specification_version: 3
58
56
  summary: Speedy C2DM is an intelligent gem for sending push notifications to Android