message_train 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c59cd4ee75e183221da8c3b2dd801177d7b3c60
4
- data.tar.gz: c3cf3df9408cfb22be672d147c6fc92770056a4b
3
+ metadata.gz: 716a16971eee61264359b21e00b173108d805439
4
+ data.tar.gz: 42f17313e151dcfac3d27be981c0413905fd5673
5
5
  SHA512:
6
- metadata.gz: a5b8949dbc963fdda36d71c41eae7b8f3f6dde94c87da7876497d4406cf2ce0d7c503b02819e26e844b26efa0fa7a8e0a484c105127cc0bf3a761e170f894d27
7
- data.tar.gz: c2689982f54869d3d999255d2fa9c44763bdd8b640a89e630e9b2d49e930aaffab60b658865bd0ecb4f4f7cb812ba3b133dbb7be2e1ff9147a936841673567a2
6
+ metadata.gz: 9ab56f0364f5e857c4629668438f42655bdcb65b735c127ed29dd2a1e99f17d70298651cf252f45363936731cc0619fe65b62d5129faad4d5aef1c1bbe9f81e6
7
+ data.tar.gz: 56baa46472c54d19af75e72828ae480b1af8e07aa47fd594c89b8a4f1517f07cc60d53ba683084d7a83b9a974534aad15c684d7ba192397c2952693ea9d328a2
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gem 'jquery-rails', '~> 4'
6
6
  gem 'paperclip', '>= 4.2', '< 6'
7
7
  gem 'rails', '>= 4', '< 6'
8
8
  gem 'rails-i18n', '>= 4', '< 6'
9
- gem 'uglifier', '>= 2.7', '< 3.2'
9
+ gem 'uglifier', '>= 2.7', '< 4'
10
10
 
11
11
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
12
12
  gem 'jbuilder', '~> 2.0'
@@ -27,10 +27,8 @@ gem 'twitter-typeahead-rails'
27
27
  group :development do
28
28
  gem 'bundler', '~> 1.0'
29
29
  gem 'juwelier', '~> 2'
30
- gem 'pre-commit', '~> 0.27'
31
30
  gem 'rubocop', '~> 0.47.1', require: false
32
31
  gem 'scss_lint', '~> 0.52', require: false
33
- gem 'sdoc', '~> 0.4.1'
34
32
  end
35
33
 
36
34
  group :development, :test do
data/README.md CHANGED
@@ -237,6 +237,10 @@ config.address_book_methods[:users] = :valid_recipients_for
237
237
 
238
238
  ## Upgrading
239
239
 
240
+ ### 0.7.1
241
+
242
+ Renamed `subscription` to `message_train_subscription` and `subscriptions` to `message_train_subscription`.
243
+
240
244
  ### 0.4.0
241
245
 
242
246
  Version 0.4.0 introduced database changes to the foreign key columns to
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -3,7 +3,7 @@ module MessageTrain
3
3
  class UnsubscribesController < MessageTrain::ApplicationController
4
4
  # GET /unsubscribes
5
5
  def index
6
- @subscriptions = @box_user.subscriptions
6
+ @subscriptions = @box_user.message_train_subscriptions
7
7
  end
8
8
 
9
9
  # POST /unsubscribes
@@ -112,10 +112,10 @@ module MessageTrain
112
112
  unsubscribes.find_or_create_by(from: from)
113
113
  end
114
114
 
115
- def subscriptions
115
+ def message_train_subscriptions
116
116
  subscriptions = [self_subscription]
117
117
  subscriptions += collective_boxes.values.map do |boxes|
118
- boxes.map { |box| subscription(box) }
118
+ boxes.map { |box| message_train_subscription(box) }
119
119
  end
120
120
  subscriptions.flatten.compact
121
121
  end
@@ -193,7 +193,7 @@ module MessageTrain
193
193
  }
194
194
  end
195
195
 
196
- def subscription(box)
196
+ def message_train_subscription(box)
197
197
  parent = box.parent
198
198
  return unless parent.allows_receiving_by?(self)
