comment_box 0.0.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: 16f1e8c95e3a5e09d10cbffaf069baae1727eeda
4
+ data.tar.gz: f8a6a3e08a0e61502c9b3028d5628744abc104ca
5
+ SHA512:
6
+ metadata.gz: 8359905afdb14bae8e220d81b58ad0e1f59ca1ab7056cebb3222ea4cab8da64e50adb1258437b9751bfd82f2d196a2814886d82de8615fdf36877ff287e71478
7
+ data.tar.gz: b3fe9b6fadff58b736416c8cdd1fb8d5a8473670ee50c86f96d52c72fb62d18a8461f5dea5d87355b357a979812e1b335437918f60e98d62fb3c7cd931f01e94
@@ -0,0 +1,3 @@
1
+ module CommentBox
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,2 @@
1
+ module CommentBox
2
+ end
@@ -0,0 +1,13 @@
1
+ require 'rails/generators/active_record'
2
+
3
+ module ActiveRecord
4
+ module Generators
5
+ class CommentBoxGenerator < ActiveRecord::Generators::Base
6
+ source_root File.expand_path('../templates', __FILE__)
7
+
8
+ def copy_comment_box_migration
9
+ migration_template 'migration.rb', 'db/migrate/comment_box_create_comments.rb'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ class CommentBoxCreateComment < ActiveRecord::Migration
2
+ def up
3
+ create_table :comments do |t|
4
+ t.string :author
5
+ t.text :text
6
+ t.string :likes
7
+
8
+ t.timestamps null: false
9
+ end
10
+ end
11
+
12
+ def down
13
+ drop_table :comments
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: comment_box
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Fiyin Adebayo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-07-13 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Provides robust comment functionality for any application.
14
+ email: fiyinsimeon@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/comment_box.rb
20
+ - lib/comment_box/version.rb
21
+ - lib/generators/active_record/comment_box_generator.rb
22
+ - lib/generators/active_record/templates/migration.rb
23
+ homepage:
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.5.1
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: A robust comment system
47
+ test_files: []