message_train 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 027342107a3d4d7cc91f25e95fddd7cd832683d4
4
- data.tar.gz: efddd5dcb4ad8398ba1bc79628e631d7195f84cd
3
+ metadata.gz: 39e0dfb5d6d7e83432fe21a6f898b5b26a05fd18
4
+ data.tar.gz: 7b33bedf9a7677a7a40d7fda5a023c302a596627
5
5
  SHA512:
6
- metadata.gz: 9cced9083dc2fb1770de202b482dcf03c6ea4e998cb84ca20d80ae8537317f6f06fe258e850e15abdbd0ab82a138d4d7e837a078cd965ca1c961051c12b9845d
7
- data.tar.gz: 3a338a9025e5b4c7db7cc8c1ef6f0ba576fc26006d9f82c4563e8595d16e4698f53157a209fc46297dfb5d890ad17102f5f82cb99d80924719f0a539a383de50
6
+ metadata.gz: 33960cdf65cd33484040001d1428db1946d63c895ac8d6b96f236728632ef2bd2a9245ba8078b46d907f9aeec9af397918b0d8cb164b775c779710aa0a4aca04
7
+ data.tar.gz: 5072b55b250d39f8dfb18f19ec78f74e5b4074d5bfd15d19c40543c5a02467f07a3d7d2b704a2192423fe5f93491df1421b516af5ccc3706586ae905f4665de0
data/README.rdoc CHANGED
@@ -50,6 +50,12 @@ In your layout, supposing you use haml:
50
50
  #alert_area
51
51
  = alert_flash_messages
52
52
 
53
+ If you use bootstrap, you can use the built-in bootstrap sidebar menu (makes use of bootstrap_leather, which is a dependency of this gem)
54
+
55
+ - if user_signed_in?
56
+ = message_train_widget
57
+ = render_widgets 'md', 3
58
+
53
59
  === Required helper methods
54
60
 
55
61
  If you don't use devise with its `current_user` method, you will need to configure MessageTrain to use whatever method you use:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -1,6 +1,7 @@
1
- - if @collective.nil?
2
- - add_widget do
3
- = boxes_widget @box_user
4
- - else
5
- - add_widget do
6
- = collective_boxes_widget @collective, @box_user
1
+ - if ['boxes', 'conversations', 'messages'].include? controller_name
2
+ - if @collective.nil?
3
+ - add_widget do
4
+ = boxes_widget @box_user
5
+ - else
6
+ - add_widget do
7
+ = collective_boxes_widget @collective, @box_user
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: message_train 0.2.5 ruby lib
5
+ # stub: message_train 0.2.6 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "message_train"
9
- s.version = "0.2.5"
9
+ s.version = "0.2.6"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren