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 +4 -4
- data/README.md +5 -3
- data/app/assets/stylesheets/thredded/base/_buttons.scss +1 -1
- data/app/mailer_previews/thredded/private_topic_mailer_preview.rb +3 -5
- data/app/mailers/thredded/base_mailer.rb +1 -1
- data/app/models/concerns/thredded/user_topic_read_state_common.rb +3 -3
- data/app/view_models/thredded/posts_page_view.rb +2 -1
- data/app/view_models/thredded/private_topics_page_view.rb +2 -1
- data/app/view_models/thredded/topics_page_view.rb +2 -1
- data/app/views/thredded/shared/_header.html.erb +1 -1
- data/app/views/thredded/shared/_nav.html.erb +1 -1
- data/lib/thredded/version.rb +1 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a49cf4f5b1bb361db1653f027efaf34c1de3dc6
|
4
|
+
data.tar.gz: f1cabfe3e1c3d3c20a25242447fe0cbddf813f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
331
|
-
|
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
|
@@ -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
|
8
|
-
|
9
|
-
|
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 [
|
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 [
|
17
|
-
# @param topic_id [
|
16
|
+
# @param user_id [Integer]
|
17
|
+
# @param topic_id [Integer]
|
18
18
|
# @param post [Thredded::PostCommon]
|
19
|
-
# @param post_page [
|
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
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<nav class="thredded--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">
|
data/lib/thredded/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
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.
|
931
|
+
rubygems_version: 2.6.8
|
918
932
|
signing_key:
|
919
933
|
specification_version: 4
|
920
934
|
summary: The best Rails forums engine ever.
|