thredded 0.3.0 → 0.3.1

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: 2c6816b0184d085f43b52bbccd55cb54423d3533
4
- data.tar.gz: 8a454d07c634eb9fa25836a8722c4a340b1a078d
3
+ metadata.gz: 6b5574ac2e8dfa7854f79cc64d96192b8b0d071a
4
+ data.tar.gz: ae647c742cf56c13d5f6e65c600adef8dc7da725
5
5
  SHA512:
6
- metadata.gz: b81ea1816ea5cf2d24b45636336bd47565e7dd7197ed89f365ae845502b5050784b8ff02506ad6cc4a678fd2bf3c214cd689387233aa98aa575110a856a026f8
7
- data.tar.gz: f5ff0cfccb540a68da5670085b0f380b988edc37b05aee2f3fc35099ff123cca1f88ea67dd91db391f77fc62bc938fa08851b9317ac6ce3e176d65b64a5541ce
6
+ metadata.gz: e4a92b070aab8d1eadec6c02ca96b6b579ff5fdc801824af5272d774bdd9c128d15e5884aedbe695b0602d1da110df0490ab9e2411b7fc6a46c36ea6d1d1a3e8
7
+ data.tar.gz: 3fcb63ce387ecbf395617425197d41bf37432a915a9582d96f7a9c33ad2d2d4faa263243e7a79daa3c7efbd6494fa010ff27766d8ff9993e2f91c2588dc2d184
data/CHANGELOG.mkdn CHANGED
@@ -1,17 +1,17 @@
1
- # MASTER
1
+ # 0.3.1 - 2016-05-01
2
2
 
3
3
  ## Fixed
4
4
 
