pushable-engine 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a20e3ab72bb629e5ff474d6cb9b870f987633637
4
- data.tar.gz: db849405459d821a2a7401df049baf56b0c76b2f
3
+ metadata.gz: 5d81455128618fa1077f0e0466aecd5141772b4a
4
+ data.tar.gz: e6439b9a33eb372aff785dc313583040d82e07df
5
5
  SHA512:
6
- metadata.gz: c358a06749899be88a5b1e6f3342df4f12cbc3b0899cf3cad8b363e8e4aa36a3f2daefd978ea8359810ffefda1759341225b34bb55ca8ef12733016c3f11e1ef
7
- data.tar.gz: def5de7cfcf1768b7d1ba1df122a84081a817662cba551b61d6ca09e76e3df1af39e0b7f340a293272ffedfa3004df186475cc25317dd488ef5be2a78c5e723b
6
+ metadata.gz: 200baa5705092d3dd3c4856ad2d7b8ba8e684fece77664b992fae255fc72aa2084d78fce9cb15e441cae1f20aab250ef768b6db44bb3095575890c9ff720fe4d
7
+ data.tar.gz: 04289fe64af6bedcfdc27a0b6a834d1e3d345f8e910809cd30d7277f8a7caf308cd06291bd0012e2dc024873fd406b84e0f165cecd657ebc26dbbf127b2a6539
@@ -36,11 +36,17 @@ module Pushable
36
36
  {}
37
37
  end
38
38
 
39
+ def content_available?
40
+ false
41
+ end
42
+
39
43
  private
40
44
 
41
45
  def format(platform)
42
46
  if platform == :ios
43
- { alert: alert, badge: badge, sound: sound, other: other }
47
+ hash = { alert: alert, badge: badge, sound: sound, other: other }
48
+ hash.merge!(content_available: 1) if content_available?
49
+ hash
44
50
  elsif platform == :android
45
51
  { alert: alert }.merge(data: other)
46
52
  end
@@ -1,3 +1,3 @@
1
1
  module Pushable
2
- VERSION = "0.0.2"
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushable-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -56,84 +56,84 @@ dependencies:
56
56
  name: mercurius
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0.0'
61
+ version: 0.1.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0.0'
68
+ version: 0.1.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: capybara
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: capybara-webkit
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: launchy
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: Rails engine to manage device tokens and push messaging.