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 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 your `Gemfile` and run `bundle install`
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 is ready to use. Open `http://yoursite.dev/discussions` to see the list of discussions. You can start new one.
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Inboxes
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inboxes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kir Shatrov