real_notification 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.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +134 -0
- data/Rakefile +6 -0
- data/app/views/shared/_notification.html.erb +5 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/real_notification/channel/channel_generator.rb +29 -0
- data/lib/generators/real_notification/channel/prototypes/notification.js +38 -0
- data/lib/generators/real_notification/channel/prototypes/notification_channel.rb +5 -0
- data/lib/real_notification.rb +8 -0
- data/lib/real_notification/engine.rb +6 -0
- data/lib/real_notification/notification_helper.rb +7 -0
- data/lib/real_notification/version.rb +3 -0
- data/real_notification.gemspec +30 -0
- data/vendor/assets/javascripts/real_notification.js +61 -0
- data/vendor/assets/stylesheets/notification.scss +35 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1e1d6846f0fe0a2aa6a5ff726a6cbc65ddbb210e
|
4
|
+
data.tar.gz: e82c569a8db9071327d8b3ba4c0e4d831be01ce5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b3fee230a8badf0a556d228f404f877e53459e5e82a65d841f71bbaeacb1d6ad836991c8df803e99919e5f34d84069443f2778944beaf3b1f3e0a0ab9a9c5a0b
|
7
|
+
data.tar.gz: 3b1b4dc0da5840b412739c663cb88b851f29a67bb882942e13b250c6af12084436041426c3094908acae6b61fe244a8216180de52a0f46b7648adb9ea5ac0cf0
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 abhishek.kanojia@vinsol.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 [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Abhishek Kanojia
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
# RealNotification
|
2
|
+
|
3
|
+
Real Notification provides send push notification functionality to your rails application using action cable.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'real_notification'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install real_notification
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Create a channel to broadcast notifications on. Real Notification provides a generator to do so.
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
rails generate real_notification:channel WebNotifications
|
27
|
+
```
|
28
|
+
This will generate a channel `channel/web_notifications.rb` and `web_notifications.js`
|
29
|
+
|
30
|
+
**Note: If you do not supply name of channel Name of channel is 'notification' by default.**
|
31
|
+
|
32
|
+
In your `application.scss`, Add following line:
|
33
|
+
```ruby
|
34
|
+
*= require notification
|
35
|
+
```
|
36
|
+
In your `application.js`, Add following line:
|
37
|
+
```ruby
|
38
|
+
//= require real_notification
|
39
|
+
//= require bootstrap.min
|
40
|
+
```
|
41
|
+
Since this gem uses bootstrap alert make sure to install it as well. Here's how to:
|
42
|
+
[How to install bootstrap and jquery to Rails ?](https://medium.com/@abhishek.kanojia/how-to-add-bootstrap-and-jquery-to-rails-application-ec18a89805e5)
|
43
|
+
|
44
|
+
Include notification partial on your page.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
<%= render partial: 'shared/notification' %>
|
48
|
+
```
|
49
|
+
**Start redis-server using command `redis-server`**
|
50
|
+
|
51
|
+
Change cable adapter for your environment. `config/cable.yml`
|
52
|
+
|
53
|
+
development:
|
54
|
+
adapter: redis
|
55
|
+
url: redis://localhost:6379/1
|
56
|
+
|
57
|
+
test:
|
58
|
+
adapter: async
|
59
|
+
|
60
|
+
production:
|
61
|
+
adapter: redis
|
62
|
+
url: redis://localhost:6379/1
|
63
|
+
|
64
|
+
### Start sending notifications:
|
65
|
+
|
66
|
+
Real notification provides `broadcast_notification` class method that can be used with any model class. for example:
|
67
|
+
```ruby
|
68
|
+
User.broadcast_notification({ title: 'New User', message: 'Hi from new user' })
|
69
|
+
```
|
70
|
+
|
71
|
+
Default channel: `'notification_channel'` if you don't supply channel name.
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
User.broadcast_notification('web_notifications_channel', { title: 'New User', message: 'Hi from new user' })
|
75
|
+
```
|
76
|
+
See `web_notifications.js`
|
77
|
+
|
78
|
+
/* globals App */
|
79
|
+
/* globals RealNotification */
|
80
|
+
|
81
|
+
App.web_notifications = App.cable.subscriptions.create("WebNotificationsChannel", {
|
82
|
+
connected: function() {
|
83
|
+
console.log('Notification Channel connected.');
|
84
|
+
},
|
85
|
+
|
86
|
+
disconnected: function() {
|
87
|
+
console.log('Notification Channel disconnected.');
|
88
|
+
},
|
89
|
+
|
90
|
+
received: function(data) {
|
91
|
+
var notification = new RealNotification({
|
92
|
+
delay: 7000, // default hide notification delay is 6000
|
93
|
+
position: 'top' // default position is top-right see available options below
|
94
|
+
});
|
95
|
+
notification.show(data);
|
96
|
+
}
|
97
|
+
});
|
98
|
+
|
99
|
+
/*
|
100
|
+
|
101
|
+
Available positions options are:
|
102
|
+
|
103
|
+
top : notification will be placed in middle top of screen.
|
104
|
+
|
105
|
+
top-left : notification will be placed in top left corner of screen.
|
106
|
+
|
107
|
+
top-right : notification will be placed in top left corner of screen.
|
108
|
+
|
109
|
+
bottom : notification will be placed in middle bottom of screen.
|
110
|
+
|
111
|
+
bottom-left : notification will be placed in bottom left corner of screen.
|
112
|
+
|
113
|
+
bottom-right : notification will be placed in bottom right corner of screen.
|
114
|
+
|
115
|
+
*/
|
116
|
+
|
117
|
+
#### Change position of notification and delay time using provided options:
|
118
|
+
`delay:` autohide delay in milliseconds default to 6000. i.e 6 seconds.
|
119
|
+
`position:` position of notification on screen, default is 'top-right'.
|
120
|
+
|
121
|
+
### Notification Preview
|
122
|
+

|
123
|
+
|
124
|
+
## Contributing
|
125
|
+
|
126
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/abhikanojia/real_notification. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
127
|
+
|
128
|
+
## License
|
129
|
+
|
130
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
131
|
+
|
132
|
+
## Code of Conduct
|
133
|
+
|
134
|
+
Everyone interacting in the RealNotification project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/abhikanojia/real_notification/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
<div class="alert alert-success alert-dismissible fade in" id="real-notification" data-notification='real-notification'>
|
2
|
+
<button class="close" data-dismiss="alert" aria-label="close">×</button>
|
3
|
+
<strong id="title">Alert!</strong>
|
4
|
+
<span id="message">This is new message</span>
|
5
|
+
</div>
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "real_notification"
|
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__)
|
data/bin/setup
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
module RealNotification
|
4
|
+
module Generators
|
5
|
+
class ChannelGenerator < ::Rails::Generators::Base
|
6
|
+
source_root File.expand_path('../prototypes/', __FILE__)
|
7
|
+
|
8
|
+
argument :channel_name, type: :string, default: 'notification'
|
9
|
+
|
10
|
+
def create_channel_file
|
11
|
+
template "notification_channel.rb", "app/channels/#{file_name}_channel.rb"
|
12
|
+
end
|
13
|
+
|
14
|
+
def create_coffee_script
|
15
|
+
template "notification.js", "app/assets/javascripts/channels/#{file_name}.js"
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def file_name
|
21
|
+
channel_name.underscore
|
22
|
+
end
|
23
|
+
|
24
|
+
def class_name_for_file
|
25
|
+
channel_name.underscore.downcase.split('_').map(&:capitalize).join
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/* globals App */
|
2
|
+
/* globals RealNotification */
|
3
|
+
|
4
|
+
App.<%=file_name %> = App.cable.subscriptions.create("<%= class_name_for_file %>Channel", {
|
5
|
+
connected: function() {
|
6
|
+
console.log('Notification Channel connected.');
|
7
|
+
},
|
8
|
+
|
9
|
+
disconnected: function() {
|
10
|
+
console.log('Notification Channel disconnected.');
|
11
|
+
},
|
12
|
+
|
13
|
+
received: function(data) {
|
14
|
+
var notification = new RealNotification({
|
15
|
+
delay: 7000, // default hide notification delay is 6000
|
16
|
+
position: 'top' // default position is top-right see available options below
|
17
|
+
});
|
18
|
+
notification.show(data);
|
19
|
+
}
|
20
|
+
});
|
21
|
+
|
22
|
+
/*
|
23
|
+
|
24
|
+
Available positions options are:
|
25
|
+
|
26
|
+
top : notification will be placed in middle top of screen.
|
27
|
+
|
28
|
+
top-left : notification will be placed in top left corner of screen.
|
29
|
+
|
30
|
+
top-right : notification will be placed in top left corner of screen.
|
31
|
+
|
32
|
+
bottom : notification will be placed in middle bottom of screen.
|
33
|
+
|
34
|
+
bottom-left : notification will be placed in bottom left corner of screen.
|
35
|
+
|
36
|
+
bottom-right : notification will be placed in bottom right corner of screen.
|
37
|
+
|
38
|
+
*/
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "real_notification/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "real_notification"
|
8
|
+
spec.version = RealNotification::VERSION
|
9
|
+
spec.authors = ["Abhishek Kanojia"]
|
10
|
+
spec.email = ["abhishek.kanojia3193@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{ Real Notification provided push notification using action cable for rails application. }
|
13
|
+
spec.description = %q{ Real Notification provided push notification using action cable for rails application. }
|
14
|
+
spec.homepage = 'https://github.com/abhikanojia/real_notification'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
25
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
26
|
+
|
27
|
+
spec.add_dependency 'bootstrap-sass', '~> 3.3', '>= 3.3.7'
|
28
|
+
spec.add_dependency 'jquery-rails', '~> 4.3', '>= 4.3.3'
|
29
|
+
spec.add_dependency 'redis', '~> 4.0'
|
30
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
function RealNotification(data) {
|
2
|
+
this.notificationDiv = $('[data-notification=real-notification]');
|
3
|
+
this.notificationTitle = this.notificationDiv.find('#title');
|
4
|
+
this.notificationMessage = this.notificationDiv.find('#message');
|
5
|
+
this.setOptions(data);
|
6
|
+
}
|
7
|
+
|
8
|
+
RealNotification.prototype.setOptions = function(data) {
|
9
|
+
this.notificationHideDelay = (data && data.delay) ? data.delay : 6000;
|
10
|
+
this.notificationPosition = (data && data.position) ? data.position : 'top-right';
|
11
|
+
};
|
12
|
+
|
13
|
+
RealNotification.prototype.CSS_CLASSES = {
|
14
|
+
top : 'notification-top',
|
15
|
+
bottom : 'notification-bottom',
|
16
|
+
topLeft : 'notification-top-left',
|
17
|
+
topRight : 'notification-top-right',
|
18
|
+
bottomLeft : 'notification-bottom-left',
|
19
|
+
bottomRight : 'notification-bottom-right'
|
20
|
+
};
|
21
|
+
|
22
|
+
RealNotification.prototype.show = function(response) {
|
23
|
+
this.positionNotification();
|
24
|
+
this.notificationTitle.text(response.title);
|
25
|
+
this.notificationMessage.text(response.message);
|
26
|
+
this.notificationDiv.show()
|
27
|
+
.delay(this.notificationHideDelay)
|
28
|
+
.fadeOut();
|
29
|
+
};
|
30
|
+
|
31
|
+
RealNotification.prototype.positionNotification = function() {
|
32
|
+
switch(this.notificationPosition) {
|
33
|
+
|
34
|
+
case 'top':
|
35
|
+
this.notificationDiv.addClass(this.CSS_CLASSES.top);
|
36
|
+
break;
|
37
|
+
|
38
|
+
case 'top-left':
|
39
|
+
this.notificationDiv.addClass(this.CSS_CLASSES.topLeft);
|
40
|
+
break;
|
41
|
+
|
42
|
+
case 'bottom-left':
|
43
|
+
this.notificationDiv.addClass(this.CSS_CLASSES.bottomLeft);
|
44
|
+
break;
|
45
|
+
|
46
|
+
case 'bottom-right':
|
47
|
+
this.notificationDiv.addClass(this.CSS_CLASSES.bottomRight);
|
48
|
+
break;
|
49
|
+
|
50
|
+
case 'bottom':
|
51
|
+
this.notificationDiv.addClass(this.CSS_CLASSES.bottom);
|
52
|
+
break;
|
53
|
+
|
54
|
+
case 'top-right':
|
55
|
+
this.notificationDiv.addClass(this.CSS_CLASSES.topRight);
|
56
|
+
break;
|
57
|
+
|
58
|
+
default:
|
59
|
+
alert('RealNotification: Invalid position option supplied.');
|
60
|
+
}
|
61
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#real-notification{
|
2
|
+
position: fixed;
|
3
|
+
}
|
4
|
+
|
5
|
+
.notification-top {
|
6
|
+
top: 10px;
|
7
|
+
transform: translate(-50%, 0);
|
8
|
+
left: 50%;
|
9
|
+
}
|
10
|
+
|
11
|
+
.notification-bottom {
|
12
|
+
bottom: 10px;
|
13
|
+
transform: translate(-50%, 0);
|
14
|
+
left: 50%;
|
15
|
+
}
|
16
|
+
|
17
|
+
.notification-bottom-right {
|
18
|
+
bottom: 10px;
|
19
|
+
right: 60px;
|
20
|
+
}
|
21
|
+
|
22
|
+
.notification-bottom-left {
|
23
|
+
bottom: 10px;
|
24
|
+
left: 60px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.notification-top-right {
|
28
|
+
top: 10px;
|
29
|
+
right: 60px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.notification-top-left {
|
33
|
+
top: 10px;
|
34
|
+
right: 60px;
|
35
|
+
}
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: real_notification
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abhishek Kanojia
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bootstrap-sass
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.3'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 3.3.7
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.3'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 3.3.7
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: jquery-rails
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '4.3'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 4.3.3
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '4.3'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 4.3.3
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: redis
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '4.0'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '4.0'
|
95
|
+
description: " Real Notification provided push notification using action cable for
|
96
|
+
rails application. "
|
97
|
+
email:
|
98
|
+
- abhishek.kanojia3193@gmail.com
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- ".gitignore"
|
104
|
+
- CODE_OF_CONDUCT.md
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- app/views/shared/_notification.html.erb
|
110
|
+
- bin/console
|
111
|
+
- bin/setup
|
112
|
+
- lib/generators/real_notification/channel/channel_generator.rb
|
113
|
+
- lib/generators/real_notification/channel/prototypes/notification.js
|
114
|
+
- lib/generators/real_notification/channel/prototypes/notification_channel.rb
|
115
|
+
- lib/real_notification.rb
|
116
|
+
- lib/real_notification/engine.rb
|
117
|
+
- lib/real_notification/notification_helper.rb
|
118
|
+
- lib/real_notification/version.rb
|
119
|
+
- real_notification.gemspec
|
120
|
+
- vendor/assets/javascripts/real_notification.js
|
121
|
+
- vendor/assets/stylesheets/notification.scss
|
122
|
+
homepage: https://github.com/abhikanojia/real_notification
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata: {}
|
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: '0'
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
requirements: []
|
141
|
+
rubyforge_project:
|
142
|
+
rubygems_version: 2.5.2
|
143
|
+
signing_key:
|
144
|
+
specification_version: 4
|
145
|
+
summary: Real Notification provided push notification using action cable for rails
|
146
|
+
application.
|
147
|
+
test_files: []
|