push-core 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -71,7 +71,7 @@ You can have each provider per app_name and you can have more than one app_name.
71
71
  3. Select both the certificate and private key.
72
72
  4. Right click and select `Export 2 items...`.
73
73
  5. Save the file as `cert.p12`, make sure the File Format is `Personal Information Exchange (p12)`.
74
- 6. If you decide to set a password for your exported certificate, please read the Configuration section below.
74
+ 6. If you decide to set a password for your exported certificate, please add a `certificate_password` field with your password to the `Push::ConfigurationApns`.
75
75
  7. Convert the certificate to a .pem, where `<environment>` should be `development` or `production`, depending on the certificate you exported.
76
76
 
77
77
  `openssl pkcs12 -nodes -clcerts -in cert.p12 -out <environment>.pem`
data/lib/push/daemon.rb CHANGED
@@ -15,6 +15,7 @@ require 'push/daemon/app'
15
15
 
16
16
  module Push
17
17
  module Daemon
18
+ extend DatabaseReconnectable
18
19
  class << self
19
20
  attr_accessor :logger, :config
20
21
  end
@@ -23,7 +24,11 @@ module Push
23
24
  self.config = config
24
25
  self.logger = Logger.new(:foreground => config.foreground, :error_notification => config.error_notification)
25
26
  setup_signal_hooks
26
- daemonize unless config.foreground
27
+
28
+ unless config.foreground
29
+ daemonize
30
+ reconnect_database
31
+ end
27
32
  write_pid_file
28
33
 
29
34
  App.load
data/lib/push/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Push
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-05 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70179854475920 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,31 @@ dependencies:
21
21
  version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70179854475920
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: multi_json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.3.2
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.3.2
25
46
  - !ruby/object:Gem::Dependency
26
47
  name: sqlite3
27
- requirement: &70179854475500 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
28
49
  none: false
29
50
  requirements:
30
51
  - - ! '>='
@@ -32,7 +53,12 @@ dependencies:
32
53
  version: '0'
33
54
  type: :development
34
55
  prerelease: false
35
- version_requirements: *70179854475500
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
36
62
  description: Push daemon for push notification services like APNS (iOS/Apple) and
37
63
  GCM/C2DM (Android).
38
64
  email:
@@ -90,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
116
  version: '0'
91
117
  requirements: []
92
118
  rubyforge_project:
93
- rubygems_version: 1.8.17
119
+ rubygems_version: 1.8.25
94
120
  signing_key:
95
121
  specification_version: 3
96
122
  summary: Core of the push daemon.