thredded 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -12
  3. data/app/assets/images/thredded/follow.svg +1 -0
  4. data/app/assets/images/thredded/unfollow.svg +1 -0
  5. data/app/assets/stylesheets/thredded/_thredded.scss +27 -28
  6. data/app/assets/stylesheets/thredded/components/_alerts.scss +5 -5
  7. data/app/assets/stylesheets/thredded/components/_base.scss +5 -5
  8. data/app/assets/stylesheets/thredded/components/_currently-online.scss +1 -1
  9. data/app/assets/stylesheets/thredded/components/_empty.scss +2 -2
  10. data/app/assets/stylesheets/thredded/components/_flash-message.scss +5 -5
  11. data/app/assets/stylesheets/thredded/components/_following.scss +17 -0
  12. data/app/assets/stylesheets/thredded/components/_form-list.scss +3 -3
  13. data/app/assets/stylesheets/thredded/components/_icons.scss +1 -1
  14. data/app/assets/stylesheets/thredded/components/_main-section.scss +1 -1
  15. data/app/assets/stylesheets/thredded/components/_messageboard.scss +6 -6
  16. data/app/assets/stylesheets/thredded/components/_pagination.scss +1 -1
  17. data/app/assets/stylesheets/thredded/components/_post-form.scss +1 -1
  18. data/app/assets/stylesheets/thredded/components/_post.scss +12 -11
  19. data/app/assets/stylesheets/thredded/components/_preferences.scss +1 -1
  20. data/app/assets/stylesheets/thredded/components/_select2.scss +4 -4
  21. data/app/assets/stylesheets/thredded/components/_topic-delete.scss +4 -8
  22. data/app/assets/stylesheets/thredded/components/_topic-header.scss +25 -11
  23. data/app/assets/stylesheets/thredded/components/_topics.scss +37 -15
  24. data/app/assets/stylesheets/thredded/layout/_main-container.scss +1 -1
  25. data/app/assets/stylesheets/thredded/layout/_main-navigation.scss +2 -2
  26. data/app/assets/stylesheets/thredded/layout/_moderation.scss +16 -15
  27. data/app/assets/stylesheets/thredded/layout/_navigation.scss +6 -6
  28. data/app/assets/stylesheets/thredded/layout/_search-navigation.scss +1 -1
  29. data/app/assets/stylesheets/thredded/layout/_user-navigation.scss +13 -13
  30. data/app/assets/stylesheets/thredded/layout/_user.scss +1 -1
  31. data/app/assets/stylesheets/thredded/utilities/_is-compact.scss +1 -1
  32. data/app/assets/stylesheets/thredded/utilities/_is-expanded.scss +1 -1
  33. data/app/commands/thredded/notify_following_users.rb +1 -1
  34. data/app/controllers/thredded/messageboard_groups_controller.rb +3 -1
  35. data/app/controllers/thredded/messageboards_controller.rb +1 -3
  36. data/app/controllers/thredded/private_topics_controller.rb +1 -1
  37. data/app/controllers/thredded/topics_controller.rb +16 -9
  38. data/app/helpers/thredded/application_helper.rb +36 -0
  39. data/app/models/concerns/thredded/topic_common.rb +2 -2
  40. data/app/models/concerns/thredded/user_topic_read_state_common.rb +1 -1
  41. data/app/models/thredded/messageboard.rb +34 -7
  42. data/app/models/thredded/messageboard_group.rb +8 -1
  43. data/app/models/thredded/null_user.rb +4 -0
  44. data/app/models/thredded/post_moderation_record.rb +1 -1
  45. data/app/models/thredded/private_post.rb +5 -1
  46. data/app/models/thredded/stats.rb +1 -1
  47. data/app/models/thredded/topic.rb +5 -3
  48. data/app/models/thredded/user_detail.rb +2 -0
  49. data/app/models/thredded/user_extender.rb +4 -2
  50. data/app/models/thredded/user_topic_follow.rb +12 -1
  51. data/app/view_models/thredded/base_topic_view.rb +1 -1
  52. data/app/view_models/thredded/messageboard_group_view.rb +11 -0
  53. data/app/view_models/thredded/topic_view.rb +15 -2
  54. data/app/views/thredded/messageboards/_messageboard.html.erb +2 -2
  55. data/app/views/thredded/moderation/_post.html.erb +1 -1
  56. data/app/views/thredded/moderation/_post_moderation_record.html.erb +1 -1
  57. data/app/views/thredded/moderation/user.html.erb +1 -1
  58. data/app/views/thredded/moderation/users.html.erb +1 -1
  59. data/app/views/thredded/private_topic_mailer/message_notification.html.erb +1 -1
  60. data/app/views/thredded/private_topic_mailer/message_notification.text.erb +1 -1
  61. data/app/views/thredded/private_topics/_private_topic.html.erb +1 -1
  62. data/app/views/thredded/shared/_currently_online.html.erb +1 -1
  63. data/app/views/thredded/shared/_nav.html.erb +1 -1
  64. data/app/views/thredded/shared/_page.html.erb +2 -2
  65. data/app/views/thredded/topics/_followers.html.erb +12 -0
  66. data/app/views/thredded/topics/_header.html.erb +10 -9
  67. data/app/views/thredded/topics/_topic.html.erb +13 -2
  68. data/app/views/thredded/topics/index.html.erb +5 -0
  69. data/app/views/thredded/users/_link.html.erb +2 -2
  70. data/config/locales/en.yml +20 -18
  71. data/config/locales/pt-BR.yml +14 -9
  72. data/db/migrate/20160329231848_create_thredded.rb +4 -0
  73. data/db/upgrade_migrations/20160611094616_upgrade_v0_5_to_v0_6.rb +1 -1
  74. data/db/upgrade_migrations/20160723012349_upgrade_v0_6_to_v0_7.rb +43 -0
  75. data/lib/generators/thredded/install/templates/initializer.rb +15 -0
  76. data/lib/html/pipeline/at_mention_filter.rb +1 -1
  77. data/lib/thredded.rb +24 -0
  78. data/lib/thredded/database_seeder.rb +15 -5
  79. data/lib/thredded/version.rb +1 -1
  80. metadata +8 -9
  81. data/CHANGELOG.md +0 -399
  82. data/Procfile +0 -1
  83. data/config.ru +0 -3
  84. data/heroku.gemfile +0 -28
  85. data/heroku.gemfile.lock +0 -268
  86. data/thredded.gemspec +0 -78
