thredded 0.16.8 → 0.16.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b7ad12ea287ef3ace9212dffab574e960a41da130062cf74bc1a476a0987f56
|
4
|
+
data.tar.gz: bafa7540a4a298026def2a48b5cbd4dddc26830b60eb516357f55ff1adc86d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8702e8deeb2916ed4df9dac747513a98a90e4b842841caed2c5394348b0daa18db1dbbc87cd6a137866a7496204d41bdc7761b0d110c83cae88c5cfa1a02cbee
|
7
|
+
data.tar.gz: 371c8dc989fe40b6dea0aed48243137e1b4757cd496ef5f0a78a7b452f74c143561b5fd226578834d921119873feb0eab0904c07db15e15a14d2851b7d20b120
|
data/README.md
CHANGED
@@ -95,7 +95,7 @@ Then, see the rest of this Readme for more information about using and customizi
|
|
95
95
|
Add the gem to your Gemfile:
|
96
96
|
|
97
97
|
```ruby
|
98
|
-
gem 'thredded', '~> 0.16.
|
98
|
+
gem 'thredded', '~> 0.16.9'
|
99
99
|
```
|
100
100
|
|
101
101
|
Add the Thredded [initializer] to your parent app by running the install generator.
|
@@ -20,14 +20,15 @@ module Thredded
|
|
20
20
|
|
21
21
|
scope :preload_first_topic_post, -> {
|
22
22
|
posts_table_name = quoted_table_name
|
23
|
+
result = all
|
23
24
|
ActiveRecord::Associations::Preloader.new.preload(
|
24
|
-
map(&:postable), :first_post,
|
25
|
+
result.map(&:postable), :first_post,
|
25
26
|
Thredded::Post.where(<<~SQL.delete("\n"))
|
26
27
|
#{posts_table_name}.created_at = (
|
27
28
|
SELECT MAX(p2.created_at) from #{posts_table_name} p2 WHERE p2.postable_id = #{posts_table_name}.postable_id)
|
28
29
|
SQL
|
29
30
|
)
|
30
|
-
|
31
|
+
result
|
31
32
|
}
|
32
33
|
|
33
34
|
before_validation :ensure_user_detail, on: :create
|
@@ -24,7 +24,7 @@ module Thredded
|
|
24
24
|
)
|
25
25
|
template = @lookup_context.find_template(partial, [], true, locals, {})
|
26
26
|
collection = collection.to_a
|
27
|
-
instrument(:collection, count: collection.size) do |instrumentation_payload|
|
27
|
+
instrument(:collection, identifier: template.identifier, count: collection.size) do |instrumentation_payload|
|
28
28
|
return [] if collection.blank?
|
29
29
|
keyed_collection = collection.each_with_object({}) do |item, hash|
|
30
30
|
key = ActiveSupport::Cache.expand_cache_key(
|
@@ -46,7 +46,7 @@ module Thredded
|
|
46
46
|
names = mentioned_names(text_node_html)
|
47
47
|
return if names.blank? || @users_provider.nil?
|
48
48
|
@users_provider.call(names, @users_provider_scope).each do |user|
|
49
|
-
name = user.
|
49
|
+
name = user.send(Thredded.user_name_column)
|
50
50
|
maybe_quoted_name = name =~ /[., ()]/ ? %("#{name}") : name
|
51
51
|
url = Thredded.user_path(@view_context, user)
|
52
52
|
text_node_html.gsub!(
|
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.16.
|
4
|
+
version: 0.16.9
|
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: 2019-02
|
12
|
+
date: 2019-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active_record_union
|
@@ -311,6 +311,20 @@ dependencies:
|
|
311
311
|
- - "~>"
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: '2.4'
|
314
|
+
- !ruby/object:Gem::Dependency
|
315
|
+
name: cuprite
|
316
|
+
requirement: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0.5'
|
321
|
+
type: :development
|
322
|
+
prerelease: false
|
323
|
+
version_requirements: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0.5'
|
314
328
|
- !ruby/object:Gem::Dependency
|
315
329
|
name: database_cleaner
|
316
330
|
requirement: !ruby/object:Gem::Requirement
|
@@ -409,20 +423,6 @@ dependencies:
|
|
409
423
|
- - '='
|
410
424
|
- !ruby/object:Gem::Version
|
411
425
|
version: 1.28.0
|
412
|
-
- !ruby/object:Gem::Dependency
|
413
|
-
name: selenium-webdriver
|
414
|
-
requirement: !ruby/object:Gem::Requirement
|
415
|
-
requirements:
|
416
|
-
- - ">="
|
417
|
-
- !ruby/object:Gem::Version
|
418
|
-
version: 3.5.0
|
419
|
-
type: :development
|
420
|
-
prerelease: false
|
421
|
-
version_requirements: !ruby/object:Gem::Requirement
|
422
|
-
requirements:
|
423
|
-
- - ">="
|
424
|
-
- !ruby/object:Gem::Version
|
425
|
-
version: 3.5.0
|
426
426
|
- !ruby/object:Gem::Dependency
|
427
427
|
name: simplecov
|
428
428
|
requirement: !ruby/object:Gem::Requirement
|