simple_discussion 0.9.0 → 0.9.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: ea112341c29ae6d453a260175e1fab4fe8742243
4
- data.tar.gz: '08670316d53d01df1dfc1f0101d59f43e46be643'
3
+ metadata.gz: 04550c334662cad9d3c499d5491d11c72926c821
4
+ data.tar.gz: 2c4297ad07399e4fafb916cae5fe464a2e566fa8
5
5
  SHA512:
6
- metadata.gz: 87914991332ab15ab141c77baf1924fc8c89b4f4e01c1fc9121eff52309daa4a23c1310833db545750d25dc82dd9c8805647ff834147d7fca3ed1da96d336390
7
- data.tar.gz: fde66ad800d05ea86cf1251950f490f2d221d10b8e8807d67863c41f022a54a713391e0e10148a7ea9ede736276dcba5d03a92babd0f1c66fa1b45f084332846
6
+ metadata.gz: 7157df980c2e77655d0d567dd11f3623944934ee9aeddd13694e1985cdbcc79a37cede6daeb00f7bbe0c2f79df472c8ad03ee42051b2f86b8fdbe337a85610d7
7
+ data.tar.gz: 8cf33b46566b4d7a032540ae5adfc6fb69be64484b8fead0b2ffc186ac6a381aaf9c04b0088ae8bf025d9918f4342aac8eb0bf010f014643c583f8e9f2dc4e2e
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # SimpleDiscussion
2
2
 
3
- SimpleDiscussion is a Rails forum gem extracting the forum from
4
- [GoRails' forum](https://gorails.com/forum). It includes categories,
5
- simple moderation, the ability to mark threads as solved, and more.
3
+ SimpleDiscussion is a Rails forum gem extracting the forum from [GoRails' forum](https://gorails.com/forum). It includes categories, simple moderation, the ability to mark threads as solved, and more.
4
+
5
+ Out of the box, SimpleDiscussion comes with styling for Boostrap v4 but you're free to customize the UI as much as you like by installing the views and tweaking the HTML.
6
6
 
7
7
  ## Installation
8
8
 
@@ -66,7 +66,29 @@ To get all the basic functionality, the only thing you need to do is add a link
66
66
  <%= link_to "Forum", simple_discussion_path %>
67
67
  ```
68
68
 
69
- This will take the user to the views inside the Rails engine.
69
+ This will take the user to the views inside the Rails engine and that's all you have to do!
70
+
71
+ ### Customizing All The Things!
72
+
73
+ If you'd like to customize the views that SimpleDiscussion uses, you can install the views to your Rails app:
74
+
75
+ ```bash
76
+ rails g simple_discussion:views
77
+ ```
78
+
79
+ You can also install a copy of the SimpleDiscussion controllers for advanced customization:
80
+
81
+ ```bash
82
+ rails g simple_discussion:controllers
83
+ ```
84
+
85
+ Helpers are available for override as well. They are used for rendering the user avatars, text formatting, and more.
86
+
87
+ ```bash
88
+ rails g simple_discussion:helpers
89
+ ```
90
+
91
+ **NOTE:** Keep in mind that the more customization you do, the tougher gem upgrades will be in the future.
70
92
 
71
93
  ## Development
72
94
 
@@ -0,0 +1,13 @@
1
+ require 'rails/generators'
2
+
3
+ module SimpleDiscussion
4
+ module Generators
5
+ class ControllersGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("../../../..", __FILE__)
7
+
8
+ def copy_controllers
9
+ directory 'app/controllers/simple_discussion', 'app/controllers/simple_discussion'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require 'rails/generators'
2
+
3
+ module SimpleDiscussion
4
+ module Generators
5
+ class HelpersGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("../../../..", __FILE__)
7
+
8
+ def copy_views
9
+ directory 'app/helpers', 'app/helpers'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require 'rails/generators'
2
+
3
+ module SimpleDiscussion
4
+ module Generators
5
+ class ViewsGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("../../../..", __FILE__)
7
+
8
+ def copy_views
9
+ directory 'app/views', 'app/views'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleDiscussion
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_discussion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
@@ -124,6 +124,9 @@ files:
124
124
  - db/migrate/20170417012931_create_forum_threads.rb
125
125
  - db/migrate/20170417012932_create_forum_posts.rb
126
126
  - db/migrate/20170417012933_create_forum_subscriptions.rb
127
+ - lib/generators/simple_discussion/controllers_generator.rb
128
+ - lib/generators/simple_discussion/helpers_generator.rb
129
+ - lib/generators/simple_discussion/views_generator.rb
127
130
  - lib/simple_discussion.rb
128
131
  - lib/simple_discussion/engine.rb
129
132
  - lib/simple_discussion/forum_user.rb