likeit 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.rdoc CHANGED
@@ -8,11 +8,6 @@ GitHub Project: https://github.com/gagansharma/likeit
8
8
 
9
9
  -----
10
10
 
11
- TODO List:
12
-
13
- * Better documentation (Making use of rdoc and ri)
14
- * Write tests
15
-
16
11
  == Installation
17
12
 
18
13
  === Rails 3
data/Rakefile CHANGED
@@ -2,8 +2,9 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('likeit', '0.0.1') do |p|
6
- p.description = "A generic Liking system."
5
+
6
+ Echoe.new('likeit', '0.0.2') do |p|
7
+ p.description = "A generic Liking and Dis-Liking system."
7
8
  p.url = "https://github.com/gagansharma/likeit"
8
9
  p.author = "Gagan Sharma"
9
10
  p.email = "developer.gagan@gmail.com"
@@ -5,7 +5,7 @@ class LikeitMigration < ActiveRecord::Migration
5
5
  t.references :likeable, :polymorphic => true, :null => false
6
6
  t.timestamps
7
7
  end
8
-
8
+
9
9
  add_index :likes, [:liker_id, :liker_type]
10
10
  add_index :likes, [:likeable_id, :likeable_type]
11
11
  end
@@ -5,7 +5,7 @@ class Like < ActiveRecord::Base
5
5
 
6
6
  class << self
7
7
  def likes_on(likeable)
8
- where(["likeable_id = ? AND likeable_type = ?", likeable.id, likeable.class.name])
8
+ where(["likeable_id = ? AND likeable_type = ?", likeable.id, likeable.class.name])
9
9
  end
10
10
  end
11
11
  end
data/likeit.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{likeit}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Gagan Sharma"]
9
9
  s.date = %q{2012-07-20}
10
- s.description = %q{A generic liking system.}
10
+ s.description = %q{A generic Liking and Dis-Liking system.}
11
11
  s.email = %q{developer.gagan@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/likeit.rb", "lib/likeit/likeable.rb", "lib/likeit/liker.rb", "lib/generators/likeit_generator.rb", "lib/generators/templates/migration.rb", "lib/generators/templates/model.rb"]
13
13
  s.files = ["README.rdoc", "Rakefile", "likeit.gemspec", "init.rb", "lib/likeit.rb", "lib/likeit/likeable.rb", "lib/likeit/liker.rb", "lib/generators/likeit_generator.rb", "lib/generators/templates/migration.rb", "lib/generators/templates/model.rb"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{likeit}
18
18
  s.rubygems_version = %q{1.3.7}
19
- s.summary = %q{A generic Liking system.}
19
+ s.summary = %q{A generic Liking and Dis-Liking system}
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: likeit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gagan Sharma
@@ -18,7 +18,7 @@ cert_chain: []
18
18
  date: 2012-07-20 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
- description: A generic liking system.
21
+ description: A generic Liking and Dis-Liking system.
22
22
  email: developer.gagan@gmail.com
23
23
  executables: []
24
24
 
@@ -81,6 +81,6 @@ rubyforge_project: likeit
81
81
  rubygems_version: 1.8.15
82
82
  signing_key:
83
83
  specification_version: 1
84
- summary: A generic Liking system.
84
+ summary: A generic Liking and Dis-Liking system
85
85
  test_files: []
86
86