inboxes 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -3
- data/lib/inboxes/engine.rb +0 -5
- data/lib/inboxes/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -16,12 +16,12 @@ Remember that unfortunately, Inboxes reserve 3 resources names: Discussion, Mess
|
|
16
16
|
|
17
17
|
##Installation
|
18
18
|
|
19
|
-
*Make sure that Devise is already installed and configured!*
|
19
|
+
*Make sure that Devise is already installed and configured in your app!*
|
20
20
|
|
21
|
-
1. Add `gem "inboxes"` to
|
21
|
+
1. Add `gem "inboxes", "~> 0.1.2"` to the `Gemfile` and run `bundle install`
|
22
22
|
2. Execute `rails generate inboxes:install`. This command will generate migration for messaging system. Don't forget to run migrations: `rake db:migrate`
|
23
23
|
3. Add `inboxes` to your User model like [here](https://gist.github.com/1330080)
|
24
|
-
4. Now Inboxes
|
24
|
+
4. Now Inboxes are ready to use. Open `http://yoursite.dev/discussions` to see the list of discussions. You can start new one.
|
25
25
|
|
26
26
|
Default Inboxes views are ugly, so you can copy into your app and make anything with them: `rails generate inboxes:views`
|
27
27
|
If you have problems with installation, you can check [code of demo app](https://github.com/kirs/inboxes-app)
|
@@ -32,6 +32,8 @@ By default, the gem provides localized phrases for Russian and English languages
|
|
32
32
|
|
33
33
|
#Integration with Faye
|
34
34
|
|
35
|
+
You can watch the demo of integration [on YouTube](http://youtu.be/c12gey9DvyU)
|
36
|
+
|
35
37
|
1. Add `gem "faye"` to your Gemfile and run `bundle install`. Install Faye by [the screencast](http://railscasts.com/episodes/260-messaging-with-faye)
|
36
38
|
2. Create `messaging.js` in `app/assets/javascripts/` with these line: `= require inboxes/faye`
|
37
39
|
|
@@ -45,6 +47,8 @@ By default, the gem provides localized phrases for Russian and English languages
|
|
45
47
|
|
46
48
|
5. Faye installation is finished. If you have any troubles, check the [example app](https://github.com/kirs/inboxes-app/)
|
47
49
|
|
50
|
+
*While testing Inboxes with Faye, don't forget to run it: `rackup faye.ru -s thin -E production`*
|
51
|
+
|
48
52
|
##Todo
|
49
53
|
|
50
54
|
- Add RSpec tests
|
data/lib/inboxes/engine.rb
CHANGED
@@ -2,13 +2,8 @@ require "inboxes/ability"
|
|
2
2
|
|
3
3
|
module Inboxes
|
4
4
|
class Engine < ::Rails::Engine
|
5
|
-
# raise "Engine Activated"
|
6
5
|
def self.activate
|
7
6
|
Ability.register_ability(InboxesAbility)
|
8
|
-
# raise "Activated"
|
9
|
-
end
|
10
|
-
|
11
|
-
def load_tasks
|
12
7
|
end
|
13
8
|
|
14
9
|
config.to_prepare &method(:activate).to_proc
|
data/lib/inboxes/version.rb
CHANGED
metadata
CHANGED