the_comments 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c9b40a513dfcde29584a219ae81ffe2b27871aef
4
+ data.tar.gz: ebaeb4e1c60951c24fafb588b57a37bced1f7dcb
5
+ SHA512:
6
+ metadata.gz: 1d0b0a2a09b80585763e52ff47741bf2310bc286c2c99268e943dcc77f26b7590c3dabeb3f7275b6ce790302298913e7b576f76a7340401c3ff06d8c8f7852f5
7
+ data.tar.gz: 865e014386a9a7d39227dcf6471ed96dfd785b4d9353419bc4f9bd6a9fe52bf1d54e4e7e79d8caaddf47d7fd33a42324e26f918e814882f747fce3b77a3ff29e
data/.gitignore CHANGED
@@ -1,18 +1,30 @@
1
1
  *.gem
2
2
  *.rbc
3
+
3
4
  .bundle
4
5
  .config
5
6
  .yardoc
7
+
6
8
  .rvmrc
7
- Gemfile.lock
8
- InstalledFiles
9
+ .ruby-gemset
10
+ .ruby-version
11
+
9
12
  _yardoc
10
13
  coverage
11
- doc/
14
+ Gemfile.lock
15
+ InstalledFiles
12
16
  lib/bundler/man
17
+ spec/dummy_app/public/assets
18
+
19
+ tmp
20
+ doc
13
21
  pkg
14
22
  rdoc
15
- spec/reports
23
+
16
24
  test/tmp
25
+ spec/reports
17
26
  test/version_tmp
18
- tmp
27
+
28
+ .DS_Store
29
+ .LSOverride
30
+ .AppleDouble
@@ -0,0 +1 @@
1
+ the_comments
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p353
data/.rvmrc.example CHANGED
@@ -1 +1 @@
1
- rvm use ruby-1.9.3-p392@the_comments --create
1
+ rvm use ruby-2.0.0-p353@the_comments --create
data/README.md CHANGED
@@ -19,6 +19,10 @@ TheComments - probably, best commenting system for Rails
19
19
 
20
20
  ### :books:   [Documentation](docs/documentation.md)
21
21
 
22
+ ## If you have any questions
23
+
24
+ Please before ask anything try to launch and play with **[Dummy App](spec/dummy_app)** in spec folder. Maybe example of integration will be better than any documentation. Thank you!
25
+
22
26
  ## How to start dummy app (screencast)
23
27
 
