thredded 0.8.2 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -10
- data/app/models/concerns/thredded/post_common.rb +0 -1
- data/app/models/thredded/topic.rb +1 -1
- data/app/view_hooks/thredded/all_view_hooks.rb +2 -2
- data/app/views/thredded/topics/_form.html.erb +1 -1
- data/app/views/thredded/topics/_topic_form_admin_options.html.erb +2 -2
- data/config/locales/en.yml +16 -14
- data/config/locales/pt-BR.yml +5 -0
- data/db/seeds.rb +1 -0
- data/lib/thredded.rb +5 -0
- data/lib/thredded/engine.rb +0 -4
- data/lib/thredded/topics_search.rb +1 -1
- data/lib/thredded/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0ae737f91c634807997bd570331a9e198cd6d45
|
4
|
+
data.tar.gz: 816e598eb872a77f20c595c9bfa42a84de5e9d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12d028119412d16ab051683c9e0d63559e1f220f96c64b737786e8b705c756151827ac1c4416e53693e571f96026b32e6483f00c2c01b5664c8b0235aa1537de
|
7
|
+
data.tar.gz: 771a6a57fa030bbbe80d6fb552f0c7e9b974d42a8e44e9f79305d3fa082041556d00e113e8c4ca8f16f98e401f432dbc5f19796a6ab399673ff0b2af1ff3811f
|
data/README.md
CHANGED
@@ -19,15 +19,9 @@ Some of the features currently in Thredded:
|
|
19
19
|
|
20
20
|
<img src="http://emoji.fileformat.info/gemoji/point_up.png" width="24"> If you are so inclined, donating to the project will help aid in its development
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
| ![screenshot-topic] | ![screenshot-new-private-topic-dark] |
|
26
|
-
|
27
|
-
[screenshot-messageboards]: https://cloud.githubusercontent.com/assets/216339/14379803/d608d782-fd73-11e5-9d8e-1f282ea66fab.png
|
28
|
-
[screenshot-topics]: https://cloud.githubusercontent.com/assets/216339/14379804/d77db060-fd73-11e5-9a4a-9376ca409756.png
|
29
|
-
[screenshot-topic]: https://cloud.githubusercontent.com/assets/216339/14379805/d8ecf32a-fd73-11e5-8734-b7faa8b264ee.png
|
30
|
-
[screenshot-new-private-topic-dark]: https://cloud.githubusercontent.com/assets/216339/14379806/da716a1e-fd73-11e5-90f1-6dbdb708d3d5.png
|
22
|
+
| ![Messageboards (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338810/1fbc4240-abd1-11e6-9cba-4ae2e654c4d4.png) | ![Topics (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338809/1fbb7dc4-abd1-11e6-9bc3-207b94018931.png) |
|
23
|
+
|:---:|:---:|
|
24
|
+
| ![Topic on iPhone 6 (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338433/0920debc-abcf-11e6-811c-8f29d10dfed7.png) | ![Messageboard Preferences on iPhone 6 (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338432/090e9c5c-abcf-11e6-8e7e-e287d31f6a54.png) |
|
31
25
|
|
32
26
|
Thredded works with SQLite, MySQL (v5.6.4+), and PostgreSQL. Thredded has no infrastructure
|
33
27
|
dependencies other than the database and, if configured in the parent application, the ActiveJob
|
@@ -62,7 +56,7 @@ Then, see the rest of this Readme for more information about using and customizi
|
|
62
56
|
Add the gem to your Gemfile:
|
63
57
|
|
64
58
|
```ruby
|
65
|
-
gem 'thredded', '~> 0.8.
|
59
|
+
gem 'thredded', '~> 0.8.4'
|
66
60
|
```
|
67
61
|
|
68
62
|
Add the Thredded [initializer] to your parent app by running the install generator.
|
@@ -472,6 +466,16 @@ To disable moderation, e.g. if you run internal forums that do not need moderati
|
|
472
466
|
change_column_default :thredded_user_details, :moderation_state, 1 # approved
|
473
467
|
```
|
474
468
|
|
469
|
+
## Plugins
|
470
|
+
|
471
|
+
The following official plugins are available for Thredded:
|
472
|
+
|
473
|
+
* [BBCode](https://github.com/thredded/thredded-bbcode) formatting for posts, e.g. `[b]for bold[/b]`.
|
474
|
+
* [Code Syntax Highlighting](https://github.com/thredded/thredded-markdown_coderay) using Coderay.
|
475
|
+
|
476
|
+
Thredded is built for extensibility, and writing plugins for it is easy. If you plan on extending Thredded functionality
|
477
|
+
in a way others may benefit from, please consider making it a plugin.
|
478
|
+
|
475
479
|
## Development
|
476
480
|
|
477
481
|
To be more clear - this is the for when you are working on *this* gem.
|
@@ -25,6 +25,6 @@
|
|
25
25
|
content_label: t('thredded.topics.form.content_label') %>
|
26
26
|
<%= render 'thredded/topics/topic_form_admin_options', form: form %>
|
27
27
|
|
28
|
-
<li><%= form.submit '
|
28
|
+
<li><%= form.submit t('thredded.topics.form.create_btn'), class: 'thredded--form--submit' %></li>
|
29
29
|
</ul>
|
30
30
|
<% end %>
|
@@ -2,11 +2,11 @@
|
|
2
2
|
<% if policy(topic).moderate? %>
|
3
3
|
<li class="thredded--form-list--admin-options">
|
4
4
|
<%= form.label :locked do %>
|
5
|
-
<%= form.check_box :locked %>
|
5
|
+
<%= form.check_box :locked %> <%= t 'thredded.topics.locked.label' %>
|
6
6
|
<% end %>
|
7
7
|
|
8
8
|
<%= form.label :sticky do %>
|
9
|
-
<%= form.check_box :sticky %>
|
9
|
+
<%= form.check_box :sticky %> <%= t 'thredded.topics.sticky.label' %>
|
10
10
|
<% end %>
|
11
11
|
</li>
|
12
12
|
<% end %>
|
data/config/locales/en.yml
CHANGED
@@ -71,24 +71,21 @@ en:
|
|
71
71
|
edit:
|
72
72
|
page_title: :thredded.nav.settings
|
73
73
|
form:
|
74
|
+
follow_topics_on_mention:
|
75
|
+
hint: 'When someone mentions you by your username (eg: @sam) you will follow the topic.'
|
76
|
+
label: Follow topics you are mentioned in
|
77
|
+
followed_topic_emails:
|
78
|
+
hint: When there is a post in a topic you follow you will receive an email.
|
79
|
+
label: Email notifications for followed topics
|
74
80
|
global_preferences_label: Global Settings
|
75
81
|
messageboard_follow_topics_on_mention:
|
76
|
-
hint:
|
77
|
-
|
82
|
+
hint: 'When someone mentions you by your username (eg: @sam) in this messageboard you will follow the
|
83
|
+
topic.'
|
78
84
|
label: :thredded.preferences.form.follow_topics_on_mention.label
|
79
85
|
messageboard_followed_topic_emails:
|
80
|
-
hint:
|
81
|
-
When there is a post in a topic you follow on this messageboard you will be sent an email.
|
82
|
-
label: Email notifications for followed topics
|
83
|
-
followed_topic_emails:
|
84
|
-
hint: >-
|
85
|
-
When there is a post in a topic you follow you will receive an email.
|
86
|
+
hint: When there is a post in a topic you follow on this messageboard you will be sent an email.
|
86
87
|
label: Email notifications for followed topics
|
87
88
|
messageboard_preferences_label_html: Notification Settings for <em>%{messageboard}</em>
|
88
|
-
follow_topics_on_mention:
|
89
|
-
hint: >-
|
90
|
-
When someone mentions you by your username (eg: @sam) you will follow the topic.
|
91
|
-
label: Follow topics you are mentioned in
|
92
89
|
notify_on_message:
|
93
90
|
hint: When you are added to a private conversation you will receive an email with its content.
|
94
91
|
label: Email notifications for private messages
|
@@ -127,11 +124,10 @@ en:
|
|
127
124
|
delete_topic: Delete Topic
|
128
125
|
deleted_notice: Topic deleted
|
129
126
|
edit: Edit Topic
|
127
|
+
follow: Follow this topic
|
130
128
|
followed_by: 'Followed by:'
|
131
129
|
followed_by_noone: No one is following this topic
|
132
130
|
followed_notice: You are now following this topic
|
133
|
-
follow: Follow this topic
|
134
|
-
unfollow: Stop following
|
135
131
|
following:
|
136
132
|
manual: You are following this topic.
|
137
133
|
mentioned: You are following this topic because you were mentioned on it.
|
@@ -139,16 +135,22 @@ en:
|
|
139
135
|
form:
|
140
136
|
categories_placeholder: Categories
|
141
137
|
content_label: :thredded.posts.form.content_label
|
138
|
+
create_btn: Create New Topic
|
142
139
|
title_label: Title
|
143
140
|
title_placeholder: :thredded.topics.form.title_label
|
144
141
|
title_placeholder_start: Start a New Topic
|
145
142
|
update_btn: Update Topic
|
143
|
+
locked:
|
144
|
+
label: Locked
|
146
145
|
not_following: You are not following this topic.
|
147
146
|
search:
|
148
147
|
no_results_message: There are no results for your search - %{query}
|
149
148
|
page_title: Topics Search Results
|
150
149
|
results_message: Search Results for %{query}
|
151
150
|
started_by_html: Started %{time_ago} by %{user}
|
151
|
+
sticky:
|
152
|
+
label: Sticky
|
153
|
+
unfollow: Stop following
|
152
154
|
unfollowed_notice: You are no longer following this topic
|
153
155
|
updated_notice: Topic updated
|
154
156
|
users:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -139,16 +139,21 @@ pt-BR:
|
|
139
139
|
form:
|
140
140
|
categories_placeholder: Categorias
|
141
141
|
content_label: :thredded.posts.form.content_label
|
142
|
+
create_btn: Criar Novo Tópico
|
142
143
|
title_label: Título
|
143
144
|
title_placeholder: :thredded.topics.form.title_label
|
144
145
|
title_placeholder_start: Iniciar um novo tópico
|
145
146
|
update_btn: Atualizar Tópico
|
147
|
+
locked:
|
148
|
+
label: Trancado
|
146
149
|
not_following: Você não está seguindo este tema.
|
147
150
|
search:
|
148
151
|
no_results_message: Nenhum resultado encontrado para sua busca - %{query}
|
149
152
|
page_title: Tópicos dos Resultados da Busca
|
150
153
|
results_message: Resultados de Busca para %{query}
|
151
154
|
started_by_html: Iniciado %{time_ago} por %{user}
|
155
|
+
sticky:
|
156
|
+
label: Pegajoso
|
152
157
|
unfollow: Pare de seguir
|
153
158
|
unfollowed_notice: Você não está mais seguindo este tópico
|
154
159
|
updated_notice: Tópico atualizado
|
data/db/seeds.rb
CHANGED
data/lib/thredded.rb
CHANGED
@@ -28,7 +28,12 @@ require 'rails-timeago'
|
|
28
28
|
require 'select2-rails'
|
29
29
|
require 'sprockets/es6'
|
30
30
|
|
31
|
+
require 'thredded/version'
|
31
32
|
require 'thredded/engine'
|
33
|
+
require 'thredded/errors'
|
34
|
+
|
35
|
+
# Require Thredded::ContentFormatter explicitly so that it doesn't need to be required if used in the initializer.
|
36
|
+
require 'thredded/content_formatter'
|
32
37
|
|
33
38
|
module Thredded
|
34
39
|
mattr_accessor \
|
data/lib/thredded/engine.rb
CHANGED
@@ -3,10 +3,6 @@ module Thredded
|
|
3
3
|
class Engine < ::Rails::Engine
|
4
4
|
isolate_namespace Thredded
|
5
5
|
|
6
|
-
%w(app/view_hooks app/view_models app/forms app/commands app/jobs lib).each do |path|
|
7
|
-
config.autoload_paths << File.expand_path("../../#{path}", File.dirname(__FILE__))
|
8
|
-
end
|
9
|
-
|
10
6
|
config.generators do |g|
|
11
7
|
g.test_framework :rspec, fixture: true
|
12
8
|
g.fixture_replacement :factory_girl, dir: 'spec/factories'
|
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.8.
|
4
|
+
version: 0.8.4
|
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-
|
12
|
+
date: 2016-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pundit
|