grocer 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,10 @@ module Grocer
27
27
  end
28
28
  end
29
29
 
30
+ def connect
31
+ ssl.connect unless ssl.connected?
32
+ end
33
+
30
34
  private
31
35
 
32
36
  def ssl
@@ -1,3 +1,3 @@
1
1
  module Grocer
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -51,6 +51,11 @@ describe Grocer::Connection do
51
51
  subject.port.should == 443
52
52
  end
53
53
 
54
+ it 'can open the connection to the apple push notification service' do
55
+ subject.connect
56
+ ssl.should have_received(:connect)
57
+ end
58
+
54
59
  context 'an open SSLConnection' do
55
60
  before do
56
61
  ssl.stubs(:connected?).returns(true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grocer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-05-11 00:00:00.000000000 Z
14
+ date: 2012-05-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
18
- requirement: &70230402077060 !ruby/object:Gem::Requirement
18
+ requirement: &70258720874480 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.10.0
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *70230402077060
26
+ version_requirements: *70258720874480
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
- requirement: &70230402076560 !ruby/object:Gem::Requirement
29
+ requirement: &70258720873980 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.9.8
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *70230402076560
37
+ version_requirements: *70258720873980
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: mocha
40
- requirement: &70230402076180 !ruby/object:Gem::Requirement
40
+ requirement: &70258720873600 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *70230402076180
48
+ version_requirements: *70258720873600
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bourne
51
- requirement: &70230402075720 !ruby/object:Gem::Requirement
51
+ requirement: &70258720873140 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *70230402075720
59
+ version_requirements: *70258720873140
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rake
62
- requirement: &70230402075300 !ruby/object:Gem::Requirement
62
+ requirement: &70258720872720 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *70230402075300
70
+ version_requirements: *70258720872720
71
71
  description: ! " Grocer interfaces with the Apple Push\n
72
72
  \ Notification Service to send push\n notifications
73
73
  to iOS devices and collect\n notification feedback via
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: 3494865435433528934
143
+ hash: 2882383851937463695
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  segments:
151
151
  - 0
152
- hash: 3494865435433528934
152
+ hash: 2882383851937463695
153
153
  requirements: []
154
154
  rubyforge_project:
155
155
  rubygems_version: 1.8.15