flash-messenger 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1f151f635a1072befe5078584b3277fe78b99925
4
+ data.tar.gz: cf2bcef1886493130b6953aa7d3300db5dfabfbe
5
+ SHA512:
6
+ metadata.gz: 1b206d177a2242d519b798eeeb13bc3c02393a79c09961acac791732e2d738137a8ac657aa376319113337be1120002a4c1edf06be2fccc7b4833d57d35b3efb
7
+ data.tar.gz: 6a197f1a085aa6023f97a4a3c1940868638a68073ae8ea2ad404e68ddcac0ab3e6a91070b4b73d04128fb64ca32041552e30c9b11261537d75d971e0d13646f8
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.6
5
+ branches:
6
+ only:
7
+ - master
8
+ env:
9
+ - COVERALLS=1
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # v0.1.0 / 2016-04-14
2
+
3
+ Create project
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in flash-messenger-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Chen, Yi-Cyuan
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,87 @@
1
+ # flash-messenger-rails
2
+
3
+ [![Build Status](https://api.travis-ci.org/emn178/flash-messenger-rails.png)](https://travis-ci.org/emn178/flash-messenger-rails)
4
+ [![Coverage Status](https://coveralls.io/repos/emn178/flash-messenger-rails/badge.svg?branch=master)](https://coveralls.io/r/emn178/flash-messenger-rails?branch=master)
5
+
6
+ Integrate with [flash-messenger](https://github.com/emn178/flash-messenger) to provide a simple flash messages.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'flash-messenger'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install flash-messenger
23
+
24
+ ## Usage
25
+
26
+ ### Require Javascript
27
+ Add the following to /app/assets/javascripts/application.js:
28
+ ```JavaScript
29
+ //= require flash-messenger
30
+ ```
31
+
32
+ ### Require CSS
33
+ Add the following to /app/assets/stylesheets/application.css:
34
+ ```
35
+ *= require flash-messenger
36
+ ```
37
+
38
+ ### Render
39
+ Add the following to view:
40
+ ```
41
+ <%= show_flash %>
42
+ ```
43
+ It will render flash messages if you assign some thing to `flash`.
44
+ ```ruby
45
+ redirect_to root_path, :flash => {:error => 'Error!'}
46
+ # or
47
+ flash[:error] = 'Error!'
48
+ redirect_to root_path
49
+ ```
50
+
51
+ ### Helpers
52
+ In controller, you can use helper methods to output flash messages:
53
+ ```ruby
54
+ flash_message('Successful!')
55
+ flash_message('Error!', :type => :error)
56
+ flash_notice('Notice!')
57
+ flash_alert('Alert!', :sticky => true)
58
+ flash_error('Error!')
59
+ ```
60
+ You can also use it to show model errors:
61
+ ```ruby
62
+ flash_model_error(@model)
63
+ ```
64
+
65
+ ### Bootstrap
66
+ If you want to use bootstrap style, add the following to js file:
67
+ ```JavaScript
68
+ //= require flash-messenger-bootstrap
69
+ ```
70
+ Add the following to css file:
71
+ ```
72
+ *= require flash-messenger-bootstrap
73
+ ```
74
+
75
+ ### Turboboost
76
+ If you want turboboost to show errors, add the following to js file:
77
+ ```JavaScript
78
+ //= require flash-messenger-turboboost
79
+ ```
80
+
81
+ ## License
82
+
83
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
84
+
85
+ ## Contact
86
+ The project's website is located at https://github.com/emn178/flash-messenger-rails
87
+ Author: Chen, Yi-Cyuan (emn178@gmail.com)
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,15 @@
1
+ //= require flash-messenger/flash-messenger
2
+ (function ($) {
3
+ 'use strict';
4
+
5
+ var typeMap = {
6
+ error: 'danger',
7
+ notice: 'info',
8
+ alert: 'warning'
9
+ };
10
+ flash.setting.message = '<div class="alert alert-{type}">{message}<i class="glyphicon glyphicon-remove"></i></div>';
11
+ flash.setting.closeHandler = '.glyphicon-remove';
12
+ flash.setting.convert = function (options) {
13
+ options.type = typeMap[options.type] || options.type;
14
+ };
15
+ })(jQuery);
@@ -0,0 +1,18 @@
1
+ //= require flash-messenger/flash-messenger
2
+ (function ($) {
3
+ 'use strict';
4
+
5
+ $(document).on('turboboost:error', function (e, errors) {
6
+ try {
7
+ errors = JSON.parse(errors);
8
+ if ($.isArray(errors)) {
9
+ errors.forEach(function (error) {
10
+ flash.error(error);
11
+ });
12
+ } else if (typeof errors == 'object') {
13
+ flash.modelError(errors);
14
+ }
15
+ } catch (e) {
16
+ }
17
+ });
18
+ })(jQuery);
@@ -0,0 +1,29 @@
1
+ //= require flash-messenger/flash-messenger
2
+ (function ($) {
3
+ 'use strict';
4
+
5
+ window.flash.show = function (jobs) {
6
+ var show = function () {
7
+ jobs.forEach(function (job) {
8
+ var message = job[0];
9
+ var options = job[1];
10
+ var method = job[2];
11
+ method = method && flash[method] ? flash[method] : flash;
12
+ method(message, options);
13
+ });
14
+ $(document).off('ready page:load', show);
15
+ };
16
+ $(document).on('ready page:load', show);
17
+ };
18
+
19
+ window.flash.modelError = function (errors, options) {
20
+ options = options || {};
21
+ options.type = 'error';
22
+ for (var key in errors) {
23
+ var messages = errors[key];
24
+ messages.forEach(function (message) {
25
+ flash(key + ' ' + message, options);
26
+ });
27
+ }
28
+ };
29
+ })(jQuery);
@@ -0,0 +1,98 @@
1
+ /*!
2
+ * [flash-messenger]{@link https://github.com/emn178/flash-messenger}
3
+ *
4
+ * @version 0.1.0
5
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
6
+ * @copyright Chen, Yi-Cyuan 2016
7
+ * @license MIT
8
+ */
9
+ (function ($) {
10
+ 'use strict';
11
+
12
+ var OPTIONS = ['type', 'time', 'sticky', 'fadeOut', 'closable'];
13
+ var TYPES = ['error', 'danger', 'info', 'notice', 'success', 'warning', 'alert'];
14
+
15
+ var setting = {
16
+ appendTo: 'body',
17
+ container: '<div class="flash-messages"></div>',
18
+ message: '<div class="flash-message {type}">{message}<span class="flash-message-close">&#10006</span></div>',
19
+ closeHandler: '.flash-message-close',
20
+ default: {
21
+ type: 'success',
22
+ time: 3000,
23
+ sticky: false,
24
+ fadeOut: 1000,
25
+ closable: true
26
+ },
27
+ typesDefault: {
28
+ error: {
29
+ sticky: true
30
+ },
31
+ danger: {
32
+ sticky: true
33
+ }
34
+ }
35
+ };
36
+
37
+ var container, encorder = $('<div/>');
38
+ function htmlEncode (message) {
39
+ return encorder.text(message).html();
40
+ }
41
+
42
+ function formatOptions(options) {
43
+ var typesDefault = setting.typesDefault[options.type];
44
+ if (typesDefault) {
45
+ $.extend(options, $.extend({}, typesDefault, options));
46
+ }
47
+ OPTIONS.forEach(function (key) {
48
+ var value = options[key];
49
+ options[key] = value === undefined ? setting.default[key] : value;
50
+ });
51
+ if (setting.convert) {
52
+ setting.convert(options);
53
+ }
54
+ }
55
+
56
+ function show(message, options) {
57
+ options = options || {};
58
+ formatOptions(options);
59
+ var div = $(setting.message.replace('{message}', htmlEncode(message)).replace('{type}', options.type)).appendTo(container);
60
+ var close = function () {
61
+ div.remove();
62
+ };
63
+ if (!options.sticky) {
64
+ div.delay(options.time).fadeOut(options.fadeOut, close);
65
+ }
66
+ if (options.closable) {
67
+ div.find(setting.closeHandler).addBack(setting.closeHandler).bind('click', close);
68
+ } else {
69
+ div.addClass('nonclosable');
70
+ }
71
+ }
72
+
73
+ var flash = function () {
74
+ setting.method.apply(this, arguments);
75
+ };
76
+ flash.setting = setting;
77
+ flash.formatOptions = formatOptions;
78
+ setting.method = flash.defaultMethod = show;
79
+ window.flash = flash;
80
+
81
+ TYPES.forEach(function (type) {
82
+ flash[type] = function (message, options) {
83
+ options = options || {};
84
+ options.type = type;
85
+ flash(message, options);
86
+ }
87
+ });
88
+
89
+ $(document).on('ready page:load', function () {
90
+ if (!container) {
91
+ container = $(setting.container);
92
+ }
93
+ $(setting.appendTo).append(container);
94
+ if (setting.window) {
95
+ window.flash = setting.window.flash;
96
+ }
97
+ });
98
+ })(jQuery);
@@ -0,0 +1,8 @@
1
+ .glyphicon-remove {
2
+ float: right;
3
+ cursor: pointer;
4
+ }
5
+
6
+ .nonclosable .glyphicon-remove {
7
+ display: none;
8
+ }
@@ -0,0 +1,48 @@
1
+ /*!
2
+ * [flash-messenger]{@link https://github.com/emn178/flash-messenger}
3
+ *
4
+ * @version 0.1.0
5
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
6
+ * @copyright Chen, Yi-Cyuan 2016
7
+ * @license MIT
8
+ */
9
+ .flash-messages {
10
+ position: absolute;
11
+ z-index: 10000;
12
+ left: 20px;
13
+ right: 20px;
14
+ top: 70px;
15
+ }
16
+
17
+ .flash-message {
18
+ position: relative;
19
+ padding: 15px 20px;
20
+ margin-top: 10px;
21
+ color: #fff;
22
+ border-radius: 5px;
23
+ }
24
+
25
+ .flash-message.nonclosable .flash-message-close {
26
+ display: none;
27
+ }
28
+
29
+ .flash-message-close {
30
+ float: right;
31
+ cursor: pointer;
32
+ }
33
+
34
+ .flash-message.success {
35
+ background-color: #8cc040;
36
+ }
37
+
38
+ .flash-message.notice, .flash-message.info {
39
+ background-color: #77C3E8;
40
+ }
41
+
42
+ .flash-message.error, .flash-message.danger {
43
+ background-color: #dd5749;
44
+ }
45
+
46
+ .flash-message.warning, .flash-message.alert {
47
+ background-color: #FF9800;
48
+ }
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "flash/messenger/rails"
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
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'flash-messenger/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "flash-messenger"
8
+ spec.version = FlashMessenger::VERSION
9
+ spec.authors = ["Chen, Yi-Cyuan"]
10
+ spec.email = ["emn178@gmail.com"]
11
+
12
+ spec.summary = %q{Integrate with flash-messenger to provide a simple flash messages.}
13
+ spec.description = %q{Integrate with flash-messenger to provide a simple flash messages.}
14
+ spec.homepage = "https://github.com/emn178/flash-messenger-rails"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency "request_store"
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.10"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "actionview"
25
+ spec.add_development_dependency "activerecord"
26
+ spec.add_development_dependency "sqlite3"
27
+ spec.add_development_dependency "rspec"
28
+ spec.add_development_dependency "rspec-its"
29
+ spec.add_development_dependency "simplecov"
30
+ spec.add_development_dependency "coveralls"
31
+ end
@@ -0,0 +1,9 @@
1
+ require "request_store"
2
+ require "flash-messenger/version"
3
+ require "flash-messenger/helper"
4
+ require "flash-messenger/view_helper"
5
+ require "flash-messenger/controller_helper"
6
+ require "flash-messenger/engine"
7
+
8
+ module FlashMessenger
9
+ end
@@ -0,0 +1,26 @@
1
+ module FlashMessenger
2
+ module ControllerHelper
3
+ include FlashMessenger::Helper
4
+
5
+ def flash_message(message, options = nil)
6
+ push_flash(message, options)
7
+ end
8
+
9
+ def flash_notice(message, options = nil)
10
+ push_flash(message, options, 'notice')
11
+ end
12
+
13
+ def flash_alert(message, options = nil)
14
+ push_flash(message, options, 'alert')
15
+ end
16
+
17
+ def flash_error(message, options = nil)
18
+ push_flash(message, options, 'error')
19
+ end
20
+
21
+ def flash_model_error(errors, options = nil)
22
+ errors = errors.errors if errors.is_a? ActiveRecord::Base
23
+ push_flash(errors.to_h, options, 'modelError')
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,14 @@
1
+ if defined?(::Rails::Engine)
2
+ module FlashMessenger
3
+ class Engine < ::Rails::Engine
4
+ initializer "flash-messenger-rails" do
5
+ ActiveSupport.on_load(:action_view) do
6
+ include FlashMessenger::ViewHelper
7
+ end
8
+ ActiveSupport.on_load(:action_controller) do
9
+ include FlashMessenger::ControllerHelper
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,21 @@
1
+ module FlashMessenger
2
+ module Helper
3
+ def flash_messenger
4
+ RequestStore.store[:flash_messenger] ||= []
5
+ end
6
+
7
+ def push_flash(message, options, method = nil)
8
+ options = options.nil? ? options : options.clone
9
+ if method.nil?
10
+ if options.nil?
11
+ job = [message]
12
+ else
13
+ job = [message, options]
14
+ end
15
+ else
16
+ job = [message, options, method]
17
+ end
18
+ flash_messenger << job
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module FlashMessenger
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,12 @@
1
+ module FlashMessenger
2
+ module ViewHelper
3
+ include FlashMessenger::Helper
4
+
5
+ def show_flash
6
+ flash.map do |type, message|
7
+ push_flash(message, :type => type)
8
+ end
9
+ javascript_tag "flash.show(#{flash_messenger.to_json});" unless flash_messenger.empty?
10
+ end
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,207 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: flash-messenger
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Chen, Yi-Cyuan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: request_store
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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: actionview
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activerecord
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-its
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: coveralls
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Integrate with flash-messenger to provide a simple flash messages.
154
+ email:
155
+ - emn178@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".travis.yml"
163
+ - CHANGELOG.md
164
+ - Gemfile
165
+ - LICENSE.txt
166
+ - README.md
167
+ - Rakefile
168
+ - app/assets/javascripts/flash-messenger-bootstrap.js
169
+ - app/assets/javascripts/flash-messenger-turboboost.js
170
+ - app/assets/javascripts/flash-messenger.js
171
+ - app/assets/javascripts/flash-messenger/flash-messenger.js
172
+ - app/assets/stylesheets/flash-messenger-bootstrap.css
173
+ - app/assets/stylesheets/flash-messenger.css
174
+ - bin/console
175
+ - bin/setup
176
+ - flash-messenger.gemspec
177
+ - lib/flash-messenger.rb
178
+ - lib/flash-messenger/controller_helper.rb
179
+ - lib/flash-messenger/engine.rb
180
+ - lib/flash-messenger/helper.rb
181
+ - lib/flash-messenger/version.rb
182
+ - lib/flash-messenger/view_helper.rb
183
+ homepage: https://github.com/emn178/flash-messenger-rails
184
+ licenses:
185
+ - MIT
186
+ metadata: {}
187
+ post_install_message:
188
+ rdoc_options: []
189
+ require_paths:
190
+ - lib
191
+ required_ruby_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ requirements: []
202
+ rubyforge_project:
203
+ rubygems_version: 2.4.8
204
+ signing_key:
205
+ specification_version: 4
206
+ summary: Integrate with flash-messenger to provide a simple flash messages.
207
+ test_files: []