the_comments 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/whats_wrong_with_other_gems.md +2 -1
- data/gem_version.rb +1 -1
- data/lib/the_comments.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee632ba5de08ebc509b8bee50ff36a33aad11e2
|
4
|
+
data.tar.gz: bd13f415bec98398f1a6fb6490aacf90bf8f2ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19588969de25f0760bbe5a55bf60ee38510248e462f84c1a2cff6e6ee85d3496491f889b123d25d8b50a8da0f870ea868d8ff014dc4bacac7633c81da1352b10
|
7
|
+
data.tar.gz: afcc6443ea637efd7fda0f0ac74fb292688dad0f3c06dde0d76473eefeda6d65c64197a12126447dc63ea8b0b34ae467535820c66a0af0139845a7530f3e0ef8
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ TheComments - probably, best commenting system for Rails
|
|
30
30
|
**Gemfile**
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
gem
|
33
|
+
gem "the_comments", "~> 2.0.1"
|
34
34
|
|
35
35
|
gem 'haml' # or gem 'slim'
|
36
36
|
gem 'awesome_nested_set' # or same gem
|
@@ -207,7 +207,7 @@ end
|
|
207
207
|
* Anna Nechaeva (my wife) - for love and my happy life
|
208
208
|
* @tanraya (Andrew Kozlov) - for code review
|
209
209
|
* @solenko (Anton Petrunich) - for mountable routes
|
210
|
-
* @pyromaniac (Arkadiy Zabazhanov) - for
|
210
|
+
* @pyromaniac (Arkadiy Zabazhanov) - for consulting
|
211
211
|
|
212
212
|
<hr>
|
213
213
|
|
@@ -19,9 +19,10 @@ Just look at [Ruby-Toolbox](https://www.ruby-toolbox.com/categories/rails_commen
|
|
19
19
|
6. TheComments has admin UI based on bootstrap 3
|
20
20
|
7. TheComments is "all-in-one" solutions.<br>
|
21
21
|
It has: Models and Controllers logic (via concerns), Generators, Views, Helper for fast Tree rendering and Admin UI.
|
22
|
+
8. I'll try to help you via skype: **ilya.killich**, if you have problems with TheComments
|
22
23
|
|
23
24
|
### TheComments based on:
|
24
25
|
|
25
26
|
1. [AwesomeNestedSet](https://github.com/collectiveidea/awesome_nested_set) - for comments threading
|
26
|
-
2. [TheSortableTree](https://github.com/the-teacher/the_sortable_tree) - for fast
|
27
|
+
2. [TheSortableTree](https://github.com/the-teacher/the_sortable_tree) - for fast rendering of comments tree
|
27
28
|
3. [State Machine](https://github.com/pluginaweek/state_machine) - to provide easy and correct recalculation cache counters on states transitions
|
data/gem_version.rb
CHANGED
data/lib/the_comments.rb
CHANGED
@@ -11,9 +11,9 @@ end
|
|
11
11
|
# Loading of concerns
|
12
12
|
|
13
13
|
# controllers
|
14
|
-
require
|
14
|
+
require File.expand_path('../../app/controllers/concerns/controller.rb', __FILE__)
|
15
15
|
|
16
16
|
# models
|
17
17
|
%w[ comment_states comment user commentable ].each do |concern|
|
18
|
-
require "../../app/models/concerns/#{concern}"
|
18
|
+
require File.expand_path("../../app/models/concerns/#{concern}.rb", __FILE__)
|
19
19
|
end
|