make_commentable 0.0.8.1.2 → 0.0.8.1.4

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.
@@ -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
- def self.source_root
7
- @_make_commentable_source_root ||= File.expand_path("../templates", __FILE__)
8
- end
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
@@ -1,3 +1,3 @@
1
1
  module Commentable
2
- VERSION = "0.0.8.1.2"
2
+ VERSION = "0.0.8.1.4"
3
3
  end
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.2
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: []