thredded 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b5134ae28a842aa241f4de392cd1679bb84d8d3
4
- data.tar.gz: 8481a216ec08609350f19c86d9b88a2f1560d857
3
+ metadata.gz: e0ae737f91c634807997bd570331a9e198cd6d45
4
+ data.tar.gz: 816e598eb872a77f20c595c9bfa42a84de5e9d90
5
5
  SHA512:
6
- metadata.gz: 2c039dfafa5e1b3e890694fd77581e1eb4795f3c5503c3ac4f41120e9c8398e551c04a3bde6b2d007aa2f636ca0315debeb71c91cd9e5cba61c06743de4f2199
7
- data.tar.gz: a8fac9025ad895c6003513807d4e4d246d50b4c5ae3f5f414823b69e9673ea1e4c578e362bbf2d67d6f69de9cbc76ade42d493ddae931cfc39df9cfeed518392
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
- | ![screenshot-messageboards] | ![screenshot-topics] |
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.2'
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.
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
- require_dependency 'thredded/content_formatter'
3
2
  module Thredded
4
3
  module PostCommon
5
4
  extend ActiveSupport::Concern
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require_dependency 'thredded/topics_search'
2
+ require 'thredded/topics_search'
3
3
  module Thredded
4
4
  class Topic < ActiveRecord::Base
5
5
  include TopicCommon
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require_dependency 'thredded/view_hooks/config'
3
- require_dependency 'thredded/view_hooks/renderer'
2
+ require 'thredded/view_hooks/config'
3
+ require 'thredded/view_hooks/renderer'
4
4
 
5
5
  module Thredded
6
6
  class AllViewHooks
@@ -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 'Create New Topic', class: 'thredded--form--submit' %></li>
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 %> 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 %> Sticky
9
+ <%= form.check_box :sticky %> <%= t 'thredded.topics.sticky.label' %>
10
10
  <% end %>
11
11
  </li>
12
12
  <% end %>
@@ -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
- When someone mentions you by your username (eg: @sam) in this messageboard you will follow the topic.
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:
@@ -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
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'thredded/database_seeder'
3
4
  Thredded::DatabaseSeeder.run
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 \
@@ -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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require_dependency 'thredded/search_parser'
2
+ require 'thredded/search_parser'
3
3
  module Thredded
4
4
  class TopicsSearch
5
5
  def initialize(query, scope)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Thredded
3
- VERSION = '0.8.2'
3
+ VERSION = '0.8.4'
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.8.2
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-13 00:00:00.000000000 Z
12
+ date: 2016-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pundit