linkingpaths-acts_as_abusable 0.0.1 → 0.0.2

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.
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 reported abuses
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 abuses
52
+ # Still not evaluated abuse reports
53
53
  penthouse_sweetie_photo.reported_abuses.pending
54
54
 
55
- # Confirmed. This is inter....erhm... and abuse.
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 supposely is an abuse
68
+ # Resource that is linked to the abuse report
69
69
  abuse.resource
70
70
  </pre>
71
71
 
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{acts_as_abusable}
3
- s.version = "0.0.1"
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", "install.rb", "lib", "lib/abuse.rb", "lib/acts_as_abusable.rb", "rails", "rails/init.rb", "tasks", "tasks/acts_as_abusable_tasks.rake", "test", "test/acts_as_abusable_test.rb", "uninstall.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 File.dirname(__FILE__) + "/rails/init"
1
+ require "acts_as_abusable"
@@ -1,3 +1,5 @@
1
+ require 'abuse'
2
+
1
3
  module LinkingPaths
2
4
  module Acts #:nodoc:
3
5
  module Abusable #:nodoc:
@@ -30,4 +32,8 @@ module LinkingPaths
30
32
 
31
33
  end
32
34
  end
35
+ end
36
+
37
+ ActiveRecord::Base.class_eval do
38
+ include LinkingPaths::Acts::Abusable
33
39
  end
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.1
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
@@ -1,5 +0,0 @@
1
- require 'acts_as_abusable'
2
-
3
- ActiveRecord::Base.class_eval do
4
- include LinkingPaths::Acts::Abusable
5
- end
data/uninstall.rb DELETED
@@ -1 +0,0 @@
1
- # Uninstall hook code here