simple_discussion 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 8eb44f9da87f2a9e1cbf3ad42d69c10f4b010a3b6f09dd9dca27ce224aa1d7b3
4
- data.tar.gz: 213e7b06dc339780bacd1cd4d079abda4efb465479d0c2fd05b966c834839cf1
3
+ metadata.gz: 3f2f5e88baaa6845d27866a70baa5facf3c48e13798cb4889b83b7e6aa7cc5c3
4
+ data.tar.gz: 2bb6cf3b10096223a6c06cf48aab740c1ead7f9cd6515d0bef25f0151555d028
5
5
  SHA512:
6
- metadata.gz: ffe0817f1d31c617bd23aa09cd6d8e3b696321194bfacdcb897ccbe4121a3ae523e6f09dd21e0b9ff49205f753641ef9cf7fdb6ec81fe7a9c7212e0847c2d1f3
7
- data.tar.gz: aac23697656f675a651c24a5a8c88ec09c3db39916a15fcee6fffc51e7efd3f9ead467c48423369b5c7439eb3cf4719366c04d1c81abb757fef588610580ec2f
6
+ metadata.gz: bcd1f320d3ea9c3d7015315e8a924700e7f6648545e2297184c3e5eb575f7fb77fc6c7f4d8c3ad99220b638f868100a9cce51b0fe89a5e74c9512dd387c9efbe
7
+ data.tar.gz: 2423d0d19d3495edb17d3789b8372770a98739f19f15df2555cb7d4945624c6f34c9070ca7ec4826fe727361c93ee1e9c46763c12bbf0667742656cabe171c1a
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [excid3] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -77,7 +77,7 @@
77
77
 
78
78
  <%= link_to simple_discussion.forum_thread_notifications_path(@forum_thread), method: :post, class: "btn btn-secondary btn-sm btn-block mb-2" do %>
79
79
  <% if @forum_thread.subscribed? current_user %>
80
- <%= icon "bell-slash" %> Unsubscribe
80
+ <%= icon "bell-slash" %> t('.unsubscribe')
81
81
  <% else %>
82
82
  <%= icon "bell" %>
83
83
  <%= t('.suscribe') %>
@@ -33,11 +33,11 @@
33
33
  <% if @forum_thread.solved? && forum_post.solved? %>
34
34
  <div class="card-footer">
35
35
  <div class="pull-right">
36
- <strong class="text-success"><%= icon("check") %> Solved</strong>
36
+ <strong class="text-success"><%= icon("check") %> <%= t('solved') %></strong>
37
37
 
38
38
  <% if is_moderator_or_owner?(@forum_thread) %>
39
39
  <small>
40
- <%= link_to "Undo", simple_discussion.unsolved_forum_thread_forum_post_path(@forum_thread, forum_post), method: :put %>
40
+ <%= link_to t('undo'), simple_discussion.unsolved_forum_thread_forum_post_path(@forum_thread, forum_post), method: :put %>
41
41
  </small>
42
42
  <% end %>
43
43
  </div>
@@ -27,7 +27,7 @@
27
27
  <% if local_assigns.fetch(:posts, true) %>
28
28
  <%= f.fields_for :forum_posts do |p| %>
29
29
  <div class="form-group">
30
- <%= p.label :body, "What do you need help with?" %>
30
+ <%= p.label :body, t('what_help_needed') %>
31
31
  <%= p.text_area :body, placeholder: t('add_a_comment'), rows: 10, class: "form-control simplemde", data: { behavior: "comment-body" } %>
32
32
  </div>
33
33
  <% end %>
@@ -35,7 +35,7 @@
35
35
 
36
36
  <div class="form-group text-right">
37
37
  <% if f.object.new_record? %>
38
- <%= f.button "Ask Your Question", class: "btn btn-primary", data: {disable_with: "<i class='fa fa-spinner fa-spin'></i> #{t('saving')}"} %>
38
+ <%= f.button t('ask_your_question'), class: "btn btn-primary", data: {disable_with: "<i class='fa fa-spinner fa-spin'></i> #{t('saving')}"} %>
39
39
  <% else %>
40
40
  <%= f.button "Update Thread", class: "btn btn-primary", data: {disable_with: "<i class='fa fa-spinner fa-spin'></i> #{t('saving')}"} %>
41
41
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <% if @forum_threads.none? %>
2
2
 
3
- <div>No results found for your search. Check out <%= link_to "the latest questions", simple_discussion.forum_threads_path %> instead?</div>
3
+ <div><%= t('search_not_found') %>. <%= t('check_out') %> <%= link_to t('latest_questions'), simple_discussion.forum_threads_path %> <%= t('instead') %> </div>
4
4
 
5
5
  <% else %>
6
6
 
@@ -1,4 +1,4 @@
1
- <h1>Start A Discussion</h1>
1
+ <h1><%= t('start_a_discussion') %></h1>
2
2
 
3
3
  <div class="forum_post">
4
4
  <%= render 'form' %>
@@ -1,4 +1,5 @@
1
1
  en:
2
+ start_a_discussion: Start A Discussion
2
3
  add_a_comment: Add A Comment
3
4
  ask_a_question: Ask A Question
4
5
  asked_time_ago: "Asked %{time} ago by %{author}"
@@ -22,6 +23,7 @@ en:
22
23
  notifications: Notifications
23
24
  participating: Participating
24
25
  suscribe: Subscribe
26
+ unsubscribe: Unsubscribe
25
27
  unanswered: Unanswered
26
28
  pick_a_category: Pick a category...
27
29
  post:
@@ -33,5 +35,11 @@ en:
33
35
  saving: Saving
34
36
  this_solved_my_question: This solved my question
35
37
  title: title
38
+ what_help_needed: What do you need help with?
39
+ ask_your_question: Ask Your Question
36
40
  update_comment: Update comment
37
- your_changes_were_saved: Your changes were saved
41
+ your_changes_were_saved: Your changes were saved
42
+ search_not_found: No results found for your search
43
+ check_out: Check out
44
+ latest_questions: the latest questions
45
+ instead: instead?
@@ -1,4 +1,5 @@
1
1
  es:
2
+ start_a_discussion: Iniciar una discusión
2
3
  add_a_comment: Añade un comentario
3
4
  ask_a_question: HAZ UNA PREGUNTA
4
5
  asked_time_ago: "Preguntado hace %{time} por %{author}"
@@ -22,6 +23,7 @@ es:
22
23
  notifications: Notificaciones
23
24
  participating: Participando
24
25
  suscribe: Suscribirse
26
+ unsubscribe: Desuscribirse
25
27
  unanswered: Sin Responder
26
28
  pick_a_category: Elige una categoría...
27
29
  post:
@@ -33,5 +35,7 @@ es:
33
35
  saving: Guardando
34
36
  this_solved_my_question: Esto resolvió mi pregunta
35
37
  title: Título
38
+ what_help_needed: Con qué necesitas ayuda?
39
+ ask_your_question: Haz tu pregunta
36
40
  update_comment: Actualiza tu comentario
37
41
  your_changes_were_saved: Tus cambios fueron guardados
@@ -0,0 +1,47 @@
1
+ fr:
2
+ start_a_discussion: Débuter une conversation
3
+ add_a_comment: Ajouter un Commentaire
4
+ ask_a_question: Poser une question
5
+ asked_time_ago: "Demandé il y a %{time} par %{author}"
6
+ choose_a_category: Choisir une catégorie
7
+ comment: commenter
8
+ commented_on: Commenté le
9
+ community: Communauté
10
+ edit_this_post: Modifier ce message
11
+ edit_this_thread: Modifier ce fil
12
+ edit_thread: Modifier le fil
13
+ filters: Les filtres
14
+ how_do_i: Comment puis-je ...?
15
+ ignoring_thread: Vous avez ignoré ce fil.
16
+ not_receiving_notifications: Vous ne recevez plus les notifications de ce fil.
17
+ layouts:
18
+ simple_discussion:
19
+ all_threads: Toutes les discussions
20
+ answered: Résolues
21
+ by_category: Par catégorie
22
+ my_questions: Mes Questions
23
+ notifications: Les notifications
24
+ participating: Participant
25
+ suscribe: S'abonner
26
+ unsubscribe: Désabonner
27
+ unanswered: Non Résolues
28
+ pick_a_category: Choisissez une catégorie ...
29
+ post:
30
+ one: message
31
+ other: messages
32
+ receiving_notifications_because_subscribed: Vous recevez les notifications parce que vous êtes abonné à ce fil.
33
+ receiving_notifications_because_posted: Vous recevez les notifications parce que vous avez posté dans ce fil.
34
+ saving_comment: Envois du commentaire ...
35
+ saving: Enregistrer
36
+ this_solved_my_question: Résolu?
37
+ title: titre
38
+ what_help_needed: Quel problème voulez-vous résoudre ?
39
+ ask_your_question: 'Poser votre question'
40
+ update_comment: Mettre à jour le commentaire
41
+ your_changes_were_saved: Vos modifications ont été enregistrées
42
+ solved: Résolu
43
+ undo: annuler
44
+ search_not_found: Aucun résultat trouvé pour votre recherche
45
+ check_out: Voir
46
+ latest_questions: les dernières questions
47
+ instead: à la place
@@ -1,6 +1,6 @@
1
1
  class CreateForumCategories < ActiveRecord::Migration[4.2]
