zero_push 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile.lock +1 -1
- data/lib/zero_push/client.rb +33 -0
- data/lib/zero_push/version.rb +1 -1
- data/lib/zero_push.rb +1 -34
- data/spec/fixtures/notify.yml +25 -69
- data/spec/fixtures/verify_credentials.yml +64 -125
- data/spec/zero_push_spec.rb +1 -3
- metadata +6 -25
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OGE2NGMyNzBiNzFiMTZjZTJkZjBmNzUwNWQxYmY5MDVkYTI1OWRjMw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWE3ZDRhZmM0N2E2M2ViOWUyNDg0ZWE5ZmJhMDRlZjRhZmNlMzM0Yg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
N2ZiZWM0YTIwMGUwMjRiYjc3ODA2ZTdhNDg4YWZlNGM1NzVmOTcxYjgwMThl
|
10
|
+
MmMyZjVjZTQ2NzhiNmFkZTczMjNkZmFlODg2YzlmMThhYmJhMjMwYjEyMGU2
|
11
|
+
OWMyZjYzY2RlMDMyZjc5NzhjOWQ5ODdiZDcxYWRlMGUwMjdiYzU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzkzMWY3NWZhZTY0Nzc1YzU3OTJjNzMzYjUxNTM4Mjk5YWI5MTEzYmI1YzRl
|
14
|
+
Nzg1ZmNkMDExYjBkNjQ3NDQ2YjQ5M2M3MDBjMDE0Yjk1ZmMzNjJiMjE5MjRi
|
15
|
+
YjJjOTE0MmNkMGQzOWQ2OTg3OGU1NGQ2YThlZGQ3MjJmZDIyYTA=
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
module ZeroPush
|
2
|
+
URL = "https://api.zeropush.com"
|
3
|
+
|
4
|
+
class << self
|
5
|
+
attr_accessor :auth_token
|
6
|
+
|
7
|
+
# verifies credentials
|
8
|
+
#
|
9
|
+
# @return [Boolean]
|
10
|
+
def verify_credentials
|
11
|
+
response = client.get('/verify_credentials')
|
12
|
+
response.status == 200
|
13
|
+
end
|
14
|
+
|
15
|
+
# Sends a notification to the list of devices
|
16
|
+
#
|
17
|
+
# @param params [Hash]
|
18
|
+
# @return response
|
19
|
+
def notify(params)
|
20
|
+
client.post('/notify', params)
|
21
|
+
end
|
22
|
+
|
23
|
+
# the HTTP client configured for API requests
|
24
|
+
#
|
25
|
+
def client
|
26
|
+
Faraday.new(url: URL) do |c|
|
27
|
+
c.token_auth self.auth_token
|
28
|
+
c.request :url_encoded # form-encode POST params
|
29
|
+
c.adapter Faraday.default_adapter # Net::HTTP
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/zero_push/version.rb
CHANGED
data/lib/zero_push.rb
CHANGED
@@ -1,36 +1,3 @@
|
|
1
1
|
require 'zero_push/version'
|
2
|
+
require 'zero_push/client'
|
2
3
|
require 'faraday'
|
3
|
-
|
4
|
-
module ZeroPush
|
5
|
-
URL = "https://api.zeropush.com"
|
6
|
-
|
7
|
-
class << self
|
8
|
-
attr_accessor :auth_token
|
9
|
-
|
10
|
-
# verifies credentials
|
11
|
-
#
|
12
|
-
# @return [Boolean]
|
13
|
-
def verify_credentials
|
14
|
-
response = client.get('/api/verify_credentials')
|
15
|
-
response.status == 200
|
16
|
-
end
|
17
|
-
|
18
|
-
# Sends a notification to the list of devices
|
19
|
-
#
|
20
|
-
# @param params [Hash]
|
21
|
-
# @return response
|
22
|
-
def notify(params)
|
23
|
-
client.post('/api/notify', params)
|
24
|
-
end
|
25
|
-
|
26
|
-
# the HTTP client configured for API requests
|
27
|
-
#
|
28
|
-
def client
|
29
|
-
Faraday.new(url: URL) do |c|
|
30
|
-
c.token_auth self.auth_token
|
31
|
-
c.request :url_encoded # form-encode POST params
|
32
|
-
c.adapter Faraday.default_adapter # Net::HTTP
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
data/spec/fixtures/notify.yml
CHANGED
@@ -2,13 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.zeropush.com/notify
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: device_tokens%5B%5D=abc&alert=hi
|
9
9
|
headers:
|
10
10
|
Authorization:
|
11
|
-
- Token token="
|
11
|
+
- Token token="test_token"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.6
|
12
14
|
Content-Type:
|
13
15
|
- application/x-www-form-urlencoded
|
14
16
|
response:
|
@@ -16,86 +18,40 @@ http_interactions:
|
|
16
18
|
code: 200
|
17
19
|
message:
|
18
20
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
+
server:
|
22
|
+
- nginx/1.2.6
|
23
|
+
date:
|
24
|
+
- Thu, 06 Jun 2013 20:13:18 GMT
|
21
25
|
content-type:
|
22
26
|
- application/json; charset=utf-8
|
23
|
-
date:
|
24
|
-
- Wed, 13 Mar 2013 21:05:29 GMT
|
25
|
-
etag:
|
26
|
-
- ! '"58f271cd44a149e655e5c75c6ac3d588"'
|
27
|
-
server:
|
28
|
-
- thin 1.5.0 codename Knife
|
29
|
-
set-cookie:
|
30
|
-
- _zero-push-session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTk2NjVhZjc2YjMzZTMwNmQ0YjJhMzRiN2U4ZmQxYzk1BjsAVA%3D%3D--d186be60e0d9a153a4a9d08e1f3c8dfab34e1786;
|
31
|
-
path=/; secure; HttpOnly
|
32
|
-
strict-transport-security:
|
33
|
-
- max-age=31536000
|
34
|
-
x-rack-cache:
|
35
|
-
- invalidate, pass
|
36
|
-
x-request-id:
|
37
|
-
- aa38693443c1b79f3ff977d6652b8a7c
|
38
|
-
x-runtime:
|
39
|
-
- '0.020943'
|
40
|
-
x-ua-compatible:
|
41
|
-
- IE=Edge
|
42
27
|
transfer-encoding:
|
43
28
|
- chunked
|
44
29
|
connection:
|
45
|
-
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
-
|
52
|
-
method: post
|
53
|
-
uri: https://staging.zeropush.com/api/notify
|
54
|
-
body:
|
55
|
-
encoding: US-ASCII
|
56
|
-
string: device_tokens%5B%5D=abc&alert=hi
|
57
|
-
headers:
|
58
|
-
Authorization:
|
59
|
-
- Token token="uVamTBsaKTBVNDjKd5wo"
|
60
|
-
User-Agent:
|
61
|
-
- Faraday v0.8.6
|
62
|
-
Content-Type:
|
63
|
-
- application/x-www-form-urlencoded
|
64
|
-
response:
|
65
|
-
status:
|
66
|
-
code: 200
|
67
|
-
message:
|
68
|
-
headers:
|
69
|
-
cache-control:
|
70
|
-
- max-age=0, private, must-revalidate
|
71
|
-
content-type:
|
72
|
-
- application/json; charset=utf-8
|
73
|
-
date:
|
74
|
-
- Wed, 20 Mar 2013 18:58:26 GMT
|
30
|
+
- close
|
31
|
+
status:
|
32
|
+
- 200 OK
|
33
|
+
strict-transport-security:
|
34
|
+
- max-age=31536000
|
35
|
+
x-ua-compatible:
|
36
|
+
- IE=Edge,chrome=1
|
75
37
|
etag:
|
76
38
|
- ! '"58f271cd44a149e655e5c75c6ac3d588"'
|
77
|
-
|
78
|
-
-
|
39
|
+
cache-control:
|
40
|
+
- max-age=0, private, must-revalidate
|
79
41
|
set-cookie:
|
80
|
-
- _zero-push-session=
|
42
|
+
- _zero-push-session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTAyN2ZlNmZiYmE2NDAwZTAwNDhkZjljMDhjOTk5MDMzBjsAVA%3D%3D--123a1dc1afeac26db5bea15eea8574e82e0d91b2;
|
81
43
|
path=/; secure; HttpOnly
|
82
|
-
strict-transport-security:
|
83
|
-
- max-age=31536000
|
84
|
-
x-rack-cache:
|
85
|
-
- invalidate, pass
|
86
44
|
x-request-id:
|
87
|
-
-
|
45
|
+
- cb7a26e273628f7f0c9f3c4bbcfb5007
|
88
46
|
x-runtime:
|
89
|
-
- '
|
90
|
-
x-
|
91
|
-
-
|
92
|
-
|
93
|
-
-
|
94
|
-
connection:
|
95
|
-
- Close
|
47
|
+
- '0.045243'
|
48
|
+
x-rack-cache:
|
49
|
+
- invalidate, pass
|
50
|
+
x-powered-by:
|
51
|
+
- Phusion Passenger 4.0.2
|
96
52
|
body:
|
97
53
|
encoding: US-ASCII
|
98
54
|
string: ! '{"sent_count":0,"inactive_tokens":[],"unregistered_tokens":["abc"]}'
|
99
55
|
http_version:
|
100
|
-
recorded_at:
|
56
|
+
recorded_at: Thu, 06 Jun 2013 20:13:18 GMT
|
101
57
|
recorded_with: VCR 2.4.0
|
@@ -2,91 +2,71 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.zeropush.com/verify_credentials
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Authorization:
|
11
|
-
- Token token="
|
11
|
+
- Token token="test_token"
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.8.6
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
15
17
|
message:
|
16
18
|
headers:
|
17
|
-
cache-control:
|
18
|
-
- must-revalidate, private, max-age=0
|
19
|
-
content-type:
|
20
|
-
- application/json; charset=utf-8
|
21
|
-
date:
|
22
|
-
- Wed, 13 Mar 2013 21:05:30 GMT
|
23
|
-
etag:
|
24
|
-
- ! '"bbc00bc5788d6413a28d1683b0a330a3"'
|
25
19
|
server:
|
26
|
-
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
- '0.027716'
|
35
|
-
x-ua-compatible:
|
36
|
-
- IE=Edge
|
20
|
+
- !binary |-
|
21
|
+
bmdpbngvMS4yLjY=
|
22
|
+
date:
|
23
|
+
- !binary |-
|
24
|
+
VGh1LCAwNiBKdW4gMjAxMyAyMDoxMzoxOCBHTVQ=
|
25
|
+
content-type:
|
26
|
+
- !binary |-
|
27
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
37
28
|
transfer-encoding:
|
38
|
-
-
|
29
|
+
- !binary |-
|
30
|
+
Y2h1bmtlZA==
|
39
31
|
connection:
|
40
|
-
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
recorded_at: Wed, 13 Mar 2013 21:05:30 GMT
|
46
|
-
- request:
|
47
|
-
method: get
|
48
|
-
uri: https://staging.zeropush.com/api/verify_credentials
|
49
|
-
body:
|
50
|
-
encoding: US-ASCII
|
51
|
-
string: ''
|
52
|
-
headers:
|
53
|
-
Authorization:
|
54
|
-
- Token token="not a valid token"
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 401
|
58
|
-
message:
|
59
|
-
headers:
|
60
|
-
cache-control:
|
61
|
-
- no-cache, private
|
62
|
-
content-type:
|
63
|
-
- application/json; charset=utf-8
|
64
|
-
date:
|
65
|
-
- Wed, 13 Mar 2013 21:05:30 GMT
|
66
|
-
server:
|
67
|
-
- thin 1.5.0 codename Knife
|
32
|
+
- !binary |-
|
33
|
+
Y2xvc2U=
|
34
|
+
status:
|
35
|
+
- !binary |-
|
36
|
+
MjAwIE9L
|
68
37
|
strict-transport-security:
|
69
|
-
-
|
70
|
-
|
71
|
-
-
|
38
|
+
- !binary |-
|
39
|
+
bWF4LWFnZT0zMTUzNjAwMA==
|
40
|
+
x-ua-compatible:
|
41
|
+
- !binary |-
|
42
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
43
|
+
etag:
|
44
|
+
- !binary |-
|
45
|
+
ImJiYzAwYmM1Nzg4ZDY0MTNhMjhkMTY4M2IwYTMzMGEzIg==
|
46
|
+
cache-control:
|
47
|
+
- !binary |-
|
48
|
+
bXVzdC1yZXZhbGlkYXRlLCBwcml2YXRlLCBtYXgtYWdlPTA=
|
72
49
|
x-request-id:
|
73
|
-
-
|
50
|
+
- !binary |-
|
51
|
+
M2ZjZDgzNGQyM2ZhM2M4YjdlODExMzQ4NTRjYjhmMjI=
|
74
52
|
x-runtime:
|
75
|
-
-
|
76
|
-
|
77
|
-
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
-
|
53
|
+
- !binary |-
|
54
|
+
MC4wMDY5Mjk=
|
55
|
+
x-rack-cache:
|
56
|
+
- !binary |-
|
57
|
+
bWlzcw==
|
58
|
+
x-powered-by:
|
59
|
+
- !binary |-
|
60
|
+
UGh1c2lvbiBQYXNzZW5nZXIgNC4wLjI=
|
82
61
|
body:
|
83
|
-
encoding:
|
84
|
-
string: !
|
62
|
+
encoding: ASCII-8BIT
|
63
|
+
string: !binary |-
|
64
|
+
eyJtZXNzYWdlIjoiYXV0aGVudGljYXRlZCJ9
|
85
65
|
http_version:
|
86
|
-
recorded_at:
|
66
|
+
recorded_at: Thu, 06 Jun 2013 20:13:18 GMT
|
87
67
|
- request:
|
88
68
|
method: get
|
89
|
-
uri: https://
|
69
|
+
uri: https://api.zeropush.com/verify_credentials
|
90
70
|
body:
|
91
71
|
encoding: US-ASCII
|
92
72
|
string: ''
|
@@ -100,76 +80,35 @@ http_interactions:
|
|
100
80
|
code: 401
|
101
81
|
message:
|
102
82
|
headers:
|
103
|
-
|
104
|
-
-
|
83
|
+
server:
|
84
|
+
- nginx/1.2.6
|
85
|
+
date:
|
86
|
+
- Thu, 06 Jun 2013 20:13:18 GMT
|
105
87
|
content-type:
|
106
88
|
- application/json; charset=utf-8
|
107
|
-
date:
|
108
|
-
- Wed, 20 Mar 2013 18:58:26 GMT
|
109
|
-
server:
|
110
|
-
- thin 1.5.0 codename Knife
|
111
|
-
strict-transport-security:
|
112
|
-
- max-age=31536000
|
113
|
-
x-rack-cache:
|
114
|
-
- miss
|
115
|
-
x-request-id:
|
116
|
-
- 7aa103207217139939e5f38a84d8f290
|
117
|
-
x-runtime:
|
118
|
-
- '0.007493'
|
119
|
-
x-ua-compatible:
|
120
|
-
- IE=Edge
|
121
89
|
transfer-encoding:
|
122
90
|
- chunked
|
123
91
|
connection:
|
124
|
-
-
|
125
|
-
|
126
|
-
|
127
|
-
string: ! '{"error":"unauthorized"}'
|
128
|
-
http_version:
|
129
|
-
recorded_at: Wed, 20 Mar 2013 18:58:26 GMT
|
130
|
-
- request:
|
131
|
-
method: get
|
132
|
-
uri: https://staging.zeropush.com/api/verify_credentials
|
133
|
-
body:
|
134
|
-
encoding: US-ASCII
|
135
|
-
string: ''
|
136
|
-
headers:
|
137
|
-
Authorization:
|
138
|
-
- Token token="uVamTBsaKTBVNDjKd5wo"
|
139
|
-
User-Agent:
|
140
|
-
- Faraday v0.8.6
|
141
|
-
response:
|
142
|
-
status:
|
143
|
-
code: 200
|
144
|
-
message:
|
145
|
-
headers:
|
146
|
-
cache-control:
|
147
|
-
- must-revalidate, private, max-age=0
|
148
|
-
content-type:
|
149
|
-
- application/json; charset=utf-8
|
150
|
-
date:
|
151
|
-
- Wed, 20 Mar 2013 18:58:26 GMT
|
152
|
-
etag:
|
153
|
-
- ! '"bbc00bc5788d6413a28d1683b0a330a3"'
|
154
|
-
server:
|
155
|
-
- thin 1.5.0 codename Knife
|
92
|
+
- close
|
93
|
+
status:
|
94
|
+
- 401 Unauthorized
|
156
95
|
strict-transport-security:
|
157
96
|
- max-age=31536000
|
158
|
-
x-
|
159
|
-
-
|
97
|
+
x-ua-compatible:
|
98
|
+
- IE=Edge,chrome=1
|
99
|
+
cache-control:
|
100
|
+
- no-cache, private
|
160
101
|
x-request-id:
|
161
|
-
-
|
102
|
+
- 091630dcd5d1e8c4a8cbe821940c8747
|
162
103
|
x-runtime:
|
163
|
-
- '0.
|
164
|
-
x-
|
165
|
-
-
|
166
|
-
|
167
|
-
-
|
168
|
-
connection:
|
169
|
-
- Close
|
104
|
+
- '0.004298'
|
105
|
+
x-rack-cache:
|
106
|
+
- miss
|
107
|
+
x-powered-by:
|
108
|
+
- Phusion Passenger 4.0.2
|
170
109
|
body:
|
171
110
|
encoding: US-ASCII
|
172
|
-
string: ! '{"
|
111
|
+
string: ! '{"error":"unauthorized"}'
|
173
112
|
http_version:
|
174
|
-
recorded_at:
|
113
|
+
recorded_at: Thu, 06 Jun 2013 20:13:19 GMT
|
175
114
|
recorded_with: VCR 2.4.0
|
data/spec/zero_push_spec.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zero_push
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Stefan Natchev
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: faraday
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: actionpack
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: activesupport
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: minitest
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: mocha
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ~>
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,7 +77,6 @@ dependencies:
|
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ~>
|
93
82
|
- !ruby/object:Gem::Version
|
@@ -95,7 +84,6 @@ dependencies:
|
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: rake
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
88
|
- - ~>
|
101
89
|
- !ruby/object:Gem::Version
|
@@ -103,7 +91,6 @@ dependencies:
|
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
95
|
- - ~>
|
109
96
|
- !ruby/object:Gem::Version
|
@@ -111,7 +98,6 @@ dependencies:
|
|
111
98
|
- !ruby/object:Gem::Dependency
|
112
99
|
name: railties
|
113
100
|
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
101
|
requirements:
|
116
102
|
- - ~>
|
117
103
|
- !ruby/object:Gem::Version
|
@@ -119,7 +105,6 @@ dependencies:
|
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
108
|
requirements:
|
124
109
|
- - ~>
|
125
110
|
- !ruby/object:Gem::Version
|
@@ -127,7 +112,6 @@ dependencies:
|
|
127
112
|
- !ruby/object:Gem::Dependency
|
128
113
|
name: vcr
|
129
114
|
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
115
|
requirements:
|
132
116
|
- - ~>
|
133
117
|
- !ruby/object:Gem::Version
|
@@ -135,7 +119,6 @@ dependencies:
|
|
135
119
|
type: :development
|
136
120
|
prerelease: false
|
137
121
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
122
|
requirements:
|
140
123
|
- - ~>
|
141
124
|
- !ruby/object:Gem::Version
|
@@ -143,7 +126,6 @@ dependencies:
|
|
143
126
|
- !ruby/object:Gem::Dependency
|
144
127
|
name: yard
|
145
128
|
requirement: !ruby/object:Gem::Requirement
|
146
|
-
none: false
|
147
129
|
requirements:
|
148
130
|
- - ~>
|
149
131
|
- !ruby/object:Gem::Version
|
@@ -151,7 +133,6 @@ dependencies:
|
|
151
133
|
type: :development
|
152
134
|
prerelease: false
|
153
135
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
136
|
requirements:
|
156
137
|
- - ~>
|
157
138
|
- !ruby/object:Gem::Version
|
@@ -194,6 +175,7 @@ files:
|
|
194
175
|
- lib/generators/zero_push/install_generator.rb
|
195
176
|
- lib/generators/zero_push/templates/zero_push.rb
|
196
177
|
- lib/zero_push.rb
|
178
|
+
- lib/zero_push/client.rb
|
197
179
|
- lib/zero_push/version.rb
|
198
180
|
- spec/fixtures/notify.yml
|
199
181
|
- spec/fixtures/verify_credentials.yml
|
@@ -203,27 +185,26 @@ files:
|
|
203
185
|
- zero_push.gemspec
|
204
186
|
homepage: https://github.com/SymmetricInfinity/zero_push
|
205
187
|
licenses: []
|
188
|
+
metadata: {}
|
206
189
|
post_install_message:
|
207
190
|
rdoc_options: []
|
208
191
|
require_paths:
|
209
192
|
- lib
|
210
193
|
required_ruby_version: !ruby/object:Gem::Requirement
|
211
|
-
none: false
|
212
194
|
requirements:
|
213
195
|
- - ! '>='
|
214
196
|
- !ruby/object:Gem::Version
|
215
197
|
version: '1.9'
|
216
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
199
|
requirements:
|
219
200
|
- - ! '>='
|
220
201
|
- !ruby/object:Gem::Version
|
221
202
|
version: '0'
|
222
203
|
requirements: []
|
223
204
|
rubyforge_project:
|
224
|
-
rubygems_version:
|
205
|
+
rubygems_version: 2.0.3
|
225
206
|
signing_key:
|
226
|
-
specification_version:
|
207
|
+
specification_version: 4
|
227
208
|
summary: A gem for interacting with the ZeroPush API. (http://zeropush.com)
|
228
209
|
test_files:
|
229
210
|
- spec/fixtures/notify.yml
|