5
- * TBD
5
+ * Mobile Safari navigation UI bug. [#265](https://github.com/thredded/thredded/issues/265)
6
+ * iframe security vulnerability. [04fa108a7](https://github.com/thredded/thredded/commit/04fa108a7da177ee25c7d215f4c43dab2875a0c1)
7
+ * Markdown blockquotes. [#259](https://github.com/thredded/thredded/pull/259)
8
+ * Read state tracking timestamp issue. [2c85076ba](https://github.com/thredded/thredded/commit/2c85076ba1034a3664abc887f89b22e67405564d)
9
+ * Search input styles in various OS/Browser combinations.
10
+ * (Private)Topic read permission denied error. [#269](https://github.com/thredded/thredded/issues/269)
6
11
 
7
12
  ## Added
8
13
 
9
- * TBD
10
-
11
- ## Changed
12
-
13
- * TBD
14
-
14
+ * Brazilian Portuguese translation. [#264](https://github.com/thredded/thredded/pull/264).
15
15
 
16
16
  # 0.3.0 - 2016-04-22
17
17
 
data/README.mkdn CHANGED
@@ -29,7 +29,7 @@ Planned features:
29
29
 
30
30
  [screenshot-messageboards]: https://cloud.githubusercontent.com/assets/216339/14379803/d608d782-fd73-11e5-9d8e-1f282ea66fab.png
31
31
  [screenshot-topics]: https://cloud.githubusercontent.com/assets/216339/14379804/d77db060-fd73-11e5-9a4a-9376ca409756.png
32
- [screenshot-topic]: https://cloud.githubusercontent.com/assets/216339/14379805/d8ecf32a-fd73-11e5-8734-b7faa8b264ee.png
32
+ [screenshot-topic]: https://cloud.githubusercontent.com/assets/216339/14379805/d8ecf32a-fd73-11e5-8734-b7faa8b264ee.png
33
33
  [screenshot-new-private-topic-dark]: https://cloud.githubusercontent.com/assets/216339/14379806/da716a1e-fd73-11e5-90f1-6dbdb708d3d5.png
34
34
 
35
35
  Thredded works with SQLite, MySQL (v5.6.4+), and PostgreSQL. Thredded has no infrastructure
@@ -48,7 +48,7 @@ while Discourse is a full app.
48
48
  Add the gem to your Gemfile:
49
49
 
50
50
  ```ruby
51
- gem 'thredded', github: 'thredded/thredded'
51
+ gem 'thredded', '~> 0.3.1'
52
52
  ```
53
53
 
54
54
  Add the Thredded [initializer] to your parent app by running the install generator.
@@ -127,7 +127,7 @@ $thredded-brand: #9c27b0;
127
127
  @import "thredded";
128
128
  ```
129
129
 
130
- The `@import "thredded"` directive above will import thredded styles and the [dependencies][thredded-scss-dependencies]
130
+ The `@import "thredded"` directive above will import thredded styles and the [dependencies][thredded-scss-dependencies]
131
131
  (currently just "select2" from [select2-rails]). If you already include your own styles for any of thredded
132
132
  dependencies, you can import just the thredded styles alone like this:
133
133
 
@@ -306,23 +306,14 @@ Below is an overview of the default permissions, with links to the implementatio
306
306
  </tbody>
307
307
  </table>
308
308
 
309
- ### Handling "Permission denied"
309
+ ### Handling "Permission denied" and "Not found" errors
310
310
 
311
- Thredded defines a number of Exception classes that you can [`rescue_from`][rescue_from] in your `ApplicationController`
312
- to handle permission denied errors.
311
+ Thredded defines a number of Exception classes for not found / permission denied errors.
312
+ The complete list can be found [here](https://github.com/thredded/thredded/blob/master/app/controllers/thredded/application_controller.rb#L18-L40).
313
313
 
314
- These are:
315
-
316
- * `Thredded::Errors::MessageboardNotFound`.
317
- * `Thredded::Errors::MessageboardReadDenied`.
318
- * `Thredded::Errors::TopicCreateDenied`.
319
- * `Thredded::Errors::MessageboardCreateDenied`.
320
- * `Thredded::Errors::PrivateTopicCreateDenied`.
321
- * `CanCan::AccessDenied` - all the other errors.
322
-
323
- Currently, the default behaviour is to redirect to the forums root page with a flash alert.
324
-
325
- [rescue_from]: http://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html
314
+ Currently, the default behaviour is to render an error message with an appropriate response code within the Thredded
315
+ layout. You may want to override the handling for `Thredded::Errors::LoginRequired` to render a login form instead.
316
+ For an example of how to do this, see the initializer.
326
317
 
327
318
  ## Development
328
319
 
@@ -43,7 +43,6 @@
43
43
  a {
44
44
  display: block;
45
45
  padding: ($thredded-small-spacing / 2) 0 ($thredded-small-spacing / 2) 0;
46
- font-size: 0;
47
46
  }
48
47
  .thredded--icon {
49
48
  display: block;
@@ -51,6 +50,9 @@
51
50
  height: 2rem;
52
51
  }
53
52
  }
53
+ .thredded--nav-text {
54
+ display: none;
55
+ }
54
56
  &--settings {
55
57
  @extend %icon-nav-item;
56
58
  right: 2.6rem;
@@ -15,26 +15,33 @@
15
15
 
16
16
  input[type="search"] {
17
17
  box-shadow: none;
18
- transition: all 0.15s ease-out 0s;
19
18
  width: 100%;
20
19
 
21
20
  @include thredded-media-tablet-and-up {
21
+ $padding-x: 0.75rem;
22
22
  background: transparent;
23
23
  border-color: transparent;
24
24
  font-size: $thredded-font-size-small;
25
+ line-height: 1rem;
25
26
  min-width: 12.8125rem;
26
- margin-right: -$thredded-base-spacing;
27
27
  text-align: right;
28
28
  width: auto;
29
- padding: 0.90625rem 0.75rem 0.8125rem 0.75rem;
29
+ padding: 0.90625rem $padding-x 0.8125rem $padding-x;
30
+ margin-right: -($padding-x);
31
+ // Webkit adds an extra padding that we need to remove.
32
+ -webkit-margin-end: -($padding-x + 0.75rem);
33
+
34
+ &, &:focus {
35
+ transition: background, border-color, box-shadow, min-width 0.15s ease-out 0s;
36
+ }
30
37
 
31
38
  &:focus {
32
39
  background: $thredded-background-color;
33
40
  box-shadow: none;
34
- min-width: 290px;
35
- text-align: left;
36
- transition: all 0.15s ease-out 0s;
37
41
  margin-right: 0;
42
+ -webkit-margin-end: 0;
43
+ min-width: 18rem;
44
+ text-align: left;
38
45
  }
39
46
 
40
47
  &:hover {
@@ -44,13 +51,16 @@
44
51
 
45
52
  &::placeholder {
46
53
  color: $thredded-secondary-nav-color;
54
+ transition: $thredded-action-transition;
55
+ // Firefox applies default opacity of 0.54, while all the other browsers use 1.
56
+ // See https://bugzilla.mozilla.org/show_bug.cgi?id=556145
57
+ opacity: 1;
47
58
  }
48
59
 
49
60
  &:hover:not(:focus) {
50
61
  cursor: pointer;
51
62
  &::placeholder {
52
63
  color: $thredded-nav-hover-color;
53
- transition: color 0.1s linear;
54
64
  }
55
65
  }
56
66
 
@@ -21,7 +21,7 @@ module Thredded
21
21
  end
22
22
 
23
23
  def show
24
- authorize_reading private_topic
24
+ authorize private_topic, :read?
25
25
 
26
26
  page_scope = private_topic
27
27
  .posts
@@ -22,7 +22,7 @@ module Thredded
22
22
  end
23
23
 
24
24
  def show
25
- authorize_reading topic
25
+ authorize topic, :read?
26
26
  page_scope = topic.posts
27
27
  .includes(:user, :messageboard, :postable)
28
28
  .order_oldest_first
@@ -31,7 +31,7 @@ module Thredded
31
31
  add_attributes: {
32
32
  'iframe' => {
33
33
  'seamless' => 'seamless',
34
- 'sandbox' => 'allow-same-origin allow-forms allow-scripts'
34
+ 'sandbox' => 'allow-forms allow-scripts'
35
35
  }
36
36
  }
37
37
  ).freeze
@@ -9,7 +9,7 @@ module Thredded
9
9
 
10
10
  # @return [Boolean]
11
11
  def read?
12
- postable.updated_at <= read_at
12
+ postable.updated_at.to_i <= read_at.to_i
13
13
  end
14
14
 
15
15
  module ClassMethods
@@ -55,7 +55,7 @@ module Thredded
55
55
  end
56
56
 
57
57
  def should_generate_new_friendly_id?
58
- slug.blank? || title_changed? || super
58
+ title_changed?
59
59
  end
60
60
 
61
61
  private
@@ -65,7 +65,7 @@ module Thredded
65
65
  end
66
66
 
67
67
  def should_generate_new_friendly_id?
68
- slug.blank? || title_changed? || super
68
+ title_changed?
69
69
  end
70
70
 
71
71
  private
@@ -1,6 +1,6 @@
1
1
  <li class="thredded--user-navigation--settings thredded--user-navigation--item">
2
2
  <%= link_to edit_preferences_path(messageboard) do %>
3
- <%= inline_svg 'thredded/settings.svg', class: 'thredded--icon' %>
4
- <%= t('thredded.nav.settings') %>
3
+ <%= inline_svg 'thredded/settings.svg', class: 'thredded--icon', title: t('thredded.nav.settings') %>
4
+ <span class="thredded--nav-text"><%= t('thredded.nav.settings') %></span>
5
5
  <% end %>
6
6
  </li>
@@ -1,11 +1,12 @@
1
1
  <li class="thredded--user-navigation--item thredded--user-navigation--private-topics">
2
- <%= link_to private_topics_path do %>
3
- <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon' %>
4
- <%= t('thredded.nav.private_topics') %>
2
+ <%= link_to private_topics_path, rel: 'nofollow' do %>
3
+ <%= inline_svg 'thredded/private-messages.svg',
4
+ class: 'thredded--icon',
5
+ title: safe_join([t('thredded.nav.private_topics'),
6
+ (unread_private_topics_count if unread_private_topics_count > 0)].compact, ' ') %>
7
+ <span class="thredded--nav-text"><%= t('thredded.nav.private_topics') %></span>
5
8
  <% if unread_private_topics_count > 0 -%>
6
- <span class="thredded--user-navigation--private-topics--unread">
7
- <%= unread_private_topics_count %>
8
- </span>
9
+ <span class="thredded--user-navigation--private-topics--unread"><%= unread_private_topics_count %></span>
9
10
  <% end -%>
10
11
  <% end -%>
11
12
  </li>
@@ -0,0 +1,90 @@
1
+ ---
2
+ pt-BR:
3
+ thredded:
4
+ errors:
5
+ login_required: Por favor, autentique-se primeiro.
6
+ not_authorized: Você não está autorizado a acessar esta página.
7
+ private_topic_create_denied: Você não está autorizado a criar tópicos privados.
8
+ private_topic_not_found: Este tópico privado não existe.
9
+ messageboard:
10
+ last_updated_by_html: Atualizado %{time_ago} <cite>por %{user}</cite>
11
+ topics_and_posts_counts: "%{topics_count} tópicos / %{posts_count} posts"
12
+ nav:
13
+ all_messageboards: Todos os Fóruns de Mensagens
14
+ edit_post: Editar Post
15
+ edit_private_topic: :thredded.nav.edit_topic
16
+ edit_topic: Editar
17
+ private_topics: Mensagens Privadas
18
+ settings: Configurações de Notificação
19
+ posts:
20
+ delete: Remover Post
21
+ delete_confirm: Você tem certeza que deseja remover este post?
22
+ deleted_notice: Seu post foi removido.
23
+ edit: :thredded.nav.edit_post
24
+ form:
25
+ content_label: Conteúdo
26
+ create_btn: Enviar Resposta
27
+ update_btn: Atualizar Post
28
+ preferences:
29
+ edit:
30
+ page_title: :thredded.nav.settings
31
+ form:
32
+ global_preferences_label: Configurações Globais
33
+ messageboard_notify_on_mention:
34
+ hint: >-
35
+ Quando alguém mencionar você através do seu usuário (ex.: @sam) neste fórum de mensagens, você irá
36
+ receber um e-mail com o conteúdo deste post.
37
+ label: :thredded.preferences.form.notify_on_mention.label
38
+ messageboard_preferences_label_html: Configurações de Notificação para <em>%{messageboard}</em>
39
+ notify_on_mention:
40
+ hint: >-
41
+ Quando alguém mencionar você através do seu usuário (ex.: @sam) você irá receber um e-mail com o conteúdo
42
+ deste post.
43
+ label: "@ Notificações"
44
+ notify_on_message:
45
+ hint: Quando você for adicionado a uma conversa privada, você receberá um e-mail com o conteúdo desta conversa.
46
+ label: Notificação de Mensagens Privadas
47
+ submit_btn: Atualizar Configurações
48
+ title: Configurações
49
+ updated_notice: Suas configurações foram atualizadas.
50
+ private_posts:
51
+ form:
52
+ content_label: Mensagem
53
+ create_btn: Enviar Mensagem
54
+ private_topics:
55
+ edit: Editar
56
+ errors:
57
+ user_ids_length: Por favor, especifique pelo menos mais um usuário.
58
+ form:
59
+ content_label: :thredded.private_posts.form.content_label
60
+ create_btn: :thredded.private_posts.form.create_btn
61
+ title_label: :thredded.topics.form.title_label
62
+ title_placeholder_new: Escreva o assunto desta conversa
63
+ title_placeholder_start: Iniciar uma nova conversa
64
+ update_btn: Atualizar
65
+ users_label: Participantes
66
+ users_placeholder: Selecione usuários para participar desta conversa
67
+ no_private_topics:
68
+ create_btn: Inicie sua primeira conversa privada
69
+ title: Você não possui mensagens privadas.
70
+ updated_notice: Título atualizado
71
+ search:
72
+ form:
73
+ btn_submit: :thredded.search.form.label
74
+ label: Buscar
75
+ placeholder: Buscar Tópicos e Posts
76
+ topics:
77
+ deleted_notice: Tópico removido
78
+ edit: Editar Tópico
79
+ form:
80
+ categories_placeholder: Categorias
81
+ content_label: :thredded.posts.form.content_label
82
+ title_label: Título
83
+ title_placeholder: :thredded.topics.form.title_label
84
+ update_btn: Atualizar Tópico
85
+ search:
86
+ no_results_message: Nenhum resultado encontrado para sua busca - %{query}
87
+ page_title: Tópicos dos Resultados da Busca
88
+ results_message: Resultados de Busca para %{query}
89
+ started_by_html: Iniciado %{time_ago} por %{user}
90
+ updated_notice: Tópico atualizado
data/heroku.gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
  source 'https://rubygems.org'
3
- ruby '2.3.0'
3
+ ruby '2.3.1'
4
4
 
5
5
  gem 'thredded', path: File.dirname(__FILE__)
6
6
 
7
7
  # Rails 5
8
- gem 'rails', git: 'https://github.com/rails/rails'
8
+ gem 'rails', '~> 5.0.0.beta4'
9
9
  gem 'kaminari', git: 'https://github.com/amatsuda/kaminari'
10
10
  gem 'active_record_union', git: 'https://github.com/glebm/active_record_union', branch: 'rails-5-test-harness'
11
11
 
data/heroku.gemfile.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: https://github.com/amatsuda/kaminari
3
- revision: 772de7ccea717ad74524163fa6ae9601efc87c2f
3
+ revision: 0e21d52feca1f79a9aca83613cf053eb5273827e
4
4
  specs:
5
5
  kaminari (1.0.0.alpha)
6
6
  actionpack (>= 3.0.0)
@@ -14,70 +14,10 @@ GIT
14
14
  active_record_union (1.1.1)
15
15
  activerecord (>= 4.0)
16
16
 
17
- GIT
18
- remote: https://github.com/rails/rails
19
- revision: 597fa0b42f90bbef6a8c7628d4e08fb132fba887
20
- specs:
21
- actioncable (5.0.0.beta3)
22
- actionpack (= 5.0.0.beta3)
23
- nio4r (~> 1.2)
24
- websocket-driver (~> 0.6.1)
25
- actionmailer (5.0.0.beta3)
26
- actionpack (= 5.0.0.beta3)
27
- actionview (= 5.0.0.beta3)
28
- activejob (= 5.0.0.beta3)
29
- mail (~> 2.5, >= 2.5.4)
30
- rails-dom-testing (~> 1.0, >= 1.0.5)
31
- actionpack (5.0.0.beta3)
32
- actionview (= 5.0.0.beta3)
33
- activesupport (= 5.0.0.beta3)
34
- rack (~> 2.x)
35
- rack-test (~> 0.6.3)
36
- rails-dom-testing (~> 1.0, >= 1.0.5)
37
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
38
- actionview (5.0.0.beta3)
39
- activesupport (= 5.0.0.beta3)
40
- builder (~> 3.1)
41
- erubis (~> 2.7.0)
42
- rails-dom-testing (~> 1.0, >= 1.0.5)
43
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
44
- activejob (5.0.0.beta3)
45
- activesupport (= 5.0.0.beta3)
46
- globalid (>= 0.3.6)
47
- activemodel (5.0.0.beta3)
48
- activesupport (= 5.0.0.beta3)
49
- activerecord (5.0.0.beta3)
50
- activemodel (= 5.0.0.beta3)
51
- activesupport (= 5.0.0.beta3)
52
- arel (~> 7.0)
53
- activesupport (5.0.0.beta3)
54
- concurrent-ruby (~> 1.0)
55
- i18n (~> 0.7)
56
- minitest (~> 5.1)
57
- tzinfo (~> 1.1)
58
- rails (5.0.0.beta3)
59
- actioncable (= 5.0.0.beta3)
60
- actionmailer (= 5.0.0.beta3)
61
- actionpack (= 5.0.0.beta3)
62
- actionview (= 5.0.0.beta3)
63
- activejob (= 5.0.0.beta3)
64
- activemodel (= 5.0.0.beta3)
65
- activerecord (= 5.0.0.beta3)
66
- activesupport (= 5.0.0.beta3)
67
- bundler (>= 1.3.0, < 2.0)
68
- railties (= 5.0.0.beta3)
69
- sprockets-rails (>= 2.0.0)
70
- railties (5.0.0.beta3)
71
- actionpack (= 5.0.0.beta3)
72
- activesupport (= 5.0.0.beta3)
73
- method_source
74
- rake (>= 0.8.7)
75
- thor (>= 0.18.1, < 2.0)
76
-
77
17
  PATH
78
18
  remote: .
79
19
  specs:
80
- thredded (0.2.2)
20
+ thredded (0.3.0)
81
21
  active_record_union (>= 1.1.1)
82
22
  autoprefixer-rails
83
23
  autosize-rails
@@ -107,6 +47,43 @@ PATH
107
47
  GEM
108
48
  remote: https://rubygems.org/
109
49
  specs:
50
+ actioncable (5.0.0.beta4)
51
+ actionpack (= 5.0.0.beta4)
52
+ nio4r (~> 1.2)
53
+ websocket-driver (~> 0.6.1)
54
+ actionmailer (5.0.0.beta4)
55
+ actionpack (= 5.0.0.beta4)
56
+ actionview (= 5.0.0.beta4)
57
+ activejob (= 5.0.0.beta4)
58
+ mail (~> 2.5, >= 2.5.4)
59
+ rails-dom-testing (~> 1.0, >= 1.0.5)
60
+ actionpack (5.0.0.beta4)
61
+ actionview (= 5.0.0.beta4)
62
+ activesupport (= 5.0.0.beta4)
63
+ rack (~> 2.x)
64
+ rack-test (~> 0.6.3)
65
+ rails-dom-testing (~> 1.0, >= 1.0.5)
66
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
67
+ actionview (5.0.0.beta4)
68
+ activesupport (= 5.0.0.beta4)
69
+ builder (~> 3.1)
70
+ erubis (~> 2.7.0)
71
+ rails-dom-testing (~> 1.0, >= 1.0.5)
72
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
73
+ activejob (5.0.0.beta4)
74
+ activesupport (= 5.0.0.beta4)
75
+ globalid (>= 0.3.6)
76
+ activemodel (5.0.0.beta4)
77
+ activesupport (= 5.0.0.beta4)
78
+ activerecord (5.0.0.beta4)
79
+ activemodel (= 5.0.0.beta4)
80
+ activesupport (= 5.0.0.beta4)
81
+ arel (~> 7.0)
82
+ activesupport (5.0.0.beta4)
83
+ concurrent-ruby (~> 1.0)
84
+ i18n (~> 0.7)
85
+ minitest (~> 5.1)
86
+ tzinfo (~> 1.1)
110
87
  addressable (2.4.0)
111
88
  arel (7.0.0)
112
89
  autoprefixer-rails (6.3.6)
@@ -155,7 +132,7 @@ GEM
155
132
  html-pipeline (~> 2.0)
156
133
  htmlentities (4.3.4)
157
134
  i18n (0.7.0)
158
- inline_svg (0.6.3)
135
+ inline_svg (0.6.4)
159
136
  activesupport (>= 4.0.4)
160
137
  loofah (>= 2.0)
161
138
  nokogiri (~> 1.6)
@@ -167,7 +144,7 @@ GEM
167
144
  railties (>= 3.1.0)
168
145
  turbolinks
169
146
  json (1.8.3)
170
- libv8 (3.16.14.13)
147
+ libv8 (3.16.14.15)
171
148
  loofah (2.0.3)
172
149
  nokogiri (>= 1.5.9)
173
150
  mail (2.6.4)
@@ -178,8 +155,8 @@ GEM
178
155
  mime-types-data (3.2016.0221)
179
156
  mini_portile2 (2.0.0)
180
157
  minitest (5.8.4)
181
- multi_json (1.11.2)
182
- newrelic_rpm (3.15.1.316)
158
+ multi_json (1.11.3)
159
+ newrelic_rpm (3.15.2.317)
183
160
  nio4r (1.2.1)
184
161
  nokogiri (1.6.7.2)
185
162
  mini_portile2 (~> 2.0.0.rc2)
@@ -196,6 +173,18 @@ GEM
196
173
  rack (>= 1.0.0, < 3)
197
174
  rack-test (0.6.3)
198
175
  rack (>= 1.0)
176
+ rails (5.0.0.beta4)
177
+ actioncable (= 5.0.0.beta4)
178
+ actionmailer (= 5.0.0.beta4)
179
+ actionpack (= 5.0.0.beta4)
180
+ actionview (= 5.0.0.beta4)
181
+ activejob (= 5.0.0.beta4)
182
+ activemodel (= 5.0.0.beta4)
183
+ activerecord (= 5.0.0.beta4)
184
+ activesupport (= 5.0.0.beta4)
185
+ bundler (>= 1.3.0, < 2.0)
186
+ railties (= 5.0.0.beta4)
187
+ sprockets-rails (>= 2.0.0)
199
188
  rails-deprecated_sanitizer (1.0.3)
200
189
  activesupport (>= 4.2.0.alpha)
201
190
  rails-dom-testing (1.0.7)
@@ -212,12 +201,18 @@ GEM
212
201
  request_store
213
202
  sass-rails
214
203
  turbolinks
204
+ railties (5.0.0.beta4)
205
+ actionpack (= 5.0.0.beta4)
206
+ activesupport (= 5.0.0.beta4)
207
+ method_source
208
+ rake (>= 0.8.7)
209
+ thor (>= 0.18.1, < 2.0)
215
210
  rake (11.1.2)
216
211
  rb-gravatar (1.0.5)
217
212
  ref (2.0.0)
218
213
  request_store (1.3.1)
219
214
  rinku (1.7.3)
220
- rollbar (2.9.1)
215
+ rollbar (2.10.0)
221
216
  multi_json
222
217
  sanitize (4.0.1)
223
218
  crass (~> 1.0.2)
@@ -271,12 +266,15 @@ DEPENDENCIES
271
266
  pg
272
267
  puma
273
268
  rack-canonical-host
274
- rails!
269
+ rails (~> 5.0.0.beta4)
275
270
  rails_email_preview (>= 1.0.3)
276
271
  rollbar
277
272
  therubyracer
278
273
  thredded!
279
274
  turbolinks
280
275
 
276
+ RUBY VERSION
277
+ ruby 2.3.1p112
278
+
281
279
  BUNDLED WITH
282
- 1.11.2
280
+ 1.12.0
@@ -11,6 +11,7 @@ module HTML
11
11
  def call
12
12
  html = BBCoder.new(@text).to_html
13
13
  html = remove_url_link_contents(html)
14
+ html = preserve_mkdn_comments(html)
14
15
  html.delete('<br>')
15
16
  html.rstrip!
16
17
  html
@@ -23,6 +24,10 @@ module HTML
23
24
  end
24
25
  doc.to_html
25
26
  end
27
+
28
+ def preserve_mkdn_comments(html)
29
+ html.gsub(/^&gt; /, '> ')
30
+ end
26
31
  end
27
32
  end
28
33
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Thredded
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
data/thredded.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.homepage = 'https://www.thredded.com'
13
13
  s.summary = 'A messageboard engine'
14
14
  s.license = 'MIT'
15
- s.description = 'A messageboard engine for Rails 4.1+ apps'
15
+ s.description = 'A messageboard engine for Rails 4.2+ apps'
16
16
 
17
17
  s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|script)/|^\.}) } -
18
18
  %w(Dockerfile docker-compose.yml Rakefile Gemfile shared.gemfile)
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.3.0
4
+ version: 0.3.1
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-04-22 00:00:00.000000000 Z
12
+ date: 2016-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bbcoder
@@ -585,7 +585,7 @@ dependencies:
585
585
  - - ">="
586
586
  - !ruby/object:Gem::Version
587
587
  version: '0'
588
- description: A messageboard engine for Rails 4.1+ apps
588
+ description: A messageboard engine for Rails 4.2+ apps
589
589
  email:
590
590
  - joel@thredded.com
591
591
  - glex.spb@gmail.com
@@ -789,6 +789,7 @@ files:
789
789
  - config.ru
790
790
  - config/i18n-tasks.yml
791
791
  - config/locales/en.yml
792
+ - config/locales/pt-BR.yml
792
793
  - config/routes.rb
793
794
  - db/migrate/20160329231848_create_thredded.rb
794
795
  - db/seeds.rb
@@ -830,7 +831,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
830
831
  version: '0'
831
832
  requirements: []
832
833
  rubyforge_project:
833
- rubygems_version: 2.5.1
834
+ rubygems_version: 2.6.4
834
835
  signing_key:
835
836
  specification_version: 4
836
837
  summary: A messageboard engine