relation_scope 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +3 -0
  2. data/README.rdoc +6 -7
  3. data/VERSION +1 -1
  4. data/lib/relation_scope.rb +1 -1
  5. metadata +3 -3
data/CHANGELOG CHANGED
@@ -4,3 +4,6 @@
4
4
 
5
5
  1.0.1
6
6
  rename named scope method #select to #selects, do not conflict Array#select method
7
+
8
+ 1.0.2
9
+ update documentation
data/README.rdoc CHANGED
@@ -4,19 +4,18 @@ This plugin just for rails version 2.3.x with named scope module.
4
4
  Include name scope methods: where, joins, includes, selects, order, limit, offset, group, having
5
5
 
6
6
 
7
- == Usage
8
-
9
- User.order('created_at DESC').where(:name => 'test').limit(2) ...
7
+ == Installation
10
8
 
9
+ gem install relation_scope
11
10
 
12
- == Install
13
11
 
14
- git clone http://github.com/wenke/to_csv.git OR
12
+ == Usage
15
13
 
16
- ./script/plugin install git://github.com/wenke/relation_scope.git
14
+ User.order('created_at DESC').where(:name => 'test').limit(2)
15
+ User.joins(:roles).selects('distinct users.*')
17
16
 
18
17
 
19
- == Note
18
+ == License
20
19
 
21
20
 
22
21
  Copyright (c) 2011 [liangwenke8@gmail.com], released under the MIT license
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -9,7 +9,7 @@ module RelationScope
9
9
  }
10
10
  named_scope :joins, lambda { |joins| { :joins => joins } }
11
11
  named_scope :includes, lambda { |includes| { :include => includes } }
12
- named_scope :selects, lambda { |select| { :select => select } }
12
+ named_scope :selects, lambda { |select| { :select => select } }
13
13
  named_scope :order, lambda { |order| { :order => order } }
14
14
  named_scope :limit, lambda { |limit| { :limit => limit } }
15
15
  named_scope :offset, lambda { |offset| { :offset => offset } }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: relation_scope
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - LiangWenKe
@@ -14,7 +14,7 @@ date: 2011-03-23 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
17
- description: This gem suppords some very nice named scope methods as rails 3 activerecord relation.
17
+ description: This gem support some very nice named scope methods as rails 3 activerecord relation.
18
18
  email: liangwenke8@gmail.com
19
19
  executables: []
20
20
 
@@ -58,6 +58,6 @@ rubyforge_project: relation_scope
58
58
  rubygems_version: 1.6.2
59
59
  signing_key:
60
60
  specification_version: 3
61
- summary: Suppords very nice named scope methods for rails 2.2.x, 2.3.x
61
+ summary: Support very nice named scope methods for rails 2.2.x, 2.3.x
62
62
  test_files: []
63
63