linkingpaths-acts_as_abusable 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +6 -6
- data/acts_as_abusable.gemspec +2 -2
- data/init.rb +1 -1
- data/lib/acts_as_abusable.rb +6 -0
- metadata +1 -5
- data/install.rb +0 -1
- data/rails/init.rb +0 -5
- data/uninstall.rb +0 -1
data/README.markdown
CHANGED
@@ -16,7 +16,7 @@ script/plugin install git://github.com/linkingpaths/acts_as_abusable.git
|
|
16
16
|
|
17
17
|
If you prefer the new "gemplugin" management system just insert the dependency on environment.rb:
|
18
18
|
<pre>
|
19
|
-
config.gem "linkingpaths-acts_as_abusable"
|
19
|
+
config.gem "linkingpaths-acts_as_abusable", :lib => "acts_as_abusable"
|
20
20
|
</pre>
|
21
21
|
... and install it:
|
22
22
|
<pre>
|
@@ -43,16 +43,16 @@ end
|
|
43
43
|
This gives you:
|
44
44
|
|
45
45
|
<pre>
|
46
|
-
# All
|
46
|
+
# All abuse reports about this photo
|
47
47
|
penthouse_sweetie_photo.reported_abuses
|
48
48
|
|
49
49
|
# Positive abuses
|
50
50
|
penthouse_sweetie_photo.reported_abuses.confirmed
|
51
51
|
|
52
|
-
# Still not evaluated
|
52
|
+
# Still not evaluated abuse reports
|
53
53
|
penthouse_sweetie_photo.reported_abuses.pending
|
54
54
|
|
55
|
-
#
|
55
|
+
# Check if this photo has been positively marked as an abuse.
|
56
56
|
penthouse_sweetie_photo.is_an_abuse?
|
57
57
|
</pre>
|
58
58
|
|
@@ -62,10 +62,10 @@ And a new ´Abuse´ model:
|
|
62
62
|
abuse.confirmed?
|
63
63
|
abuse.confirm!
|
64
64
|
|
65
|
-
# URL used as base for
|
65
|
+
# URL used as base for the abuse report
|
66
66
|
abuse.referer
|
67
67
|
|
68
|
-
# Resource that
|
68
|
+
# Resource that is linked to the abuse report
|
69
69
|
abuse.resource
|
70
70
|
</pre>
|
71
71
|
|
data/acts_as_abusable.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{acts_as_abusable}
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.2"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Linking Paths"]
|
7
7
|
s.date = %q{2008-10-04}
|
8
8
|
s.description = %q{Tiny plugin to mark any rails model instance as an abuse or site's community guideline violation.}
|
9
9
|
s.email = ["aitor@linkingpaths.com"]
|
10
|
-
s.files = ["MIT-LICENSE", "README.markdown", "Rakefile", "acts_as_abusable.gemspec", "generators", "generators/acts_as_abusable_migration", "generators/acts_as_abusable_migration/acts_as_abusable_migration_generator.rb", "generators/acts_as_abusable_migration/templates", "generators/acts_as_abusable_migration/templates/migration.rb", "init.rb", "
|
10
|
+
s.files = ["MIT-LICENSE", "README.markdown", "Rakefile", "acts_as_abusable.gemspec", "generators", "generators/acts_as_abusable_migration", "generators/acts_as_abusable_migration/acts_as_abusable_migration_generator.rb", "generators/acts_as_abusable_migration/templates", "generators/acts_as_abusable_migration/templates/migration.rb", "init.rb", "lib", "lib/abuse.rb", "lib/acts_as_abusable.rb", "tasks", "tasks/acts_as_abusable_tasks.rake", "test", "test/acts_as_abusable_test.rb"]
|
11
11
|
s.has_rdoc = true
|
12
12
|
s.homepage = %q{http://github.com/linkingpaths/acts_as_abusable}
|
13
13
|
s.post_install_message = %q{
|
data/init.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require "acts_as_abusable"
|
data/lib/acts_as_abusable.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkingpaths-acts_as_abusable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Linking Paths
|
@@ -33,17 +33,13 @@ files:
|
|
33
33
|
- generators/acts_as_abusable_migration/templates
|
34
34
|
- generators/acts_as_abusable_migration/templates/migration.rb
|
35
35
|
- init.rb
|
36
|
-
- install.rb
|
37
36
|
- lib
|
38
37
|
- lib/abuse.rb
|
39
38
|
- lib/acts_as_abusable.rb
|
40
|
-
- rails
|
41
|
-
- rails/init.rb
|
42
39
|
- tasks
|
43
40
|
- tasks/acts_as_abusable_tasks.rake
|
44
41
|
- test
|
45
42
|
- test/acts_as_abusable_test.rb
|
46
|
-
- uninstall.rb
|
47
43
|
has_rdoc: true
|
48
44
|
homepage: http://github.com/linkingpaths/acts_as_abusable
|
49
45
|
post_install_message: |+
|
data/install.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Install hook code here
|
data/rails/init.rb
DELETED
data/uninstall.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Uninstall hook code here
|