has_comments 0.0.2 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +23 -0
- data/.gemtest +0 -0
- data/History.txt +6 -0
- data/Manifest.txt +8 -0
- data/README.txt +54 -0
- data/Rakefile +22 -0
- data/bin/has_comments +3 -0
- data/lib/has_comments.rb +4 -1
- data/test/test_has_comments.rb +8 -0
- metadata +37 -10
data/.autotest
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require 'autotest/restart'
|
4
|
+
|
5
|
+
# Autotest.add_hook :initialize do |at|
|
6
|
+
# at.extra_files << "../some/external/dependency.rb"
|
7
|
+
#
|
8
|
+
# at.libs << ":../some/external"
|
9
|
+
#
|
10
|
+
# at.add_exception 'vendor'
|
11
|
+
#
|
12
|
+
# at.add_mapping(/dependency.rb/) do |f, _|
|
13
|
+
# at.files_matching(/test_.*rb$/)
|
14
|
+
# end
|
15
|
+
#
|
16
|
+
# %w(TestA TestB).each do |klass|
|
17
|
+
# at.extra_class_map[klass] = "test/test_misc.rb"
|
18
|
+
# end
|
19
|
+
# end
|
20
|
+
|
21
|
+
# Autotest.add_hook :run_command do |at|
|
22
|
+
# system "rake build"
|
23
|
+
# end
|
data/.gemtest
ADDED
File without changes
|
data/History.txt
ADDED
data/Manifest.txt
ADDED
data/README.txt
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
= has_comments
|
2
|
+
|
3
|
+
http://github.com/johnfelix/has_comments
|
4
|
+
== DESCRIPTION:
|
5
|
+
|
6
|
+
As the name implies, this gem allows comments to be added to any model.
|
7
|
+
|
8
|
+
== FEATURES/PROBLEMS:
|
9
|
+
|
10
|
+
== SYNOPSIS:
|
11
|
+
|
12
|
+
gem install has_comments
|
13
|
+
|
14
|
+
== REQUIREMENTS:
|
15
|
+
|
16
|
+
Runs only in Rails 3.1
|
17
|
+
|
18
|
+
== INSTALL:
|
19
|
+
|
20
|
+
gem install has_comments
|
21
|
+
|
22
|
+
== DEVELOPERS:
|
23
|
+
|
24
|
+
After checking out the source, run:
|
25
|
+
|
26
|
+
$ rake newb
|
27
|
+
|
28
|
+
This task will install any missing dependencies, run the tests/specs,
|
29
|
+
and generate the RDoc.
|
30
|
+
|
31
|
+
== LICENSE:
|
32
|
+
|
33
|
+
(The MIT License)
|
34
|
+
|
35
|
+
Copyright (c) 2011 FIX
|
36
|
+
|
37
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
38
|
+
a copy of this software and associated documentation files (the
|
39
|
+
'Software'), to deal in the Software without restriction, including
|
40
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
41
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
42
|
+
permit persons to whom the Software is furnished to do so, subject to
|
43
|
+
the following conditions:
|
44
|
+
|
45
|
+
The above copyright notice and this permission notice shall be
|
46
|
+
included in all copies or substantial portions of the Software.
|
47
|
+
|
48
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
49
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
50
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
51
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
52
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
53
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
54
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'hoe'
|
5
|
+
|
6
|
+
# Hoe.plugin :compiler
|
7
|
+
# Hoe.plugin :gem_prelude_sucks
|
8
|
+
# Hoe.plugin :inline
|
9
|
+
# Hoe.plugin :racc
|
10
|
+
# Hoe.plugin :rubyforge
|
11
|
+
|
12
|
+
Hoe.spec 'has_comments' do
|
13
|
+
# HEY! If you fill these out in ~/.hoe_template/Rakefile.erb then
|
14
|
+
# you'll never have to touch them again!
|
15
|
+
# (delete this comment too, of course)
|
16
|
+
|
17
|
+
developer('John Felix', 'felix1985@gmail.com.com')
|
18
|
+
|
19
|
+
# self.rubyforge_name = 'has_commentsx' # if different than 'has_comments'
|
20
|
+
end
|
21
|
+
|
22
|
+
# vim: syntax=ruby
|
data/bin/has_comments
ADDED
data/lib/has_comments.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,19 +11,45 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2011-08-17 00:00:00.000000000 +05:30
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
requirement: &2168887380 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.12'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2168887380
|
26
|
+
description: As the name implies, this gem allows comments to be added to any model.
|
27
|
+
email:
|
28
|
+
- felix1985@gmail.com.com
|
29
|
+
executables:
|
30
|
+
- has_comments
|
18
31
|
extensions: []
|
19
|
-
extra_rdoc_files:
|
32
|
+
extra_rdoc_files:
|
33
|
+
- History.txt
|
34
|
+
- Manifest.txt
|
35
|
+
- README.txt
|
20
36
|
files:
|
37
|
+
- .autotest
|
38
|
+
- History.txt
|
39
|
+
- Manifest.txt
|
40
|
+
- README.txt
|
41
|
+
- Rakefile
|
42
|
+
- bin/has_comments
|
21
43
|
- lib/has_comments.rb
|
44
|
+
- test/test_has_comments.rb
|
45
|
+
- .gemtest
|
22
46
|
has_rdoc: true
|
23
|
-
homepage:
|
47
|
+
homepage: http://github.com/johnfelix/has_comments
|
24
48
|
licenses: []
|
25
49
|
post_install_message:
|
26
|
-
rdoc_options:
|
50
|
+
rdoc_options:
|
51
|
+
- --main
|
52
|
+
- README.txt
|
27
53
|
require_paths:
|
28
54
|
- lib
|
29
55
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -43,5 +69,6 @@ rubyforge_project: has_comments
|
|
43
69
|
rubygems_version: 1.6.2
|
44
70
|
signing_key:
|
45
71
|
specification_version: 3
|
46
|
-
summary:
|
47
|
-
test_files:
|
72
|
+
summary: As the name implies, this gem allows comments to be added to any model.
|
73
|
+
test_files:
|
74
|
+
- test/test_has_comments.rb
|