push_notifications 0.1.0

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,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ae9f727502d1cbee0beb182730ec102cdc77d7e6643092c3c3ca51d8ecb1256c
4
+ data.tar.gz: f2dbff80af5add5f81ca404b38853c6371cf2d88b3ee3899ea5c4c42ca14d26f
5
+ SHA512:
6
+ metadata.gz: 8b8b927b7582ee4d817d1eccc53526608bc83338cffe67e3c80eea99177131e3aa179af0ec699aa2a63ce20c02ed296487c3645d0169e461980beffda30d812f
7
+ data.tar.gz: ac325c9198e7063081a11e0e7c15dea03534bab5c240446396deb2dfce27c1a07675de0aba0cc3bd1e727e97ec24e86fd8c68577227fb1fa2a987b955adbac9d
@@ -0,0 +1 @@
1
+ repo_token: SvS3UyLJls0uc3J7nJgti4ypWxKosxo7U
@@ -0,0 +1,2 @@
1
+ PUSHER_INSTANCE_ID=your-pusher-instance-id
2
+ PUSHER_SECRET_KEY=your-pusher-secret-key
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ .DS_Store
14
+ .idea
15
+ .vscode
16
+ .env
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,23 @@
1
+ Documentation:
2
+ Enabled: false
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.4.0
6
+
7
+ Metrics/LineLength:
8
+ Max: 100
9
+
10
+ Metrics/MethodLength:
11
+ Exclude:
12
+ - 'spec/**/*.rb'
13
+
14
+ Exclude:
15
+ - 'spec/**/*.rb'
16
+
17
+ Metrics/ModuleLength:
18
+ Exclude:
19
+ - 'spec/**/*.rb'
20
+
21
+ Metrics/BlockLength:
22
+ Exclude:
23
+ - 'spec/**/*.rb'
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.2
5
+ before_install: gem install bundler -v 1.16.0
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in pusher-push_notifications.gemspec
8
+ gemspec
@@ -0,0 +1,126 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ push_notifications (0.1.0)
5
+ caze
6
+ rest-client
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (5.1.4)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (~> 0.7)
14
+ minitest (~> 5.1)
15
+ tzinfo (~> 1.1)
16
+ addressable (2.5.2)
17
+ public_suffix (>= 2.0.2, < 4.0)
18
+ ast (2.3.0)
19
+ byebug (9.1.0)
20
+ caze (0.2.1)
21
+ activesupport (>= 3)
22
+ coderay (1.1.2)
23
+ concurrent-ruby (1.0.5)
24
+ coveralls (0.8.21)
25
+ json (>= 1.8, < 3)
26
+ simplecov (~> 0.14.1)
27
+ term-ansicolor (~> 1.3)
28
+ thor (~> 0.19.4)
29
+ tins (~> 1.6)
30
+ crack (0.4.3)
31
+ safe_yaml (~> 1.0.0)
32
+ diff-lcs (1.3)
33
+ docile (1.1.5)
34
+ domain_name (0.5.20170404)
35
+ unf (>= 0.0.5, < 1.0.0)
36
+ dotenv (2.2.1)
37
+ hashdiff (0.3.7)
38
+ http-cookie (1.0.3)
39
+ domain_name (~> 0.5)
40
+ i18n (0.9.1)
41
+ concurrent-ruby (~> 1.0)
42
+ json (2.1.0)
43
+ method_source (0.9.0)
44
+ mime-types (3.1)
45
+ mime-types-data (~> 3.2015)
46
+ mime-types-data (3.2016.0521)
47
+ minitest (5.10.3)
48
+ netrc (0.11.0)
49
+ parallel (1.12.1)
50
+ parser (2.4.0.2)
51
+ ast (~> 2.3)
52
+ powerpack (0.1.1)
53
+ pry (0.11.3)
54
+ coderay (~> 1.1.0)
55
+ method_source (~> 0.9.0)
56
+ pry-byebug (3.5.1)
57
+ byebug (~> 9.1)
58
+ pry (~> 0.10)
59
+ public_suffix (3.0.1)
60
+ rainbow (3.0.0)
61
+ rake (10.5.0)
62
+ rest-client (2.0.2)
63
+ http-cookie (>= 1.0.2, < 2.0)
64
+ mime-types (>= 1.16, < 4.0)
65
+ netrc (~> 0.8)
66
+ rspec (3.7.0)
67
+ rspec-core (~> 3.7.0)
68
+ rspec-expectations (~> 3.7.0)
69
+ rspec-mocks (~> 3.7.0)
70
+ rspec-core (3.7.0)
71
+ rspec-support (~> 3.7.0)
72
+ rspec-expectations (3.7.0)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.7.0)
75
+ rspec-mocks (3.7.0)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.7.0)
78
+ rspec-support (3.7.0)
79
+ rubocop (0.52.0)
80
+ parallel (~> 1.10)
81
+ parser (>= 2.4.0.2, < 3.0)
82
+ powerpack (~> 0.1)
83
+ rainbow (>= 2.2.2, < 4.0)
84
+ ruby-progressbar (~> 1.7)
85
+ unicode-display_width (~> 1.0, >= 1.0.1)
86
+ ruby-progressbar (1.9.0)
87
+ safe_yaml (1.0.4)
88
+ simplecov (0.14.1)
89
+ docile (~> 1.1.0)
90
+ json (>= 1.8, < 3)
91
+ simplecov-html (~> 0.10.0)
92
+ simplecov-html (0.10.2)
93
+ term-ansicolor (1.6.0)
94
+ tins (~> 1.0)
95
+ thor (0.19.4)
96
+ thread_safe (0.3.6)
97
+ tins (1.16.3)
98
+ tzinfo (1.2.4)
99
+ thread_safe (~> 0.1)
100
+ unf (0.1.4)
101
+ unf_ext
102
+ unf_ext (0.0.7.4)
103
+ unicode-display_width (1.3.0)
104
+ vcr (3.0.3)
105
+ webmock (3.1.1)
106
+ addressable (>= 2.3.6)
107
+ crack (>= 0.3.2)
108
+ hashdiff
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ bundler (~> 1.16)
115
+ coveralls (~> 0.8.21)
116
+ dotenv (~> 2.2, >= 2.2.1)
117
+ pry-byebug
118
+ push_notifications!
119
+ rake (~> 10.0)
120
+ rspec (~> 3.0)
121
+ rubocop
122
+ vcr (~> 3.0, >= 3.0.3)
123
+ webmock (~> 3.0, >= 3.0.1)
124
+
125
+ BUNDLED WITH
126
+ 1.16.0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Lucas Medeiros
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,89 @@
1
+ # PushNotifications [![Build Status](https://travis-ci.org/lucasmedeirosleite/push-notifications-ruby.svg)](https://travis-ci.org/lucasmedeirosleite/push-notifications-ruby) [![Coverage Status](https://coveralls.io/repos/github/lucasmedeirosleite/push-notifications-ruby/badge.svg?branch=master)](https://coveralls.io/github/lucasmedeirosleite/push-notifications-ruby?branch=master)
2
+
3
+ Push notifications using the Pusher system.
4
+
5
+ ## Getting started
6
+
7
+ The Push notifications system is still in BETA and it's free, but first you need to create an account on pusher (click [here](https://dash.pusher.com)).
8
+ With an account created you can create a new push notification instance (you will need to upload the apns certificates for apple and the server keys for Google's Firebase Cloud Messaging). Also you will need the `instance id` and `secret key` so the gem can be configured properly.
9
+
10
+ **NOTE**: The official Pusher [gem](https://github.com/pusher/pusher-http-ruby) currently does not support push notifications (probably because they moved it to another dashboard), you need to rely on the WEB API (that's why this gem was created).
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'push_notifications', github: 'lucasmedeirosleite/push_notifications', branch: 'master'
18
+ ```
19
+
20
+ ## Configuration
21
+
22
+ This configuration can be done anywhere you want, but if you are using rails the better place to put it is inside an initializer
23
+
24
+ ```ruby
25
+ PushNotifications.configure do |config|
26
+  config.instance_id = ENV['PUSHER_INSTANCE_ID'] # or the value directly :)
27
+  config.secret_key = ENV['PUSHER_SECRET_KEY']
28
+ end
29
+ ```
30
+
31
+ Where `instance_id` and `secret_key` are the values of the instance you created in the push notifications dashboard
32
+
33
+ ## Usage
34
+
35
+ After the configuration is done you can push notifications like this:
36
+
37
+ ```ruby
38
+ data = {
39
+ apns: {
40
+ aps: {
41
+ alert: {
42
+ title: 'Hello',
43
+ body: 'Hello, world!'
44
+ }
45
+ }
46
+ },
47
+ fcm: {
48
+ notification: {
49
+ title: 'Hello',
50
+ body: 'Hello, world!'
51
+ }
52
+ }
53
+ }
54
+
55
+ PushNotifications.notify(interests: ['my-interest'], payload: data)
56
+ ```
57
+
58
+ The return of this call is a ruby struct containing the http status code (`status`) the response body (`content`) and an `ok?` attribute saying if the notification was successful or not.
59
+
60
+ **NOTE**: It's optional but you can insert a `data` key at the same level of the `aps` and `notification` keys with a custom value (A json for example), but keep in mind that you have the limitation of 10kb per message.
61
+
62
+ ## Errors
63
+
64
+ The errors statuses can be:
65
+
66
+ HTTP Status | Reason
67
+ --- | ---
68
+ 401 | Incorrect secret key
69
+ 400 | Payload too big (10Kb limit), Payload invalid, Payload in a wrong schema, instance_id missing
70
+ 404 | Instance not found
71
+ 500 | Internal server error
72
+
73
+ ## TODO
74
+
75
+ Add an optional parameter containing the webhook url to be send together with the payload.
76
+
77
+ ## Development
78
+
79
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
80
+
81
+ 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).
82
+
83
+ ## Contributing
84
+
85
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lucasmedeirosleite/push-notifications-ruby.
86
+
87
+ ## License
88
+
89
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+
6
+ require 'dotenv'
7
+ Dotenv.load
8
+
9
+ require 'push_notifications'
10
+
11
+ PushNotifications.configure do |config|
12
+ config.instance_id = ENV['PUSHER_INSTANCE_ID']
13
+ config.secret_key = ENV['PUSHER_SECRET_KEY']
14
+ end
15
+
16
+ # You can add fixtures and/or initialization code here to make experimenting
17
+ # with your gem easier. You can also use a different console, if you like.
18
+
19
+ # (If you use this, don't forget to add pry to your Gemfile!)
20
+ require 'pry'
21
+ Pry.start
@@ -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,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'caze'
4
+
5
+ require 'push_notifications/client'
6
+ require 'push_notifications/use_cases/notify'
7
+ require 'push_notifications/version'
8
+
9
+ module PushNotifications
10
+ include Caze
11
+
12
+ class PushError < RuntimeError; end
13
+
14
+ has_use_case :notify, UseCases::Notify
15
+
16
+ class << self
17
+ attr_reader :instance_id, :secret_key
18
+
19
+ def configure
20
+ yield(self)
21
+ self
22
+ end
23
+
24
+ def instance_id=(instance_id)
25
+ raise PushError, 'Invalid instance id' if instance_id.nil? || instance_id.delete(' ').empty?
26
+ @instance_id = instance_id
27
+ end
28
+
29
+ def secret_key=(secret_key)
30
+ raise PushError, 'Invalid secret key' if secret_key.nil? || secret_key.delete(' ').empty?
31
+ @secret_key = secret_key
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'forwardable'
4
+ require 'json'
5
+ require 'rest-client'
6
+
7
+ module PushNotifications
8
+ class Client
9
+ extend Forwardable
10
+
11
+ BASE_URL = 'pushnotifications.pusher.com/publish_api/v1/instances'
12
+
13
+ Response = Struct.new(:status, :content, :ok?)
14
+
15
+ def initialize(config: PushNotifications)
16
+ @config = config
17
+ end
18
+
19
+ def post(resource, payload = {})
20
+ url = build_url(resource)
21
+ body = payload.to_json
22
+ RestClient::Request.execute(
23
+ method: :post, url: url,
24
+ payload: body, headers: headers
25
+ ) do |response|
26
+ status = response.code
27
+ body = JSON.parse(response.body)
28
+ Response.new(status, body, status == 200 ? true : false)
29
+ end
30
+ end
31
+
32
+ private
33
+
34
+ attr_reader :config
35
+ def_delegators :@config, :instance_id, :secret_key
36
+
37
+ def build_url(resource)
38
+ "https://#{instance_id}.#{BASE_URL}/#{instance_id}/#{resource}"
39
+ end
40
+
41
+ def headers
42
+ {
43
+ content_type: 'application/json',
44
+ accept: :json,
45
+ Authorization: "Bearer #{secret_key}"
46
+ }
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'caze'
4
+
5
+ module PushNotifications
6
+ module UseCases
7
+ class Notify
8
+ include Caze
9
+
10
+ export :call, as: :notify
11
+
12
+ def initialize(interests:, payload: {})
13
+ @interests = interests
14
+ @payload = payload
15
+ end
16
+
17
+ def call
18
+ data = { interests: interests }.merge!(payload)
19
+ client.post('publishes', data)
20
+ end
21
+
22
+ private
23
+
24
+ attr_reader :interests, :payload
25
+
26
+ def client
27
+ @_client ||= PushNotifications::Client.new
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PushNotifications
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,38 @@
1
+
2
+ # frozen_string_literal: true
3
+
4
+ lib = File.expand_path('../lib', __FILE__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+ require 'push_notifications/version'
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = 'push_notifications'
10
+ spec.version = PushNotifications::VERSION
11
+ spec.authors = ['Lucas Medeiros']
12
+ spec.email = ['lucastoc@gmail.com']
13
+
14
+ spec.summary = 'PushNotifications pusher product '
15
+ spec.description = 'A gem to use the Pusher BETA product Push Notifications'
16
+ spec.homepage = 'https://github.com/lucasmedeirosleite/push-notifications-ruby'
17
+ spec.license = 'MIT'
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
+ f.match(%r{^(test|spec|features)/})
21
+ end
22
+ spec.bindir = 'exe'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.add_dependency 'caze'
27
+ spec.add_dependency 'rest-client'
28
+
29
+ spec.add_development_dependency 'bundler', '~> 1.16'
30
+ spec.add_development_dependency 'coveralls', '~> 0.8.21'
31
+ spec.add_development_dependency 'dotenv', '~> 2.2', '>= 2.2.1'
32
+ spec.add_development_dependency 'pry-byebug'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
+ spec.add_development_dependency 'rubocop'
36
+ spec.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.3'
37
+ spec.add_development_dependency 'webmock', '~> 3.0', '>= 3.0.1'
38
+ end
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: push_notifications
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Lucas Medeiros
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: caze
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rest-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coveralls
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.8.21
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.8.21
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.2'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 2.2.1
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '2.2'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 2.2.1
89
+ - !ruby/object:Gem::Dependency
90
+ name: pry-byebug
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rake
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '10.0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '10.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '3.0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: vcr
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '3.0'
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 3.0.3
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '3.0'
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: 3.0.3
165
+ - !ruby/object:Gem::Dependency
166
+ name: webmock
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: '3.0'
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 3.0.1
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '3.0'
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 3.0.1
185
+ description: A gem to use the Pusher BETA product Push Notifications
186
+ email:
187
+ - lucastoc@gmail.com
188
+ executables: []
189
+ extensions: []
190
+ extra_rdoc_files: []
191
+ files:
192
+ - ".coveralls.yml"
193
+ - ".env.sample"
194
+ - ".gitignore"
195
+ - ".rspec"
196
+ - ".rubocop.yml"
197
+ - ".travis.yml"
198
+ - Gemfile
199
+ - Gemfile.lock
200
+ - LICENSE.txt
201
+ - README.md
202
+ - Rakefile
203
+ - bin/console
204
+ - bin/setup
205
+ - lib/push_notifications.rb
206
+ - lib/push_notifications/client.rb
207
+ - lib/push_notifications/use_cases/notify.rb
208
+ - lib/push_notifications/version.rb
209
+ - push_notifications.gemspec
210
+ homepage: https://github.com/lucasmedeirosleite/push-notifications-ruby
211
+ licenses:
212
+ - MIT
213
+ metadata: {}
214
+ post_install_message:
215
+ rdoc_options: []
216
+ require_paths:
217
+ - lib
218
+ required_ruby_version: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ requirements: []
229
+ rubyforge_project:
230
+ rubygems_version: 2.7.3
231
+ signing_key:
232
+ specification_version: 4
233
+ summary: PushNotifications pusher product
234
+ test_files: []