message_train 0.7.3 → 0.7.5

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: 2c065aec23805479ba06149a518f3edcc25c66a1
4
- data.tar.gz: c53c3027c82ffe2ae8562584120980d7834bc814
3
+ metadata.gz: d91a2e743748d2a51d918328496e49d81a91825c
4
+ data.tar.gz: 76fe50e18ea3255f7294d0b44a812aa4b2ef3220
5
5
  SHA512:
6
- metadata.gz: cce40f5bb3028f34eecfa87d5af88c54cbe008271cb8c92cfa1093f2c59e87eb34ff0de6e0e1a8cacbb315a3c8fc8c586695f4e6fb48f1c7ac127b6fc5e065fb
7
- data.tar.gz: 00d5ad244c8734590dbc061a0130e5058a174b535ac44e599959219a7176441d494226d77ab00916cbf1118455bfc555f3dc4b31534808b3890fae64c1d7ba5a
6
+ metadata.gz: e3513975bc62654becda44650a50a226268c50fb45939878126904f88f7539c144def3b1a03f4344a9ab08bccd0fb1311fa9f3e7b209caf11d1c688043a1ee38
7
+ data.tar.gz: 5fdc4378e529e8be73324c7affe3bc36a2e73b2de3d8c7a01bc314ccd11ecfe2bf47717c5364d56fa03ca35e6d574adf7df1d9944362585b35b4a8d9bf6bcbbb
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- gem 'haml-rails', '~> 0.9'
4
+ gem 'haml-rails', '>= 1', '< 2'
5
5
  gem 'jquery-rails', '~> 4'
6
6
  gem 'paperclip', '>= 4.2', '< 6'
7
7
  gem 'rails', '>= 4', '< 6'
@@ -13,8 +13,8 @@ gem 'jbuilder', '~> 2.0'
13
13
 
14
14
  gem 'bootstrap-sass', '~> 3.3'
15
15
  gem 'bootstrap_form', '~> 2.3'
16
- gem 'bootstrap_leather', '~> 0.9'
17
- gem 'bootstrap_pager', '~> 0.10'
16
+ gem 'bootstrap_leather', '>= 0.10.11', '< 1'
17
+ gem 'kaminari', '~> 1.0'
18
18
  gem 'bootstrap_tokenfield_rails', '~> 0.12'
19
19
  gem 'ckeditor'
20
20
  gem 'cocoon', '~> 1.2'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.3
1
+ 0.7.5
@@ -0,0 +1,2 @@
1
+ %li
2
+ = link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote
@@ -0,0 +1,2 @@
1
+ %li.disabled
2
+ = content_tag :a, raw(t 'views.pagination.truncate')
@@ -0,0 +1,2 @@
1
+ %li
2
+ = link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}
@@ -0,0 +1,2 @@
1
+ %li
2
+ = link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote
@@ -0,0 +1,6 @@
1
+ - if page.current?
2
+ %li.active
3
+ = content_tag :a, page, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil))
4
+ - else
5
+ %li
6
+ = link_to page, url, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil))
@@ -0,0 +1,11 @@
1
+ = paginator.render do
2
+ %ul.pagination
3
+ = first_page_tag unless current_page.first?
4
+ = prev_page_tag unless current_page.first?
5
+ - each_page do |page|
6
+ - if page.left_outer? || page.right_outer? || page.inside_window?
7
+ = page_tag page
8
+ - elsif !page.was_truncated?
9
+ = gap_tag
10
+ = next_page_tag unless current_page.last?
11
+ = last_page_tag unless current_page.last?
@@ -0,0 +1,2 @@
1
+ %li
2
+ = link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote
@@ -1,4 +1,5 @@
1
- BootstrapPager.configure do |config|
1
+ # frozen_string_literal: true
2
+ Kaminari.configure do |config|
2
3
  config.default_per_page = 10
3
4
  # config.max_per_page = nil
4
5
  # config.window = 4
@@ -7,4 +8,5 @@ BootstrapPager.configure do |config|
7
8
  # config.right = 0
8
9
  # config.page_method_name = :page
9
10
  # config.param_name = :page
11
+ # config.params_on_first_page = false
10
12
  end
data/lib/message_train.rb CHANGED
@@ -18,7 +18,7 @@ module MessageTrain
18
18
 
19
19
  require 'haml-rails'
20
20
  require 'bootstrap_leather'
21
- require 'bootstrap_pager'
21
+ require 'kaminari'
22
22
  end
23
23
 
24
24
  ActiveRecord::Base.send(:extend, MessageTrain::Mixin)
@@ -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.3 ruby lib
5
+ # stub: message_train 0.7.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "message_train"
9
- s.version = "0.7.3"
9
+ s.version = "0.7.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"]
13
13
  s.authors = ["Karen Lundgren"]
