make_commentable 0.0.8.1.2 → 0.0.8.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/{generators → lib/generators}/comment/comment_generator.rb +5 -4
- data/{generators → lib/generators}/comment/templates/comment.rb +0 -0
- data/{generators → lib/generators}/comment/templates/comments_controller.rb +0 -0
- data/{generators → lib/generators}/comment/templates/create_comments.rb +0 -0
- data/{generators → lib/generators}/comment/templates/javascripts/comments.js +0 -0
- data/{generators → lib/generators}/comment/templates/views/_comment.html.haml +0 -0
- data/{generators → lib/generators}/comment/templates/views/_comment_form.html.haml +0 -0
- data/lib/make_commentable/version.rb +1 -1
- metadata +8 -8
@@ -2,10 +2,11 @@ require 'rails/generators/migration'
|
|
2
2
|
|
3
3
|
class CommentGenerator < Rails::Generators::Base
|
4
4
|
include Rails::Generators::Migration
|
5
|
+
include Rails::Generators::ResourceHelpers
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
source_root File.expand_path("../templates", __FILE__)
|
8
|
+
|
9
|
+
desc "Creates a make_commentable files"
|
9
10
|
|
10
11
|
def self.next_migration_number(path)
|
11
12
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
@@ -28,4 +29,4 @@ class CommentGenerator < Rails::Generators::Base
|
|
28
29
|
def create_javascripts
|
29
30
|
template "javascripts/comments.js", "app/assets/javascripts/comments/comments.js"
|
30
31
|
end
|
31
|
-
end
|
32
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_commentable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.8.1.
|
4
|
+
version: 0.0.8.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -66,15 +66,15 @@ extensions: []
|
|
66
66
|
extra_rdoc_files: []
|
67
67
|
files:
|
68
68
|
- lib/make_commentable.rb
|
69
|
+
- lib/generators/comment/templates/javascripts/comments.js
|
70
|
+
- lib/generators/comment/templates/create_comments.rb
|
71
|
+
- lib/generators/comment/templates/comment.rb
|
72
|
+
- lib/generators/comment/templates/comments_controller.rb
|
73
|
+
- lib/generators/comment/templates/views/_comment_form.html.haml
|
74
|
+
- lib/generators/comment/templates/views/_comment.html.haml
|
75
|
+
- lib/generators/comment/comment_generator.rb
|
69
76
|
- lib/make_commentable/version.rb
|
70
77
|
- lib/make_commentable/commentable_methods.rb
|
71
|
-
- generators/comment/templates/javascripts/comments.js
|
72
|
-
- generators/comment/templates/create_comments.rb
|
73
|
-
- generators/comment/templates/comment.rb
|
74
|
-
- generators/comment/templates/comments_controller.rb
|
75
|
-
- generators/comment/templates/views/_comment_form.html.haml
|
76
|
-
- generators/comment/templates/views/_comment.html.haml
|
77
|
-
- generators/comment/comment_generator.rb
|
78
78
|
- LICENSE
|
79
79
|
homepage: https://rubygems.org/gems/make_commentable
|
80
80
|
licenses: []
|