pntfr 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pntfr/test_ext.rb +18 -0
- data/lib/pntfr/version.rb +1 -1
- data/lib/pntfr.rb +3 -1
- data/pntfr.gemspec +1 -1
- data/test/test_helper.rb +2 -17
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 829fb782afdbc0f329c888243e0c764e7a834ee3
|
4
|
+
data.tar.gz: 3ea3b3eebb5276bab7e97d9cb43aeb4809aea9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c6647911bfde73e6e622670c9168e75aa07c36926b63b7b553e754862c7f173545656b7e273a97455e34aaa3047b7db3be022aa54df382c082bbf465edbc5a3
|
7
|
+
data.tar.gz: 62d5b85dab82325fef872b3d674ed1b670722af2775ca6162d3002ee39f1a03465976b68a788e5b7e3aa31dcbd145ca47560940b946f045e45355a6ee17fbb2c
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#
|
2
|
+
# Extend library to enable testing.
|
3
|
+
#
|
4
|
+
if Pntfr.test_env?
|
5
|
+
module Pntfr
|
6
|
+
@@deliveries= {}
|
7
|
+
def self.deliveries
|
8
|
+
@@deliveries
|
9
|
+
end
|
10
|
+
def self.add_delivery push_id, n
|
11
|
+
if @@deliveries.has_key?(push_id)
|
12
|
+
@@deliveries[push_id] << n
|
13
|
+
else
|
14
|
+
@@deliveries[push_id]= [n]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/pntfr/version.rb
CHANGED
data/lib/pntfr.rb
CHANGED
data/pntfr.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'apns', '~> 1.0', '>= 1.0.0'
|
22
22
|
spec.add_runtime_dependency 'gcm', '~> 0.0', '>= 0.0.9'
|
23
|
-
spec.add_runtime_dependency 'json', '~> 1.8.1'
|
23
|
+
spec.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
25
25
|
spec.add_development_dependency 'rake'
|
26
26
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
|
-
require 'pntfr'
|
3
2
|
|
4
3
|
ENV['ENV']= 'test'
|
5
4
|
|
5
|
+
require 'pntfr'
|
6
|
+
|
6
7
|
# require all test files
|
7
8
|
def add_to_path(d)
|
8
9
|
Dir.entries(d).each do |f|
|
@@ -17,19 +18,3 @@ def add_to_path(d)
|
|
17
18
|
end
|
18
19
|
add_to_path(File.dirname(__FILE__))
|
19
20
|
|
20
|
-
#
|
21
|
-
# Extend library to enable testing.
|
22
|
-
#
|
23
|
-
module Pntfr
|
24
|
-
@@deliveries= {}
|
25
|
-
def self.deliveries
|
26
|
-
@@deliveries
|
27
|
-
end
|
28
|
-
def self.add_delivery push_id, n
|
29
|
-
if @@deliveries.has_key?(push_id)
|
30
|
-
@@deliveries[push_id] << n
|
31
|
-
else
|
32
|
-
@@deliveries[push_id]= [n]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pntfr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oliver
|
@@ -55,6 +55,9 @@ dependencies:
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1.8'
|
60
|
+
- - ">="
|
58
61
|
- !ruby/object:Gem::Version
|
59
62
|
version: 1.8.1
|
60
63
|
type: :runtime
|
@@ -62,6 +65,9 @@ dependencies:
|
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
67
|
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.8'
|
70
|
+
- - ">="
|
65
71
|
- !ruby/object:Gem::Version
|
66
72
|
version: 1.8.1
|
67
73
|
- !ruby/object:Gem::Dependency
|
@@ -108,6 +114,7 @@ files:
|
|
108
114
|
- lib/pntfr.rb
|
109
115
|
- lib/pntfr/notifier.rb
|
110
116
|
- lib/pntfr/platforms.rb
|
117
|
+
- lib/pntfr/test_ext.rb
|
111
118
|
- lib/pntfr/version.rb
|
112
119
|
- lib/pntfr/virtual_session/android.rb
|
113
120
|
- lib/pntfr/virtual_session/base.rb
|