sanjose 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sanjose/multicast_result.rb +20 -0
- data/lib/sanjose/result.rb +11 -0
- data/lib/sanjose/version.rb +1 -1
- data/sanjose.gemspec +2 -2
- metadata +5 -3
@@ -0,0 +1,20 @@
|
|
1
|
+
module Sanjose
|
2
|
+
class MulticastResult
|
3
|
+
attr_accessor :retry_multicast_ids
|
4
|
+
attr_reader :success, :failure, :canonical_ids, :multicast_id, :results
|
5
|
+
|
6
|
+
def initialize(options = {})
|
7
|
+
@success = options[:success]
|
8
|
+
@failure = options[:failure]
|
9
|
+
@canonical_ids = options[:canonical_ids]
|
10
|
+
@multicast_id = options[:multicast_id]
|
11
|
+
@results = []
|
12
|
+
@retry_multicast_ids = []
|
13
|
+
end
|
14
|
+
|
15
|
+
def add_result(result)
|
16
|
+
@results << result
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
data/lib/sanjose/version.rb
CHANGED
data/sanjose.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.version = Sanjose::VERSION
|
9
9
|
s.authors = ["Min Kim"]
|
10
10
|
s.email = ["minsikzzang@gmail.com", "minsik.kim@livestation.com"]
|
11
|
-
s.
|
12
|
-
s.
|
11
|
+
s.summary = "Send Google Cloud Messages"
|
12
|
+
s.description = "Sanjose is a simple gem for sending Google Cloud Messages"
|
13
13
|
s.homepage = "http://github.com/minsikzzang/sanjose"
|
14
14
|
|
15
15
|
s.add_dependency "commander", "~> 4.1.2"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanjose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: 0.9.2
|
78
|
-
description:
|
78
|
+
description: Sanjose is a simple gem for sending Google Cloud Messages
|
79
79
|
email:
|
80
80
|
- minsikzzang@gmail.com
|
81
81
|
- minsik.kim@livestation.com
|
@@ -93,7 +93,9 @@ files:
|
|
93
93
|
- lib/sanjose.rb
|
94
94
|
- lib/sanjose/client.rb
|
95
95
|
- lib/sanjose/connection.rb
|
96
|
+
- lib/sanjose/multicast_result.rb
|
96
97
|
- lib/sanjose/notification.rb
|
98
|
+
- lib/sanjose/result.rb
|
97
99
|
- lib/sanjose/version.rb
|
98
100
|
- sanjose.gemspec
|
99
101
|
homepage: http://github.com/minsikzzang/sanjose
|
@@ -119,5 +121,5 @@ rubyforge_project:
|
|
119
121
|
rubygems_version: 1.8.24
|
120
122
|
signing_key:
|
121
123
|
specification_version: 3
|
122
|
-
summary:
|
124
|
+
summary: Send Google Cloud Messages
|
123
125
|
test_files: []
|