24
28
  [![Foo](https://raw.github.com/the-teacher/the_comments/master/docs/screencast.jpg)](http://vk.com/video_ext.php?oid=49225742&id=166578209&hash=10be1dba625149bb&hd=3)
@@ -164,7 +168,19 @@ end
164
168
 
165
169
  Please, read [documentation](docs/documentation.md) to learn more
166
170
 
167
- ### 6. Assets install
171
+ ### 6. Controller's addon
172
+
173
+ ```ruby
174
+ class ApplicationController < ActionController::Base
175
+ include TheComments::ViewToken
176
+
177
+ # Prevent CSRF attacks by raising an exception.
178
+ # For APIs, you may want to use :null_session instead.
179
+ protect_from_forgery with: :exception
180
+ end
181
+ ```
182
+
183
+ ### 7. Assets install
168
184
 
169
185
  **app/assets/stylesheets/application.css**
170
186
 
@@ -180,7 +196,7 @@ Please, read [documentation](docs/documentation.md) to learn more
180
196
  //= require the_comments
181
197
  ```
182
198
 
183
- ### 7. Controller code example
199
+ ### 8. Controller code example
184
200
 
185
201
  **app/controllers/posts_controllers.rb**
186
202
 
@@ -191,7 +207,7 @@ def show
191
207
  end
192
208
  ```
193
209
 
194
- ### 8. View code example
210
+ ### 9. View code example
195
211
 
196
212
  **app/views/posts/show.html.haml**
197
213
 
@@ -2,7 +2,7 @@ h3
2
2
  = link_to t('the_comments.new'), '#', id: :new_root_comment
3
3
 
4
4
  = form_for Comment.new, remote: true, authenticity_token: true do |f|
5
- .error_notifier style: "display:none"
5
+ .error_notifier style="display:none"
6
6
  label= t('the_comments.form.title')
7
7
  p= f.text_field :title
8
8
 
@@ -1,4 +1,4 @@
1
1
  .comments#comments
2
- ol.comments_tree data: { comments: { tolarance_time: TheComments.config.tolerance_time } }
2
+ ol.comments_tree data= { comments: { tolarance_time: TheComments.config.tolerance_time } }
3
3
  = render partial: 'the_comments/slim/comment', locals: { tree: comments_tree }
4
4
  = render partial: 'the_comments/slim/form', locals: { commentable: commentable }
@@ -1,5 +1,5 @@
1
1
  # null: false => de-facto db-level validation
2
- class ChangeUser < ActiveRecord::Migration
2
+ class TheCommentsChangeUser < ActiveRecord::Migration
3
3
  def change
4
4
  change_table :users do |t|
5
5
  # "Written by me" (cache counters)
@@ -1,4 +1,4 @@
1
- class CreateComments < ActiveRecord::Migration
1
+ class TheCommentsCreateComments < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :comments do |t|
4
4
  # relations
@@ -1,4 +1,4 @@
1
- class ChangeCommentable < ActiveRecord::Migration
1
+ class TheCommentsChangeCommentable < ActiveRecord::Migration
2
2
  def change
3
3
  # Uncomment this. Add fields to Commentable Models
4
4
  #
data/gem_version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TheComments
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
@@ -0,0 +1,11 @@
1
+ windows:
2
+ - name: "TheComments"
3
+ root: "~/rails/opensource/the_comments"
4
+ filters:
5
+ before: "rvm use ruby-2.0.0-p353; rvm gemset use the_comments"
6
+ layout: tiled
7
+ panes:
8
+ - cmd: "clear;"
9
+ - cmd: "clear;"
10
+ - cmd: "cd spec/dummy_app; clear"
11
+ - cmd: "cd spec/dummy_app; clear; rake db:bootstrap RAILS_ENV=test; rspec"
metadata CHANGED
@@ -1,39 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
5
- prerelease:
4
+ version: 2.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ilya N. Zykin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-10 00:00:00.000000000 Z
11
+ date: 2013-12-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: state_machine
16
- requirement: &82514850 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *82514850
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: the_sortable_tree
27
- requirement: &82514530 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *82514530
36
- description: ! ' Comments with threading for Rails 4 '
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: ' Comments with threading for Rails 4 '
37
42
  email:
38
43
  - zykin-ilya@ya.ru
39
44
  executables: []
@@ -41,6 +46,8 @@ extensions: []
41
46
  extra_rdoc_files: []
42
47
  files:
43
48
  - .gitignore
49
+ - .ruby-gemset.example
50
+ - .ruby-version.example
44
51
  - .rvmrc.example
45
52
  - .travis.yml
46
53
  - Gemfile
@@ -85,9 +92,9 @@ files:
85
92
  - config/locales/en.yml
86
93
  - config/locales/ru.yml
87
94
  - config/routes.rb
88
- - db/migrate/20130101010101_change_user.rb
89
- - db/migrate/20130101010102_create_comments.rb
90
- - db/migrate/20130101010103_change_commentable.rb
95
+ - db/migrate/20130101010101_the_comments_change_user.rb
96
+ - db/migrate/20130101010102_the_comments_create_comments.rb
97
+ - db/migrate/20130101010103_the_comments_change_commentable.rb
91
98
  - docs/admin_ui_installation.md
92
99
  - docs/advanced_installation.md
93
100
  - docs/comment_api.md
@@ -120,9 +127,6 @@ files:
120
127
  - lib/the_comments/version.rb
121
128
  - spec/dummy_app/.gitignore
122
129
  - spec/dummy_app/.rspec
123
- - spec/dummy_app/.ruby-gemset
124
- - spec/dummy_app/.ruby-version
125
- - spec/dummy_app/.rvmrc.example
126
130
  - spec/dummy_app/Gemfile
127
131
  - spec/dummy_app/README.md
128
132
  - spec/dummy_app/Rakefile
@@ -200,37 +204,34 @@ files:
200
204
  - spec/dummy_app/vendor/assets/javascripts/.keep
201
205
  - spec/dummy_app/vendor/assets/stylesheets/.keep
202
206
  - the_comments.gemspec
207
+ - the_comments.yml.teamocil.example
203
208
  - views_converter.rb
204
209
  homepage: https://github.com/the-teacher/the_comments
205
210
  licenses: []
211
+ metadata: {}
206
212
  post_install_message:
207
213
  rdoc_options: []
208
214
  require_paths:
209
215
  - lib
210
216
  required_ruby_version: !ruby/object:Gem::Requirement
211
- none: false
212
217
  requirements:
213
- - - ! '>='
218
+ - - '>='
214
219
  - !ruby/object:Gem::Version
215
220
  version: '0'
216
221
  required_rubygems_version: !ruby/object:Gem::Requirement
217
- none: false
218
222
  requirements:
219
- - - ! '>='
223
+ - - '>='
220
224
  - !ruby/object:Gem::Version
221
225
  version: '0'
222
226
  requirements: []
223
227
  rubyforge_project:
224
- rubygems_version: 1.8.15
228
+ rubygems_version: 2.1.11
225
229
  signing_key:
226
- specification_version: 3
230
+ specification_version: 4
227
231
  summary: the_comments by the-teacher
228
232
  test_files:
229
233
  - spec/dummy_app/.gitignore
230
234
  - spec/dummy_app/.rspec
231
- - spec/dummy_app/.ruby-gemset
232
- - spec/dummy_app/.ruby-version
233
- - spec/dummy_app/.rvmrc.example
234
235
  - spec/dummy_app/Gemfile
235
236
  - spec/dummy_app/README.md
236
237
  - spec/dummy_app/Rakefile
@@ -1 +0,0 @@
1
- the_comments
@@ -1 +0,0 @@
1
- ruby-2.0.0-p247
@@ -1 +0,0 @@
1
- rvm use ruby-2.0.0-p247@the_comments --create