p8_pusher 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 87c3f31c09dfca44e94a45606117f1168bdb2de6504741dee88c7772e840bad6
4
+ data.tar.gz: f0e08b51de932a1d99202c6214d7af5033ce4ce50b5241bd933daa2e48823586
5
+ SHA512:
6
+ metadata.gz: 257a7ab16c442fdf94d41a198ef31daf7474dea4ae941b9473c08d27ef2c3e93b01ca969f2ef5720e2904a6765e26769c83bf718a697d8f75fe644414bb2f26e
7
+ data.tar.gz: 51ba4f9a22cef9edcf27ff36daa475fb39e7fb47dd67322a4410fee6bd67a5efa20708f7be8a5f85f45aab3aa5ebc19ea4746521b26d7992b3cf3964049e67ee
@@ -0,0 +1,54 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ *.gem
11
+ *.rbc
12
+ /.config
13
+ /InstalledFiles
14
+ /spec/examples.txt
15
+ /test/tmp/
16
+ /test/version_tmp/
17
+
18
+ # Used by dotenv library to load environment variables.
19
+ # .env
20
+
21
+ ## Specific to RubyMotion:
22
+ .dat*
23
+ .repl_history
24
+ build/
25
+ *.bridgesupport
26
+ build-iPhoneOS/
27
+ build-iPhoneSimulator/
28
+
29
+ ## Specific to RubyMotion (use of CocoaPods):
30
+ #
31
+ # We recommend against adding the Pods directory to your .gitignore. However
32
+ # you should judge for yourself, the pros and cons are mentioned at:
33
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
34
+ #
35
+ # vendor/Pods/
36
+
37
+ ## Documentation cache and generated files:
38
+ /.yardoc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /vendor/bundle
43
+ /lib/bundler/man/
44
+
45
+ # for a library or gem, you might want to ignore these files since the code is
46
+ # intended to run in multiple environments; otherwise, check them in:
47
+ # Gemfile.lock
48
+ # .ruby-version
49
+ # .ruby-gemset
50
+
51
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
52
+ .rvmrc
53
+ .idea
54
+ .rakeTasks
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ghulamjilanideveloper@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in p8_pusher.gemspec
4
+ gemspec
5
+
6
+ gem 'rake', '~> 12.0'
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ p8_pusher (0.1.0)
5
+ commander (~> 4.5)
6
+ json (~> 2.3)
7
+ jwt (~> 2.2)
8
+ net-http2 (~> 0.18.2)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ commander (4.5.2)
14
+ highline (~> 2.0.0)
15
+ diff-lcs (1.4.4)
16
+ docile (1.3.2)
17
+ highline (2.0.3)
18
+ http-2 (0.10.2)
19
+ json (2.3.1)
20
+ jwt (2.2.2)
21
+ net-http2 (0.18.2)
22
+ http-2 (~> 0.10.1)
23
+ rake (12.3.3)
24
+ rspec (3.9.0)
25
+ rspec-core (~> 3.9.0)
26
+ rspec-expectations (~> 3.9.0)
27
+ rspec-mocks (~> 3.9.0)
28
+ rspec-core (3.9.2)
29
+ rspec-support (~> 3.9.3)
30
+ rspec-expectations (3.9.2)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.9.0)
33
+ rspec-mocks (3.9.1)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.9.0)
36
+ rspec-support (3.9.3)
37
+ simplecov (0.17.1)
38
+ docile (~> 1.1)
39
+ json (>= 1.8, < 3)
40
+ simplecov-html (~> 0.10.0)
41
+ simplecov-html (0.10.2)
42
+
43
+ PLATFORMS
44
+ ruby
45
+
46
+ DEPENDENCIES
47
+ p8_pusher!
48
+ rake (~> 12.0)
49
+ rspec (~> 3.9)
50
+ simplecov (~> 0.17.1)
51
+
52
+ BUNDLED WITH
53
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 ghulamjilani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,60 @@
1
+ # P8Pusher
2
+
3
+ Ruby Gem for Apple push notifications using new p8 format instead of pem file.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'p8_pusher'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install p8_pusher
20
+
21
+ ## Usage
22
+
23
+ # p8push
24
+
25
+ Add the following to your `.env`
26
+ ```
27
+ export APN_PRIVATE_KEY=/path/APNsAuthKey_ABCDE12345.p8
28
+ export APN_TEAM_ID=XYZDE99911
29
+ export APN_KEY_ID=ABCDE12345
30
+ export APN_BUNDLE_ID=com.bundle.id
31
+ ```
32
+
33
+ #### Basic Use
34
+
35
+ ```ruby
36
+ CLIENT = P8Pusher::Client.development # use '.production' for production use
37
+ devise_token = 'SOMEDEVISETOKEN'
38
+ notification = P8Pusher::Notification.new(device: devise_token)
39
+ notification.alert = 'Hello, World!'
40
+ notification.topic = 'com.some.other.id' # default is ENV['APN_BUNDLE_ID']
41
+ CLIENT.push(notification)
42
+ ```
43
+ ## Development
44
+
45
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
46
+
47
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tiksomlimited/p8_pusher. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/tiksomlimited/p8_pusher/blob/master/CODE_OF_CONDUCT.md).
52
+
53
+
54
+ ## License
55
+
56
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
57
+
58
+ ## Code of Conduct
59
+
60
+ Everyone interacting in the P8Pusher project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tiksomlimited/p8_pusher/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "p8_pusher"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,7 @@
1
+ require 'p8_pusher/version'
2
+ require 'p8_pusher/client'
3
+ require 'p8_pusher/notification'
4
+
5
+ module P8Pusher
6
+ class Error < StandardError; end
7
+ end
@@ -0,0 +1,82 @@
1
+ require 'openssl'
2
+ require 'jwt'
3
+ require 'net-http2'
4
+
5
+ module P8Pusher
6
+
7
+ APPLE_PRODUCTION_JWT_URI = 'https://api.push.apple.com'.freeze
8
+ APPLE_DEVELOPMENT_JWT_URI = 'https://api.development.push.apple.com'.freeze
9
+
10
+ class Client
11
+ attr_accessor :jwt_uri
12
+ class << self
13
+ def development
14
+ client = new
15
+ client.jwt_uri = APPLE_DEVELOPMENT_JWT_URI
16
+ client
17
+ end
18
+
19
+ def production
20
+ client = new
21
+ client.jwt_uri = APPLE_PRODUCTION_JWT_URI
22
+ client
23
+ end
24
+ end
25
+
26
+ def initialize
27
+ @private_key = File.read(ENV['APN_PRIVATE_KEY'])
28
+ @team_id = ENV['APN_TEAM_ID']
29
+ @key_id = ENV['APN_KEY_ID']
30
+ @timeout = Float(ENV['APN_TIMEOUT'] || 2.0)
31
+ rescue StandardError => e
32
+ raise "#{e.message}: invalid keys, make sure you have the required keys in .env file"
33
+ end
34
+
35
+ def jwt_http2_post(topic, payload, token)
36
+ ec_key = OpenSSL::PKey::EC.new(@private_key)
37
+ jwt_token = JWT.encode({iss: @team_id, iat: Time.now.to_i}, ec_key, 'ES256', {kid: @key_id})
38
+
39
+ client = NetHttp2::Client.new(@jwt_uri)
40
+ h = {}
41
+ h['content-type'] = 'application/json'
42
+ h['apns-expiration'] = '0'
43
+ h['apns-priority'] = '10'
44
+ h['apns-topic'] = topic
45
+ h['authorization'] = "bearer #{jwt_token}"
46
+
47
+ res = client.call(:post, '/3/device/'+token,
48
+ body: payload.to_json,
49
+ timeout: @timeout,
50
+ headers: h)
51
+ client.close
52
+ return nil if res.status.to_i == 200
53
+
54
+ res.body
55
+ end
56
+
57
+ def push(*notifications)
58
+ return if notifications.empty?
59
+
60
+ notifications.flatten!
61
+
62
+ notifications.each_with_index do |notification, index|
63
+ next unless notification.kind_of?(Notification)
64
+ next if notification.sent?
65
+ next unless notification.valid?
66
+
67
+ notification.id = index
68
+
69
+ err = jwt_http2_post(notification.topic,
70
+ notification.payload,
71
+ notification.token)
72
+ if err.nil?
73
+ notification.mark_as_sent!
74
+ else
75
+ puts err
76
+ notification.apns_error_code = err
77
+ notification.mark_as_unsent!
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,122 @@
1
+ require 'json'
2
+
3
+ module P8Pusher
4
+ class Notification
5
+ class APNSError < RuntimeError
6
+ CODES = {
7
+ 0 => 'No errors encountered',
8
+ 1 => 'Processing error',
9
+ 2 => 'Missing device token',
10
+ 3 => 'Missing topic',
11
+ 4 => 'Missing payload',
12
+ 5 => 'Invalid token size',
13
+ 6 => 'Invalid topic size',
14
+ 7 => 'Invalid payload size',
15
+ 8 => 'Invalid token',
16
+ 10 => 'Shutdown',
17
+ 255 => 'Unknown error'
18
+ }.freeze
19
+
20
+ attr_reader :code
21
+
22
+ def initialize(code)
23
+ raise ArgumentError unless CODES.include?(code)
24
+
25
+ super(CODES[code])
26
+ @code = code
27
+ end
28
+ end
29
+
30
+ MAXIMUM_PAYLOAD_SIZE = 2048
31
+
32
+ attr_accessor :topic, :token, :alert, :badge, :sound, :category, :content_available, :mutable_content,
33
+ :custom_data, :id, :expiry, :priority
34
+ attr_reader :sent_at
35
+ attr_writer :apns_error_code
36
+
37
+ alias device token
38
+ alias device= token=
39
+
40
+ def initialize(options = {})
41
+ @token = options.delete(:token) || options.delete(:device)
42
+ @alert = options.delete(:alert)
43
+ @topic = options.delete(:topic) || ENV['APN_BUNDLE_ID']
44
+ @badge = options.delete(:badge)
45
+ @sound = options.delete(:sound)
46
+ @category = options.delete(:category)
47
+ @expiry = options.delete(:expiry)
48
+ @id = options.delete(:id)
49
+ @priority = options.delete(:priority)
50
+ @content_available = options.delete(:content_available)
51
+ @mutable_content = options.delete(:mutable_content)
52
+
53
+ @custom_data = options
54
+ end
55
+
56
+ def payload
57
+ json = {}.merge(@custom_data || {}).inject({}) { |h, (k, v)| h[k.to_s] = v; h }
58
+
59
+ json['aps'] ||= {}
60
+ json['aps']['alert'] = @alert if @alert
61
+ json['aps']['badge'] = @badge&.to_i if @badge
62
+ json['aps']['sound'] = @sound if @sound
63
+ json['aps']['category'] = @category if @category
64
+ json['aps']['content-available'] = 1 if @content_available
65
+ json['aps']['mutable-content'] = 1 if @mutable_content
66
+
67
+ json
68
+ end
69
+
70
+ def message
71
+ data = [device_token_item,
72
+ payload_item,
73
+ identifier_item,
74
+ expiration_item,
75
+ priority_item].compact.join
76
+ [2, data.bytes.count, data].pack('cNa*')
77
+ end
78
+
79
+ def mark_as_sent!
80
+ @sent_at = Time.now
81
+ end
82
+
83
+ def mark_as_unsent!
84
+ @sent_at = nil
85
+ end
86
+
87
+ def sent?
88
+ !!@sent_at
89
+ end
90
+
91
+ def valid?
92
+ payload.to_json.bytesize <= MAXIMUM_PAYLOAD_SIZE
93
+ end
94
+
95
+ def error
96
+ APNSError.new(@apns_error_code) if @apns_error_code && @apns_error_code.nonzero?
97
+ end
98
+
99
+ private
100
+
101
+ def device_token_item
102
+ [1, 32, @token.gsub(/[<\s>]/, '')].pack('cnH64')
103
+ end
104
+
105
+ def payload_item
106
+ json = payload.to_json
107
+ [2, json.bytes.count, json].pack('cna*')
108
+ end
109
+
110
+ def identifier_item
111
+ [3, 4, @id].pack('cnN') unless @id.nil?
112
+ end
113
+
114
+ def expiration_item
115
+ [4, 4, @expiry.to_i].pack('cnN') unless @expiry.nil?
116
+ end
117
+
118
+ def priority_item
119
+ [5, 1, @priority].pack('cnc') unless @priority.nil?
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,3 @@
1
+ module P8Pusher
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,36 @@
1
+ require_relative 'lib/p8_pusher/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'p8_pusher'
5
+ spec.version = P8Pusher::VERSION
6
+ spec.authors = ['sumar7']
7
+ spec.email = ['sajjadumardev@gmail.com']
8
+
9
+ spec.summary = 'Apple push notifications using the new p8 format instead of pemfile'
10
+ spec.homepage = 'https://github.com/SUMAR7/p8_pusher'
11
+ spec.license = 'MIT'
12
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
13
+
14
+ spec.metadata['homepage_uri'] = spec.homepage
15
+ spec.metadata['source_code_uri'] = 'https://github.com/SUMAR7/p8_pusher'
16
+ spec.metadata['changelog_uri'] = 'https://github.com/SUMAR7/p8_pusher'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
26
+
27
+ # Dependencies
28
+ spec.add_dependency 'commander', '~> 4.5'
29
+ spec.add_dependency 'json', '~> 2.3'
30
+ spec.add_dependency 'jwt', '~> 2.2'
31
+ spec.add_dependency 'net-http2', '~> 0.18.2'
32
+
33
+ # Development Dependencies
34
+ spec.add_development_dependency 'rspec', '~> 3.9'
35
+ spec.add_development_dependency 'simplecov', '~> 0.17.1'
36
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: p8_pusher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - sumar7
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: commander
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jwt
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: net-http2
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.18.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.18.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.9'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.17.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.17.1
97
+ description:
98
+ email:
99
+ - sajjadumardev@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - CODE_OF_CONDUCT.md
107
+ - Gemfile
108
+ - Gemfile.lock
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - bin/console
113
+ - bin/setup
114
+ - lib/p8_pusher.rb
115
+ - lib/p8_pusher/client.rb
116
+ - lib/p8_pusher/notification.rb
117
+ - lib/p8_pusher/version.rb
118
+ - p8_pusher.gemspec
119
+ homepage: https://github.com/SUMAR7/p8_pusher
120
+ licenses:
121
+ - MIT
122
+ metadata:
123
+ homepage_uri: https://github.com/SUMAR7/p8_pusher
124
+ source_code_uri: https://github.com/SUMAR7/p8_pusher
125
+ changelog_uri: https://github.com/SUMAR7/p8_pusher
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 2.3.0
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubygems_version: 3.1.2
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Apple push notifications using the new p8 format instead of pemfile
145
+ test_files: []