14
- s.date = "2017-04-28"
14
+ s.date = "2017-10-06"
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 = [
@@ -61,6 +61,13 @@ Gem::Specification.new do |s|
61
61
  "app/models/message_train/receipt.rb",
62
62
  "app/models/message_train/unsubscribe.rb",
63
63
  "app/views/application/404.html.haml",
64
+ "app/views/kaminari/_first_page.html.haml",
65
+ "app/views/kaminari/_gap.html.haml",
66
+ "app/views/kaminari/_last_page.html.haml",
67
+ "app/views/kaminari/_next_page.html.haml",
68
+ "app/views/kaminari/_page.html.haml",
69
+ "app/views/kaminari/_paginator.html.haml",
70
+ "app/views/kaminari/_prev_page.html.haml",
64
71
  "app/views/layouts/mailer.html.haml",
65
72
  "app/views/layouts/mailer.text.haml",
66
73
  "app/views/message_train/application/_attachment_fields.html.haml",
@@ -99,8 +106,8 @@ Gem::Specification.new do |s|
99
106
  "app/views/message_train/receipt_mailer/notification_email.text.haml",
100
107
  "app/views/message_train/unsubscribes/index.html.haml",
101
108
  "config/environment.rb",
102
- "config/initializers/bootstrap_pager_config.rb",
103
109
  "config/initializers/date_time.rb",
110
+ "config/initializers/kaminari_config.rb",
104
111
  "config/locales/en.yml",
105
112
  "config/routes.rb",
106
113
  "db/migrate/20150721145319_create_message_train_conversations.rb",
@@ -285,7 +292,7 @@ Gem::Specification.new do |s|
285
292
  s.specification_version = 4
286
293
 
287
294
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
288
- s.add_runtime_dependency(%q<haml-rails>, ["~> 0.9"])
295
+ s.add_runtime_dependency(%q<haml-rails>, ["< 2", ">= 1"])
289
296
  s.add_runtime_dependency(%q<jquery-rails>, ["~> 4"])
290
297
  s.add_runtime_dependency(%q<paperclip>, ["< 6", ">= 4.2"])
291
298
  s.add_runtime_dependency(%q<rails>, ["< 6", ">= 4"])
@@ -294,8 +301,8 @@ Gem::Specification.new do |s|
294
301
  s.add_runtime_dependency(%q<jbuilder>, ["~> 2.0"])
295
302
  s.add_runtime_dependency(%q<bootstrap-sass>, ["~> 3.3"])
296
303
  s.add_runtime_dependency(%q<bootstrap_form>, ["~> 2.3"])
297
- s.add_runtime_dependency(%q<bootstrap_leather>, ["~> 0.9"])
298
- s.add_runtime_dependency(%q<bootstrap_pager>, ["~> 0.10"])
304
+ s.add_runtime_dependency(%q<bootstrap_leather>, ["< 1", ">= 0.10.11"])
305
+ s.add_runtime_dependency(%q<kaminari>, ["~> 1.0"])
299
306
  s.add_runtime_dependency(%q<bootstrap_tokenfield_rails>, ["~> 0.12"])
300
307
  s.add_runtime_dependency(%q<ckeditor>, [">= 0"])
301
308
  s.add_runtime_dependency(%q<cocoon>, ["~> 1.2"])
@@ -318,7 +325,7 @@ Gem::Specification.new do |s|
318
325
  s.add_development_dependency(%q<seedbank>, ["~> 0.3"])
319
326
  s.add_development_dependency(%q<sqlite3>, ["~> 1.3"])
320
327
  else
321
- s.add_dependency(%q<haml-rails>, ["~> 0.9"])
328
+ s.add_dependency(%q<haml-rails>, ["< 2", ">= 1"])
322
329
  s.add_dependency(%q<jquery-rails>, ["~> 4"])
323
330
  s.add_dependency(%q<paperclip>, ["< 6", ">= 4.2"])
324
331
  s.add_dependency(%q<rails>, ["< 6", ">= 4"])
@@ -327,8 +334,8 @@ Gem::Specification.new do |s|
327
334
  s.add_dependency(%q<jbuilder>, ["~> 2.0"])
328
335
  s.add_dependency(%q<bootstrap-sass>, ["~> 3.3"])
329
336
  s.add_dependency(%q<bootstrap_form>, ["~> 2.3"])
330
- s.add_dependency(%q<bootstrap_leather>, ["~> 0.9"])
331
- s.add_dependency(%q<bootstrap_pager>, ["~> 0.10"])
337
+ s.add_dependency(%q<bootstrap_leather>, ["< 1", ">= 0.10.11"])
338
+ s.add_dependency(%q<kaminari>, ["~> 1.0"])
332
339
  s.add_dependency(%q<bootstrap_tokenfield_rails>, ["~> 0.12"])
333
340
  s.add_dependency(%q<ckeditor>, [">= 0"])
334
341
  s.add_dependency(%q<cocoon>, ["~> 1.2"])
@@ -352,7 +359,7 @@ Gem::Specification.new do |s|
352
359
  s.add_dependency(%q<sqlite3>, ["~> 1.3"])
353
360
  end
354
361
  else
355
- s.add_dependency(%q<haml-rails>, ["~> 0.9"])
362
+ s.add_dependency(%q<haml-rails>, ["< 2", ">= 1"])
356
363
  s.add_dependency(%q<jquery-rails>, ["~> 4"])
357
364
  s.add_dependency(%q<paperclip>, ["< 6", ">= 4.2"])
358
365
  s.add_dependency(%q<rails>, ["< 6", ">= 4"])
@@ -361,8 +368,8 @@ Gem::Specification.new do |s|
361
368
  s.add_dependency(%q<jbuilder>, ["~> 2.0"])
362
369
  s.add_dependency(%q<bootstrap-sass>, ["~> 3.3"])
363
370
  s.add_dependency(%q<bootstrap_form>, ["~> 2.3"])
364
- s.add_dependency(%q<bootstrap_leather>, ["~> 0.9"])
365
- s.add_dependency(%q<bootstrap_pager>, ["~> 0.10"])
371
+ s.add_dependency(%q<bootstrap_leather>, ["< 1", ">= 0.10.11"])
372
+ s.add_dependency(%q<kaminari>, ["~> 1.0"])
366
373
  s.add_dependency(%q<bootstrap_tokenfield_rails>, ["~> 0.12"])
367
374
  s.add_dependency(%q<ckeditor>, [">= 0"])
368
375
  s.add_dependency(%q<cocoon>, ["~> 1.2"])
Binary file
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.5
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-04-28 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - "<"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: '0.9'
22
+ version: '1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - "<"
28
+ - !ruby/object:Gem::Version
29
+ version: '2'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: '0.9'
32
+ version: '1'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: jquery-rails
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -164,30 +170,36 @@ dependencies:
164
170
  name: bootstrap_leather
165
171
  requirement: !ruby/object:Gem::Requirement
166
172
  requirements:
167
- - - "~>"
173
+ - - "<"
174
+ - !ruby/object:Gem::Version
175
+ version: '1'
176
+ - - ">="
168
177
  - !ruby/object:Gem::Version
169
- version: '0.9'
178
+ version: 0.10.11
170
179
  type: :runtime
171
180
  prerelease: false
172
181
  version_requirements: !ruby/object:Gem::Requirement
173
182
  requirements:
174
- - - "~>"
183
+ - - "<"
184
+ - !ruby/object:Gem::Version
185
+ version: '1'
186
+ - - ">="
175
187
  - !ruby/object:Gem::Version
176
- version: '0.9'
188
+ version: 0.10.11
177
189
  - !ruby/object:Gem::Dependency
178
- name: bootstrap_pager
190
+ name: kaminari
179
191
  requirement: !ruby/object:Gem::Requirement
180
192
  requirements:
181
193
  - - "~>"
182
194
  - !ruby/object:Gem::Version
183
- version: '0.10'
195
+ version: '1.0'
184
196
  type: :runtime
185
197
  prerelease: false
186
198
  version_requirements: !ruby/object:Gem::Requirement
187
199
  requirements:
188
200
  - - "~>"
189
201
  - !ruby/object:Gem::Version
190
- version: '0.10'
202
+ version: '1.0'
191
203
  - !ruby/object:Gem::Dependency
192
204
  name: bootstrap_tokenfield_rails
193
205
  requirement: !ruby/object:Gem::Requirement
@@ -545,6 +557,13 @@ files:
545
557
  - app/models/message_train/receipt.rb
546
558
  - app/models/message_train/unsubscribe.rb
547
559
  - app/views/application/404.html.haml
560
+ - app/views/kaminari/_first_page.html.haml
561
+ - app/views/kaminari/_gap.html.haml
562
+ - app/views/kaminari/_last_page.html.haml
563
+ - app/views/kaminari/_next_page.html.haml
564
+ - app/views/kaminari/_page.html.haml
565
+ - app/views/kaminari/_paginator.html.haml
566
+ - app/views/kaminari/_prev_page.html.haml
548
567
  - app/views/layouts/mailer.html.haml
549
568
  - app/views/layouts/mailer.text.haml
550
569
  - app/views/message_train/application/_attachment_fields.html.haml
@@ -583,8 +602,8 @@ files:
583
602
  - app/views/message_train/receipt_mailer/notification_email.text.haml
584
603
  - app/views/message_train/unsubscribes/index.html.haml
585
604
  - config/environment.rb
586
- - config/initializers/bootstrap_pager_config.rb
587
605
  - config/initializers/date_time.rb
606
+ - config/initializers/kaminari_config.rb
588
607
  - config/locales/en.yml
589
608
  - config/routes.rb
590
609
  - db/migrate/20150721145319_create_message_train_conversations.rb