ar-column-as 0.0.2 → 0.0.3

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.rdoc +18 -0
  2. metadata +8 -8
  3. data/README +0 -3
@@ -0,0 +1,18 @@
1
+ == ar-column-as
2
+
3
+ Adds a few simple helper methods that can be used with ActiveRecord::select.
4
+
5
+ == Installation
6
+
7
+ gem install ar-column-as
8
+
9
+ == Example
10
+
11
+ BlogPost.all(
12
+ :select => [Sql.year(:published_at, :as => :year), Sql.month(:published_at, :as => :month), Sql.column_as('count(id)', :as => :posts)].join(', '),
13
+ :group => [Sql.year(:published_at), Sql.month(:published_at)].join(', '),
14
+ :limit => 12
15
+ )
16
+
17
+
18
+ This project uses MIT-LICENSE.
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ar-column-as
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Aaron Hinni
@@ -10,11 +10,11 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-20 00:00:00 -05:00
13
+ date: 2011-04-22 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
17
- description: Basic column_as support for ActiveRecord
17
+ description: Adds a few simple helper methods that can be used with ActiveRecord::select.
18
18
  email:
19
19
  - aaron@vedadev.com
20
20
  executables: []
@@ -28,9 +28,9 @@ files:
28
28
  - MIT-LICENSE
29
29
  - Rakefile
30
30
  - Gemfile
31
- - README
31
+ - README.rdoc
32
32
  has_rdoc: true
33
- homepage: http://vedadev.com
33
+ homepage: https://github.com/ahinni/ar-column-as
34
34
  licenses: []
35
35
 
36
36
  post_install_message:
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- hash: 1609137101423134360
46
+ hash: -710187619136346147
47
47
  segments:
48
48
  - 0
49
49
  version: "0"
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- hash: 1609137101423134360
55
+ hash: -710187619136346147
56
56
  segments:
57
57
  - 0
58
58
  version: "0"
@@ -62,6 +62,6 @@ rubyforge_project:
62
62
  rubygems_version: 1.5.2
63
63
  signing_key:
64
64
  specification_version: 3
65
- summary: Basic column_as support for ActiveRecord
65
+ summary: Adds a few simple helper methods that can be used with ActiveRecord::select.
66
66
  test_files: []
67
67
 
data/README DELETED
@@ -1,3 +0,0 @@
1
- Adds a few simple helper methods that can be used with ActiveRecord::select.
2
-
3
- This project uses MIT-LICENSE.