Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benjis committed Mar 26, 2013
0 parents commit db62777
Show file tree
Hide file tree
Showing 16 changed files with 2,760 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
@@ -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
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in messengerjs-rails.gemspec
gemspec
18 changes: 18 additions & 0 deletions MIT-LICENSE
@@ -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.
56 changes: 56 additions & 0 deletions README.md
@@ -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.
2 changes: 2 additions & 0 deletions Rakefile
@@ -0,0 +1,2 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
8 changes: 8 additions & 0 deletions lib/messengerjs-rails.rb
@@ -0,0 +1,8 @@
require "messengerjs-rails/version"

module MessengerJS
module Rails
class Engine < ::Rails::Engine
end
end
end
5 changes: 5 additions & 0 deletions lib/messengerjs-rails/version.rb
@@ -0,0 +1,5 @@
module MessengerJS
module Rails
VERSION = "1.3.0"
end
end
14 changes: 14 additions & 0 deletions messengerjs-rails.gemspec
@@ -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
33 changes: 33 additions & 0 deletions vendor/assets/javascripts/messenger-theme-future.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db62777

Please sign in to comment.