199
199
  {
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: message_train 0.7.1 ruby lib
5
+ # stub: message_train 0.7.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "message_train"
9
- s.version = "0.7.1"
9
+ s.version = "0.7.2"
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"]
13
13
  s.authors = ["Karen Lundgren"]
14
- s.date = "2017-03-31"
14
+ s.date = "2017-04-28"
15
15
  s.description = "Rails 4 & 5 Engine providing private and public messaging for any object, such as Users or Groups"
16
16
  s.email = "karen.e.lundgren@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -290,7 +290,7 @@ Gem::Specification.new do |s|
290
290
  s.add_runtime_dependency(%q<paperclip>, ["< 6", ">= 4.2"])
291
291
  s.add_runtime_dependency(%q<rails>, ["< 6", ">= 4"])
292
292
  s.add_runtime_dependency(%q<rails-i18n>, ["< 6", ">= 4"])
293
- s.add_runtime_dependency(%q<uglifier>, ["< 3.2", ">= 2.7"])
293
+ s.add_runtime_dependency(%q<uglifier>, ["< 4", ">= 2.7"])
294
294
  s.add_runtime_dependency(%q<jbuilder>, ["~> 2.0"])
295
295
  s.add_runtime_dependency(%q<bootstrap-sass>, ["~> 3.3"])
296
296
  s.add_runtime_dependency(%q<bootstrap_form>, ["~> 2.3"])
@@ -304,10 +304,8 @@ Gem::Specification.new do |s|
304
304
  s.add_runtime_dependency(%q<twitter-typeahead-rails>, [">= 0"])
305
305
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
306
306
  s.add_development_dependency(%q<juwelier>, ["~> 2"])
307
- s.add_development_dependency(%q<pre-commit>, ["~> 0.27"])
308
307
  s.add_development_dependency(%q<rubocop>, ["~> 0.47.1"])
309
308
  s.add_development_dependency(%q<scss_lint>, ["~> 0.52"])
310
- s.add_development_dependency(%q<sdoc>, ["~> 0.4.1"])
311
309
  s.add_development_dependency(%q<byebug>, ["~> 9"])
312
310
  s.add_development_dependency(%q<devise>, ["~> 4"])
313
311
  s.add_development_dependency(%q<factory_girl_rails>, ["~> 4.5"])
@@ -325,7 +323,7 @@ Gem::Specification.new do |s|
325
323
  s.add_dependency(%q<paperclip>, ["< 6", ">= 4.2"])
326
324
  s.add_dependency(%q<rails>, ["< 6", ">= 4"])
327
325
  s.add_dependency(%q<rails-i18n>, ["< 6", ">= 4"])
328
- s.add_dependency(%q<uglifier>, ["< 3.2", ">= 2.7"])
326
+ s.add_dependency(%q<uglifier>, ["< 4", ">= 2.7"])
329
327
  s.add_dependency(%q<jbuilder>, ["~> 2.0"])
330
328
  s.add_dependency(%q<bootstrap-sass>, ["~> 3.3"])
331
329
  s.add_dependency(%q<bootstrap_form>, ["~> 2.3"])
@@ -339,10 +337,8 @@ Gem::Specification.new do |s|
339
337
  s.add_dependency(%q<twitter-typeahead-rails>, [">= 0"])
340
338
  s.add_dependency(%q<bundler>, ["~> 1.0"])
341
339
  s.add_dependency(%q<juwelier>, ["~> 2"])
342
- s.add_dependency(%q<pre-commit>, ["~> 0.27"])
343
340
  s.add_dependency(%q<rubocop>, ["~> 0.47.1"])
344
341
  s.add_dependency(%q<scss_lint>, ["~> 0.52"])
345
- s.add_dependency(%q<sdoc>, ["~> 0.4.1"])
346
342
  s.add_dependency(%q<byebug>, ["~> 9"])
347
343
  s.add_dependency(%q<devise>, ["~> 4"])
348
344
  s.add_dependency(%q<factory_girl_rails>, ["~> 4.5"])
@@ -361,7 +357,7 @@ Gem::Specification.new do |s|
361
357
  s.add_dependency(%q<paperclip>, ["< 6", ">= 4.2"])
362
358
  s.add_dependency(%q<rails>, ["< 6", ">= 4"])
363
359
  s.add_dependency(%q<rails-i18n>, ["< 6", ">= 4"])
364
- s.add_dependency(%q<uglifier>, ["< 3.2", ">= 2.7"])
360
+ s.add_dependency(%q<uglifier>, ["< 4", ">= 2.7"])
365
361
  s.add_dependency(%q<jbuilder>, ["~> 2.0"])
366
362
  s.add_dependency(%q<bootstrap-sass>, ["~> 3.3"])
367
363
  s.add_dependency(%q<bootstrap_form>, ["~> 2.3"])
@@ -375,10 +371,8 @@ Gem::Specification.new do |s|
375
371
  s.add_dependency(%q<twitter-typeahead-rails>, [">= 0"])
376
372
  s.add_dependency(%q<bundler>, ["~> 1.0"])
377
373
  s.add_dependency(%q<juwelier>, ["~> 2"])
378
- s.add_dependency(%q<pre-commit>, ["~> 0.27"])
379
374
  s.add_dependency(%q<rubocop>, ["~> 0.47.1"])
380
375
  s.add_dependency(%q<scss_lint>, ["~> 0.52"])
381
- s.add_dependency(%q<sdoc>, ["~> 0.4.1"])
382
376
  s.add_dependency(%q<byebug>, ["~> 9"])
383
377
  s.add_dependency(%q<devise>, ["~> 4"])
384
378
  s.add_dependency(%q<factory_girl_rails>, ["~> 4.5"])
Binary file
@@ -7,7 +7,7 @@ describe MessageTrain::ApplicationHelper do
7
7
  before do
8
8
  view.extend MessageTrain::BoxesHelper
9
9
  view.extend MessageTrain::CollectivesHelper
10
- view.extend BootstrapLeatherHelper
10
+ view.extend BootstrapLeather::ApplicationHelper
11
11
  login_user first_user
12
12
  end
13
13
 
@@ -4,7 +4,7 @@ describe MessageTrain::AttachmentsHelper do
4
4
  include_context 'loaded site'
5
5
 
6
6
  before do
7
- view.extend BootstrapLeatherHelper
7
+ view.extend BootstrapLeather::ApplicationHelper
8
8
  end
9
9
 
10
10
  describe '#attachment_icon' do
@@ -5,7 +5,7 @@ describe MessageTrain::BoxesHelper do
5
5
  include ControllerMacros
6
6
 
7
7
  before do
8
- view.extend BootstrapLeatherHelper
8
+ view.extend BootstrapLeather::ApplicationHelper
9
9
  login_user first_user
10
10
  end
11
11
 
@@ -5,7 +5,7 @@ describe MessageTrain::CollectivesHelper do
5
5
  include ControllerMacros
6
6
 
7
7
  before do
8
- view.extend BootstrapLeatherHelper
8
+ view.extend BootstrapLeather::ApplicationHelper
9
9
  login_user first_user
10
10
  end
11
11
 
@@ -6,7 +6,7 @@ describe MessageTrain::ConversationsHelper do
6
6
 
7
7
  before do
8
8
  view.extend MessageTrain::BoxesHelper
9
- view.extend BootstrapLeatherHelper
9
+ view.extend BootstrapLeather::ApplicationHelper
10
10
  login_user first_user
11
11
  assign(:box_user, first_user)
12
12
  end
@@ -6,7 +6,7 @@ describe MessageTrain::MessagesHelper do
6
6
 
7
7
  before do
8
8
  view.extend MessageTrain::BoxesHelper
9
- view.extend BootstrapLeatherHelper
9
+ view.extend BootstrapLeather::ApplicationHelper
10
10
  login_user first_user
11
11
  assign(:box_user, first_user)
12
12
  end
@@ -168,8 +168,8 @@ RSpec.describe User do
168
168
  end
169
169
  end
170
170
 
171
- describe '#subscriptions' do
172
- subject { first_user.subscriptions }
171
+ describe '#message_train_subscriptions' do
172
+ subject { first_user.message_train_subscriptions }
173
173
  it { should be_an Array }
174
174
  it { should have_at_least(3).items }
175
175
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-31 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml-rails
@@ -104,7 +104,7 @@ dependencies:
104
104
  requirements:
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '3.2'
107
+ version: '4'
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.7'
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - "<"
116
116
  - !ruby/object:Gem::Version
117
- version: '3.2'
117
+ version: '4'
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '2.7'
@@ -300,20 +300,6 @@ dependencies:
300
300
  - - "~>"
301
301
  - !ruby/object:Gem::Version
302
302
  version: '2'
303
- - !ruby/object:Gem::Dependency
304
- name: pre-commit
305
- requirement: !ruby/object:Gem::Requirement
306
- requirements:
307
- - - "~>"
308
- - !ruby/object:Gem::Version
309
- version: '0.27'
310
- type: :development
311
- prerelease: false
312
- version_requirements: !ruby/object:Gem::Requirement
313
- requirements:
314
- - - "~>"
315
- - !ruby/object:Gem::Version
316
- version: '0.27'
317
303
  - !ruby/object:Gem::Dependency
318
304
  name: rubocop
319
305
  requirement: !ruby/object:Gem::Requirement
@@ -342,20 +328,6 @@ dependencies:
342
328
  - - "~>"
343
329
  - !ruby/object:Gem::Version
344
330
  version: '0.52'
345
- - !ruby/object:Gem::Dependency
346
- name: sdoc
347
- requirement: !ruby/object:Gem::Requirement
348
- requirements:
349
- - - "~>"
350
- - !ruby/object:Gem::Version
351
- version: 0.4.1
352
- type: :development
353
- prerelease: false
354
- version_requirements: !ruby/object:Gem::Requirement
355
- requirements:
356
- - - "~>"
357
- - !ruby/object:Gem::Version
358
- version: 0.4.1
359
331
  - !ruby/object:Gem::Dependency
360
332
  name: byebug
361
333
  requirement: !ruby/object:Gem::Requirement