sanjose 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -0,0 +1,11 @@
1
+ module Sanjose
2
+ class Result
3
+ attr_reader :message_id, :canonical_reg_id, :error
4
+
5
+ def initialize(options = {})
6
+ @message_id = options[:message_id]
7
+ @canonical_reg_id = options[:canonical_reg_id]
8
+ @error = options[:error]
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Sanjose
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.description = "Send Google Cloud Message"
12
- s.summary = "Sanjose is a simple gem for sending Google Cloud Message"
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.1
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: Send Google Cloud Message
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: Sanjose is a simple gem for sending Google Cloud Message
124
+ summary: Send Google Cloud Messages
123
125
  test_files: []