data/Procfile DELETED
@@ -1 +0,0 @@
1
- web: bundle exec puma -C ./spec/dummy/config/puma.heroku.rb
data/config.ru DELETED
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
- require ::File.expand_path('../spec/dummy/config/environment', __FILE__)
3
- run Dummy::Application
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
- source 'https://rubygems.org'
3
- ruby '2.3.1'
4
-
5
- gem 'thredded', path: File.dirname(__FILE__)
6
-
7
- # Rails 5
8
- gem 'rails', '~> 5.0.0'
9
-
10
- # Make these gems available in production
11
- gem 'puma'
12
- gem 'pg'
13
- gem 'rails_email_preview', '>= 1.0.3'
14
- gem 'jquery-turbolinks'
15
- # TODO: upgrade once Turbolinks 5 is supported by jquery-turbolinks:
16
- # https://github.com/kossnocorp/jquery.turbolinks/pull/58
17
- gem 'turbolinks', '~> 2.5'
18
- gem 'rails-i18n'
19
- gem 'http_accept_language'
20
- gem 'factory_girl_rails'
21
- gem 'faker', '>= 1.6.2'
22
-
23
- # Heroku-specific gems
24
- gem 'newrelic_rpm'
25
- gem 'rollbar'
26
- gem 'therubyracer'
27
- gem 'rack-canonical-host'
28
- gem 'dalli'
@@ -1,268 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- thredded (0.6.3)
5
- active_record_union (>= 1.2.0)
6
- autoprefixer-rails
7
- autosize-rails
8
- bbcoder (~> 1.0)
9
- db_text_search (~> 0.2.0)
10
- friendly_id
11
- gemoji
12
- github-markdown
13
- html-pipeline
14
- html-pipeline-vimeo
15
- html-pipeline-youtube
16
- htmlentities
17
- inline_svg
18
- jquery-rails
19
- kaminari
20
- nokogiri
21
- pundit (>= 1.1.0)
22
- rails (>= 4.2.0)
23
- rails-timeago
24
- rb-gravatar
25
- sanitize
26
- sass (>= 3.4.21)
27
- select2-rails (~> 3.5)
28
- sprockets-es6
29
-
30
- GEM
31
- remote: https://rubygems.org/
32
- specs:
33
- actioncable (5.0.0.1)
34
- actionpack (= 5.0.0.1)
35
- nio4r (~> 1.2)
36
- websocket-driver (~> 0.6.1)
37
- actionmailer (5.0.0.1)
38
- actionpack (= 5.0.0.1)
39
- actionview (= 5.0.0.1)
40
- activejob (= 5.0.0.1)
41
- mail (~> 2.5, >= 2.5.4)
42
- rails-dom-testing (~> 2.0)
43
- actionpack (5.0.0.1)
44
- actionview (= 5.0.0.1)
45
- activesupport (= 5.0.0.1)
46
- rack (~> 2.0)
47
- rack-test (~> 0.6.3)
48
- rails-dom-testing (~> 2.0)
49
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
50
- actionview (5.0.0.1)
51
- activesupport (= 5.0.0.1)
52
- builder (~> 3.1)
53
- erubis (~> 2.7.0)
54
- rails-dom-testing (~> 2.0)
55
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
56
- active_record_union (1.2.0)
57
- activerecord (>= 4.0)
58
- activejob (5.0.0.1)
59
- activesupport (= 5.0.0.1)
60
- globalid (>= 0.3.6)
61
- activemodel (5.0.0.1)
62
- activesupport (= 5.0.0.1)
63
- activerecord (5.0.0.1)
64
- activemodel (= 5.0.0.1)
65
- activesupport (= 5.0.0.1)
66
- arel (~> 7.0)
67
- activesupport (5.0.0.1)
68
- concurrent-ruby (~> 1.0, >= 1.0.2)
69
- i18n (~> 0.7)
70
- minitest (~> 5.1)
71
- tzinfo (~> 1.1)
72
- addressable (2.4.0)
73
- arel (7.1.1)
74
- autoprefixer-rails (6.4.0.3)
75
- execjs
76
- autosize-rails (1.18.17)
77
- rails (>= 3.1)
78
- babel-source (5.8.35)
79
- babel-transpiler (0.7.0)
80
- babel-source (>= 4.0, < 6)
81
- execjs (~> 2.0)
82
- bbcoder (1.1.1)
83
- builder (3.2.2)
84
- coffee-rails (4.2.1)
85
- coffee-script (>= 2.2.0)
86
- railties (>= 4.0.0, < 5.2.x)
87
- coffee-script (2.4.1)
88
- coffee-script-source
89
- execjs
90
- coffee-script-source (1.10.0)
91
- concurrent-ruby (1.0.2)
92
- crass (1.0.2)
93
- dalli (2.7.6)
94
- db_text_search (0.2.0)
95
- activerecord (>= 4.1.15, < 6.0)
96
- erubis (2.7.0)
97
- execjs (2.7.0)
98
- factory_girl (4.7.0)
99
- activesupport (>= 3.0.0)
100
- factory_girl_rails (4.7.0)
101
- factory_girl (~> 4.7.0)
102
- railties (>= 3.0.0)
103
- faker (1.6.6)
104
- i18n (~> 0.5)
105
- friendly_id (5.1.0)
106
- activerecord (>= 4.0.0)
107
- gemoji (2.1.0)
108
- github-markdown (0.6.9)
109
- globalid (0.3.7)
110
- activesupport (>= 4.1.0)
111
- html-pipeline (2.4.2)
112
- activesupport (>= 2)
113
- nokogiri (>= 1.4)
114
- html-pipeline-vimeo (0.1.1)
115
- html-pipeline (~> 2.0)
116
- html-pipeline-youtube (0.1.3)
117
- html-pipeline (~> 2.0)
118
- htmlentities (4.3.4)
119
- http_accept_language (2.0.5)
120
- i18n (0.7.0)
121
- inline_svg (0.10.0)
122
- activesupport (>= 4.0)
123
- loofah (>= 2.0)
124
- nokogiri (~> 1.6)
125
- jquery-rails (4.2.1)
126
- rails-dom-testing (>= 1, < 3)
127
- railties (>= 4.2.0)
128
- thor (>= 0.14, < 2.0)
129
- jquery-turbolinks (2.1.0)
130
- railties (>= 3.1.0)
131
- turbolinks
132
- kaminari (0.17.0)
133
- actionpack (>= 3.0.0)
134
- activesupport (>= 3.0.0)
135
- libv8 (3.16.14.15)
136
- loofah (2.0.3)
137
- nokogiri (>= 1.5.9)
138
- mail (2.6.4)
139
- mime-types (>= 1.16, < 4)
140
- method_source (0.8.2)
141
- mime-types (3.1)
142
- mime-types-data (~> 3.2015)
143
- mime-types-data (3.2016.0521)
144
- mini_portile2 (2.1.0)
145
- minitest (5.9.0)
146
- multi_json (1.12.1)
147
- newrelic_rpm (3.16.2.321)
148
- nio4r (1.2.1)
149
- nokogiri (1.6.8)
150
- mini_portile2 (~> 2.1.0)
151
- pkg-config (~> 1.1.7)
152
- nokogumbo (1.4.9)
153
- nokogiri
154
- pg (0.18.4)
155
- pkg-config (1.1.7)
156
- puma (3.6.0)
157
- pundit (1.1.0)
158
- activesupport (>= 3.0.0)
159
- rack (2.0.1)
160
- rack-canonical-host (0.2.2)
161
- addressable (> 0, < 3)
162
- rack (>= 1.0.0, < 3)
163
- rack-test (0.6.3)
164
- rack (>= 1.0)
165
- rails (5.0.0.1)
166
- actioncable (= 5.0.0.1)
167
- actionmailer (= 5.0.0.1)
168
- actionpack (= 5.0.0.1)
169
- actionview (= 5.0.0.1)
170
- activejob (= 5.0.0.1)
171
- activemodel (= 5.0.0.1)
172
- activerecord (= 5.0.0.1)
173
- activesupport (= 5.0.0.1)
174
- bundler (>= 1.3.0, < 2.0)
175
- railties (= 5.0.0.1)
176
- sprockets-rails (>= 2.0.0)
177
- rails-dom-testing (2.0.1)
178
- activesupport (>= 4.2.0, < 6.0)
179
- nokogiri (~> 1.6.0)
180
- rails-html-sanitizer (1.0.3)
181
- loofah (~> 2.0)
182
- rails-i18n (5.0.0)
183
- i18n (~> 0.7)
184
- railties (~> 5.0)
185
- rails-timeago (2.14.0)
186
- actionpack (>= 3.1)
187
- activesupport (>= 3.1)
188
- rails_email_preview (2.0.1)
189
- rails (>= 4.2)
190
- request_store
191
- sass-rails
192
- turbolinks
193
- railties (5.0.0.1)
194
- actionpack (= 5.0.0.1)
195
- activesupport (= 5.0.0.1)
196
- method_source
197
- rake (>= 0.8.7)
198
- thor (>= 0.18.1, < 2.0)
199
- rake (11.2.2)
200
- rb-gravatar (1.0.5)
201
- ref (2.0.0)
202
- request_store (1.3.1)
203
- rollbar (2.12.0)
204
- multi_json
205
- sanitize (4.2.0)
206
- crass (~> 1.0.2)
207
- nokogiri (>= 1.4.4)
208
- nokogumbo (~> 1.4.1)
209
- sass (3.4.22)
210
- sass-rails (5.0.6)
211
- railties (>= 4.0.0, < 6)
212
- sass (~> 3.1)
213
- sprockets (>= 2.8, < 4.0)
214
- sprockets-rails (>= 2.0, < 4.0)
215
- tilt (>= 1.1, < 3)
216
- select2-rails (3.5.10)
217
- thor (~> 0.14)
218
- sprockets (3.7.0)
219
- concurrent-ruby (~> 1.0)
220
- rack (> 1, < 3)
221
- sprockets-es6 (0.9.1)
222
- babel-source (>= 5.8.11)
223
- babel-transpiler
224
- sprockets (>= 3.0.0)
225
- sprockets-rails (3.1.1)
226
- actionpack (>= 4.0)
227
- activesupport (>= 4.0)
228
- sprockets (>= 3.0.0)
229
- therubyracer (0.12.2)
230
- libv8 (~> 3.16.14.0)
231
- ref
232
- thor (0.19.1)
233
- thread_safe (0.3.5)
234
- tilt (2.0.5)
235
- turbolinks (2.5.3)
236
- coffee-rails
237
- tzinfo (1.2.2)
238
- thread_safe (~> 0.1)
239
- websocket-driver (0.6.4)
240
- websocket-extensions (>= 0.1.0)
241
- websocket-extensions (0.1.2)
242
-
243
- PLATFORMS
244
- ruby
245
-
246
- DEPENDENCIES
247
- dalli
248
- factory_girl_rails
249
- faker (>= 1.6.2)
250
- http_accept_language
251
- jquery-turbolinks
252
- newrelic_rpm
253
- pg
254
- puma
255
- rack-canonical-host
256
- rails (~> 5.0.0)
257
- rails-i18n
258
- rails_email_preview (>= 1.0.3)
259
- rollbar
260
- therubyracer
261
- thredded!
262
- turbolinks (~> 2.5)
263
-
264
- RUBY VERSION
265
- ruby 2.3.1p112
266
-
267
- BUNDLED WITH
268
- 1.12.5
@@ -1,78 +0,0 @@
1
- # frozen_string_literal: true
2
- $LOAD_PATH.push File.expand_path('../lib', __FILE__)
3
-
4
- require 'thredded/version'
5
-
6
- # Describe your gem and declare its dependencies:
7
- Gem::Specification.new do |s|
8
- s.name = 'thredded'
9
- s.version = Thredded::VERSION
10
- s.authors = ['Joel Oliveira', 'Gleb Mazovetskiy']
11
- s.email = ['joel@thredded.com', 'glex.spb@gmail.com']
12
- s.homepage = 'https://thredded.org'
13
- s.summary = 'The best Rails forums engine ever.'
14
- s.license = 'MIT'
15
- s.description = 'The best Rails 4.2+ forums engine ever. Its goal is to be as simple and feature rich as possible.
16
- Thredded works with SQLite, MySQL (v5.6.4+), and PostgreSQL. See the demo at https://thredded.org/.'
17
-
18
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|script)/|^\.}) } -
19
- %w(Dockerfile docker-compose.yml Rakefile Gemfile shared.gemfile)
20
-
21
- s.required_ruby_version = '~> 2.1'
22
-
23
- # backend
24
- s.add_dependency 'bbcoder', '~> 1.0'
25
- s.add_dependency 'pundit', '>= 1.1.0'
26
- s.add_dependency 'active_record_union', '>= 1.2.0'
27
- s.add_dependency 'db_text_search', '~> 0.2.0'
28
- s.add_dependency 'friendly_id'
29
- s.add_dependency 'html-pipeline'
30
- s.add_dependency 'html-pipeline-vimeo'
31
- s.add_dependency 'html-pipeline-youtube'
32
- s.add_dependency 'htmlentities'
33
- s.add_dependency 'kaminari'
34
- s.add_dependency 'nokogiri'
35
- s.add_dependency 'rails', '>= 4.2.0'
36
- s.add_dependency 'rb-gravatar'
37
- s.add_dependency 'inline_svg'
38
-
39
- # html-pipeline dependencies, see https://github.com/jch/html-pipeline#dependencies
40
- s.add_dependency 'gemoji'
41
- s.add_dependency 'github-markdown'
42
- s.add_dependency 'sanitize'
43
-
44
- # frontend
45
- s.add_dependency 'sass', '>= 3.4.21'
46
- s.add_dependency 'autoprefixer-rails'
47
- s.add_dependency 'rails-timeago'
48
- s.add_dependency 'select2-rails', '~> 3.5'
49
- s.add_dependency 'autosize-rails'
50
- s.add_dependency 'sprockets-es6'
51
- s.add_dependency 'jquery-rails'
52
-
53
- # test dependencies
54
- s.add_development_dependency 'capybara', '~> 2.4'
55
- s.add_development_dependency 'database_cleaner'
56
- s.add_development_dependency 'factory_girl_rails'
57
- s.add_development_dependency 'faker', '>= 1.6.2'
58
- s.add_development_dependency 'launchy'
59
- s.add_development_dependency 'rspec-rails', '>= 3.5.0'
60
- s.add_development_dependency 'rubocop', '= 0.42.0'
61
- s.add_development_dependency 'test-unit'
62
-
63
- # dummy app dependencies
64
- s.add_development_dependency 'rails-i18n'
65
- s.add_development_dependency 'http_accept_language'
66
- s.add_development_dependency 'mysql2'
67
- s.add_development_dependency 'pg'
68
- s.add_development_dependency 'sqlite3'
69
- s.add_development_dependency 'puma'
70
- s.add_development_dependency 'rails_email_preview', '>= 2.0.1'
71
- s.add_development_dependency 'i18n-tasks'
72
-
73
- # dummy app frontend
74
- s.add_development_dependency 'jquery-turbolinks'
75
- # TODO: upgrade once Turbolinks 5 is supported by jquery-turbolinks:
76
- # https://github.com/kossnocorp/jquery.turbolinks/pull/58
77
- s.add_development_dependency 'turbolinks', '~> 2.5'
78
- end