thumbit 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.
Files changed (3) hide show
  1. data/README +28 -4
  2. data/lib/thumbit/version.rb +1 -1
  3. metadata +3 -3
data/README CHANGED
@@ -1,13 +1,37 @@
1
- ActsAsLikeable
1
+ Thumbit
2
2
  ==============
3
3
 
4
- Introduction goes here.
4
+ A simple like plugin for rails.
5
5
 
6
+ I have only tested this with :
7
+ Rails version : 3.0.1
8
+ Rubygems version : 1.3.7
9
+ Bundler version : 1.0.3
6
10
 
11
+ To install it as a plugin
12
+ rails plugin install git://github.com/madhums/thumbit.git
13
+
14
+ To install it as a gem, include the below in your 'Gemfile' and run "bundle install"
15
+ gem 'thumbit', '0.0.1'
16
+
7
17
  Example
8
18
  =======
9
19
 
10
- Example goes here.
20
+ You have a model 'Post',
11
21
 
22
+ class Post < ActiveRecord::Base
23
+ acts_as_likeable
24
+ end
12
25
 
13
- Copyright (c) 2010 [name of plugin creator], released under the MIT license
26
+ @post.like_it current_user # current_user being the user object
27
+ Post.find_likes_by user_obj # user_obj being the user object
28
+ Post.find_likes_for @post # @post being the instance of the class Post
29
+
30
+ Please feel free to fork and make your own changes.
31
+
32
+ TODO : Create proper documentation
33
+ Create proper tests
34
+
35
+ Credits : Highly inspired by acts_as_commentable and acts_as_rateable. This my first plugin/gem !
36
+
37
+ Copyright (c) 2010 [Madhusudhan], released under the MIT license
@@ -1,3 +1,3 @@
1
1
  module Thumbit
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thumbit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
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
  - Madhusudhan Srinivasa