2
2
  def change
3
- create_table :forum_categories, force: :cascade do |t|
3
+ create_table :forum_categories do |t|
4
4
  t.string :name, null: false
5
5
  t.string :slug, null: false
6
6
  t.string :color, default: "000000"
@@ -1,6 +1,6 @@
1
1
  class CreateForumThreads < ActiveRecord::Migration[4.2]
2
2
  def change
3
- create_table :forum_threads, force: :cascade do |t|
3
+ create_table :forum_threads do |t|
4
4
  t.references :forum_category, foreign_key: true
5
5
  t.references :user, foreign_key: true
6
6
  t.string :title, null: false
@@ -1,6 +1,6 @@
1
1
  class CreateForumPosts < ActiveRecord::Migration[4.2]
2
2
  def change
3
- create_table :forum_posts, force: :cascade do |t|
3
+ create_table :forum_posts do |t|
4
4
  t.references :forum_thread, foreign_key: true
5
5
  t.references :user, foreign_key: true
6
6
  t.text :body
@@ -1,6 +1,6 @@
1
1
  class CreateForumSubscriptions < ActiveRecord::Migration[4.2]
2
2
  def change
3
- create_table :forum_subscriptions, force: :cascade do |t|
3
+ create_table :forum_subscriptions do |t|
4
4
  t.references :forum_thread, foreign_key: true
5
5
  t.references :user, foreign_key: true
6
6
  t.string :subscription_type
@@ -1,3 +1,3 @@
1
1
  module SimpleDiscussion
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency 'font-awesome-sass', '~> 4.7.0'
24
+ spec.add_dependency 'font-awesome-sass', '>= 4.7.0'
25
25
  spec.add_dependency 'friendly_id', '>= 5.2.0'
26
26
  spec.add_dependency 'gravatar_image_tag'
27
27
  spec.add_dependency 'rails', '>= 4.2'
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_discussion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-19 00:00:00.000000000 Z
11
+ date: 2020-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: font-awesome-sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.7.0
27
27
  - !ruby/object:Gem::Dependency
@@ -87,6 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".github/FUNDING.yml"
90
91
  - ".gitignore"
91
92
  - ".travis.yml"
92
93
  - CODE_OF_CONDUCT.md
@@ -126,6 +127,7 @@ files:
126
127
  - bin/setup
127
128
  - config/locales/en.yml
128
129
  - config/locales/es.yml
130
+ - config/locales/fr.yml
129
131
  - config/routes.rb
130
132
  - db/migrate/20170417012930_create_forum_categories.rb
131
133
  - db/migrate/20170417012931_create_forum_threads.rb
@@ -145,7 +147,7 @@ homepage: https://github.com/excid3/simple_discussion
145
147
  licenses:
146
148
  - MIT
147
149
  metadata: {}
148
- post_install_message:
150
+ post_install_message:
149
151
  rdoc_options: []
150
152
  require_paths:
151
153
  - lib
@@ -160,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
162
  - !ruby/object:Gem::Version
161
163
  version: '0'
162
164
  requirements: []
163
- rubygems_version: 3.0.1
164
- signing_key:
165
+ rubygems_version: 3.1.2
166
+ signing_key:
165
167
  specification_version: 4
166
168
  summary: A simple, extensible Rails forum
167
169
  test_files: []