Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit db62777
Showing
16 changed files
with
2,760 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.DS_Store | ||
*.gem | ||
*.rbc | ||
.bundle | ||
.config | ||
.yardoc | ||
Gemfile.lock | ||
InstalledFiles | ||
_yardoc | ||
coverage | ||
doc/ | ||
lib/bundler/man | ||
pkg | ||
rdoc | ||
spec/reports | ||
test/tmp | ||
test/version_tmp | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in messengerjs-rails.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# messengerjs-rails | ||
|
||
messengerjs-rails is a Rails (3.1 and above) wrapper for [Messenger](http://github.hubspot.com/messenger/) javascript library. | ||
|
||
# Messenger | ||
|
||
- Show transactional messages in your app. | ||
- Wrap AJAX requests with progress, success and error messages, and add retry to your failed requests. | ||
- Add actions (undo, cancel, etc.) to your messages. | ||
- 4kb minified and compressed. | ||
- Works in everything modern, and IE7 and above. | ||
|
||
<a href="http://hubspot.github.com/messenger"> | ||
<img src="https://raw.github.com/HubSpot/messenger/f500e931fe7099da460aaf9b5c1013f377e40775/images/messenger_preview.png" title="Thanks for checking out Messenger!" width="400px" style="max-width: 400px"/> | ||
</a> | ||
|
||
[Demo and Usage](http://hubspot.github.com/messenger) | ||
|
||
## Requirements | ||
|
||
1. jQuery | ||
|
||
2. Plays well with, but doesn't require, Bootstrap | ||
|
||
## Installation | ||
|
||
Add the following to your gemfile: | ||
|
||
gem 'messengerjs-rails' | ||
|
||
Add the following directive to your application.coffee / application.js: | ||
|
||
//= require messenger | ||
//= require messenger-theme-future | ||
|
||
Add the following directive to your application.scss / application.css. There are four themes provided (future, air, block and ice), change the required stylesheet as needed. | ||
|
||
*= require messenger | ||
*= require messenger-spinner | ||
*= require messenger-theme-future | ||
|
||
|
||
## Versioning | ||
|
||
Every attempt is made to mirror the currently shipping Messenger version number wherever possible. | ||
The major, minor, and patch version numbers will always represent the Messenger version. | ||
|
||
## Contributing | ||
|
||
Feel free to open an issue ticket if you find something that could be improved. | ||
|
||
## Acknowledgements | ||
|
||
Special thanks to [HubSpot](http://dev.hubspot.com/) and all Messenger contributor. | ||
|
||
Copyright [Ben Song](zbin.song@gmail.com), released under the MIT License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env rake | ||
require "bundler/gem_tasks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require "messengerjs-rails/version" | ||
|
||
module MessengerJS | ||
module Rails | ||
class Engine < ::Rails::Engine | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module MessengerJS | ||
module Rails | ||
VERSION = "1.3.0" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- encoding: utf-8 -*- | ||
require File.expand_path('../lib/messengerjs-rails/version', __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'messengerjs-rails' | ||
s.version = MessengerJS::Rails::VERSION | ||
s.date = '2013-03-26' | ||
s.summary = 'Messenger js on Rails' | ||
s.description = 'Injects Messenger javascript and stylesheets into your asset pipeline.' | ||
s.authors = ["Ben Song"] | ||
s.email = 'zbin.song@gmail.com' | ||
s.files = Dir["{lib,vendor}/**/*"] + ["MIT-LICENSE", "README.md"] | ||
s.homepage = 'https://github.com/benjis/messengerjs-rails/' | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.