message_train 0.1.4 → 0.1.5

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: 87e3f169b4aae2317db505e31bd0b8207ba8c9a1
4
- data.tar.gz: 9b46ef1313ba8fcb8cbbe83bc4c543771b67deea
3
+ metadata.gz: 68be4bba31ecac00d984482f1796ace9d8d6821c
4
+ data.tar.gz: 694148b8df9580d917cdeb3b4c327957e1591fcf
5
5
  SHA512:
6
- metadata.gz: 269a008a97192febfa7c9690fe6844933c1eb310ef143417f797ae056fde72cf5e2202a32af870c1083f06a0b8c76c380ece5aca154cedaae4465ab452bdf1ab
7
- data.tar.gz: c27e5441ea34871b93cc268ab8561e03229d706549a504de24b99fded4866f25cd261fab834e0541ba6e0d24cbfaac7cb239b4e0f32d3be885638d96718575ff
6
+ metadata.gz: 91995e0c25c66f5c90b313665f06ef91f7299d250e4e1f9c8530d7c160d1e5fd3078a1063c0abc0056157fa6007f16c3e20e65af48afc2803e718f27401a04e0
7
+ data.tar.gz: a387f17981384de98e0386cbcee47a15a15079c0f9ffa4318335174080d5de1b26248d45afd3c3278af587c86092dbd0c9141717f4dd06768ffde094bf36eb30
data/README.rdoc CHANGED
@@ -73,7 +73,7 @@ And in your initializer:
73
73
  == View Helpers
74
74
 
75
75
  === Boxes
76
- [boxes_dropdown_list] Bootstrap navigation dropdown list of boxes
76
+ [boxes_dropdown_list] Bootstrap navigation dropdown list of boxes. (Be sure to check that user is signed in before calling, or you'll get errors.)
77
77
  [boxes_widget] Bootstrap widget with list of boxes
78
78
  [box_nav_item(box)] Bootstrap list item for one box
79
79
  [box_list_item(box)] Bootstrap list item for one box
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -7,7 +7,14 @@ module MessageTrain
7
7
  # Scopes
8
8
  default_scope { order('updated_at DESC') }
9
9
  scope :ignored, ->(participant) { where('id IN (?)', ignored_ids_for(participant))}
10
- scope :unignored, ->(participant) { where('NOT(id IN (?))', ignored_ids_for(participant))}
10
+ scope :unignored, ->(participant) {
11
+ ignored_ids = ignored_ids_for(participant)
12
+ if ignored_ids.empty?
13
+ all
14
+ else
15
+ where('NOT(id IN (?))', ignored_ids)
16
+ end
17
+ }
11
18
  scope :filter_by_receipt_method_ids, ->(receipt_method, participant) {
12
19
  all.collect { |x| x.receipts.send(receipt_method, participant).conversation_ids }.flatten.uniq
13
20
  }
@@ -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.1.4 ruby lib
5
+ # stub: message_train 0.1.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "message_train"
9
- s.version = "0.1.4"
9
+ s.version = "0.1.5"
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren