thredded 0.9.2 → 0.9.3

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: e76d21e51d3bc6428426d243653ed0f5555d4916
4
- data.tar.gz: d4377eb570b63bd8bcd128db7bf5249903945fb8
3
+ metadata.gz: 0a49cf4f5b1bb361db1653f027efaf34c1de3dc6
4
+ data.tar.gz: f1cabfe3e1c3d3c20a25242447fe0cbddf813f7e
5
5
  SHA512:
6
- metadata.gz: b0e3a812eab11284f1e920558bfc726a6a90b2cbb795adbf6cd266a27826a48e3c979c307aea304263dca3bd2b74d934a4b78fde33a9161c4da6f4747de95a17
7
- data.tar.gz: 85b9df10620569a67659d1ffc537e5aa4587c649c01e389801672fb0ae2c360aaa2e5d6d89a1becd6c5a23cc3954f4d0dfa7eaf1d31f2d3f3255293a42e201cd
6
+ metadata.gz: b85be66c122e1eec83513d29ff3c7934f6000b8437623458719367f9bea60ca3aa34b30cd2eb9ff05e414f088d4d203cf456e1653f962c01e791b1a3cb2b70ef
7
+ data.tar.gz: 065b6e28bf583efa655c1ffca1c65857708ae85a60699a8010e1a4eec0477ea9583c4573f5ba7579ced0343877b442d87dc121fe77692607fcb3499a98d85862
data/README.md CHANGED
@@ -56,7 +56,7 @@ Then, see the rest of this Readme for more information about using and customizi
56
56
  Add the gem to your Gemfile:
57
57
 
58
58
  ```ruby
59
- gem 'thredded', '~> 0.9.2'
59
+ gem 'thredded', '~> 0.9.3'
60
60
  ```
61
61
 
62
62
  Add the Thredded [initializer] to your parent app by running the install generator.
@@ -327,11 +327,13 @@ Thredded is mostly internationalized. It is currently available in English, Braz
327
327
  We welcome PRs adding support for new languages.
328
328
 
329
329
  If you use thredded in languages other than English, you probably want to add `rails-i18n` to your Gemfile.
330
- Additionally, you will need to require the translations for rails-timeago in you JavaScript,
331
- e.g. for Brazilian Portuguese:
330
+ Additionally, you will need to require the translations for rails-timeago in your JavaScript before `thredded` but
331
+ after `jquery.timeago` (included in `thredded/dependencies`). E.g. for Brazilian Portuguese:
332
332
 
333
333
  ```js
334
+ //= require thredded/dependencies
334
335
  //= require locales/jquery.timeago.pt-br
336
+ //= require thredded/thredded
335
337
  ```
336
338
 
337
339
  ## Permissions
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .thredded--button-wide {
55
- width: 100%;
55
+ display: block;
56
56
  text-align: center;
57
57
  }
58
58
 
@@ -4,11 +4,9 @@ module Thredded
4
4
  class PrivateTopicMailerPreview < BaseMailerPreview
5
5
  def message_notification
6
6
  PrivateTopicMailer.message_notification(
7
- mock_private_topic.tap do |private_topic|
8
- private_topic.posts = [
9
- mock_private_post(content: mock_content(mention_users: ['glebm']), postable: private_topic)
10
- ]
11
- end,
7
+ mock_private_topic(posts: [
8
+ mock_private_post(content: mock_content(mention_users: ['glebm']))
9
+ ]),
12
10
  %w(glebm@test.com joel@test.com)
13
11
  )
14
12
  end
@@ -7,7 +7,7 @@ module Thredded
7
7
 
8
8
  # Find a record by ID, or return the passed record.
9
9
  # @param [Class<ActiveRecord::Base>] klass
10
- # @param [Fixnum, String, klass] id_or_record
10
+ # @param [Integer, String, klass] id_or_record
11
11
  # @return [klass]
12
12
  def find_record(klass, id_or_record)
13
13
  # Check by name because in development the Class might have been reloaded after id was initialized
@@ -13,10 +13,10 @@ module Thredded
13
13
  end
14
14
 
15
15
  module ClassMethods
16
- # @param user_id [Fixnum]
17
- # @param topic_id [Fixnum]
16
+ # @param user_id [Integer]
17
+ # @param topic_id [Integer]
18
18
  # @param post [Thredded::PostCommon]
19
- # @param post_page [Fixnum]
19
+ # @param post_page [Integer]
20
20
  def touch!(user_id, topic_id, post, post_page)
21
21
  # TODO: Switch to upsert once Travis supports PostgreSQL 9.5.
22
22
  # Travis issue: https://github.com/travis-ci/travis-ci/issues/4264
@@ -2,7 +2,8 @@
2
2
  module Thredded
3
3
  # A view model for a page of PostViews.
4
4
  class PostsPageView
5
- delegate :to_ary,
5
+ delegate :to_a,
6
+ :to_ary,
6
7
  :present?,
7
8
  to: :@post_views
8
9
  delegate :total_pages,
@@ -2,7 +2,8 @@
2
2
  module Thredded
3
3
  # A view model for a page of BaseTopicViews.
4
4
  class PrivateTopicsPageView
5
- delegate :to_ary,
5
+ delegate :to_a,
6
+ :to_ary,
6
7
  :blank?,
7
8
  :empty?,
8
9
  to: :@topic_views
@@ -2,7 +2,8 @@
2
2
  module Thredded
3
3
  # A view model for a page of BaseTopicViews.
4
4
  class TopicsPageView
5
- delegate :to_ary,
5
+ delegate :to_a,
6
+ :to_ary,
6
7
  :blank?,
7
8
  :empty?,
8
9
  to: :@topic_views
@@ -1,3 +1,3 @@
1
- <header role="banner">
1
+ <header>
2
2
  <%= render 'thredded/shared/nav' %>
3
3
  </header>
@@ -1,4 +1,4 @@
1
- <nav class="thredded--navigation" role="navigation">
1
+ <nav class="thredded--navigation">
2
2
  <ul class="thredded--user-navigation<%= ' thredded--user-navigation-standalone' if Thredded.standalone_layout? %>">
3
3
  <% if signed_in? && Thredded.standalone_layout? %>
4
4
  <li class="thredded--user-navigation--profile thredded--user-navigation--item">
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Thredded
3
- VERSION = '0.9.2'
3
+ VERSION = '0.9.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thredded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Oliveira
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-26 00:00:00.000000000 Z
12
+ date: 2016-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pundit
@@ -225,16 +225,16 @@ dependencies:
225
225
  name: gemoji
226
226
  requirement: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - ">="
228
+ - - "~>"
229
229
  - !ruby/object:Gem::Version
230
- version: '0'
230
+ version: 2.1.0
231
231
  type: :runtime
232
232
  prerelease: false
233
233
  version_requirements: !ruby/object:Gem::Requirement
234
234
  requirements:
235
- - - ">="
235
+ - - "~>"
236
236
  - !ruby/object:Gem::Version
237
- version: '0'
237
+ version: 2.1.0
238
238
  - !ruby/object:Gem::Dependency
239
239
  name: sanitize
240
240
  requirement: !ruby/object:Gem::Requirement
@@ -571,6 +571,20 @@ dependencies:
571
571
  - - ">="
572
572
  - !ruby/object:Gem::Version
573
573
  version: '0'
574
+ - !ruby/object:Gem::Dependency
575
+ name: web-console
576
+ requirement: !ruby/object:Gem::Requirement
577
+ requirements:
578
+ - - ">="
579
+ - !ruby/object:Gem::Version
580
+ version: '0'
581
+ type: :development
582
+ prerelease: false
583
+ version_requirements: !ruby/object:Gem::Requirement
584
+ requirements:
585
+ - - ">="
586
+ - !ruby/object:Gem::Version
587
+ version: '0'
574
588
  - !ruby/object:Gem::Dependency
575
589
  name: turbolinks
576
590
  requirement: !ruby/object:Gem::Requirement
@@ -914,7 +928,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
914
928
  version: '0'
915
929
  requirements: []
916
930
  rubyforge_project:
917
- rubygems_version: 2.5.2
931
+ rubygems_version: 2.6.8
918
932
  signing_key:
919
933
  specification_version: 4
920
934
  summary: The best Rails forums engine ever.