multipluck 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -0
- data/Rakefile +1 -1
- data/lib/multipluck/version.rb +1 -1
- metadata +7 -7
- data/README.rdoc +0 -17
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
== Multipluck for Rails
|
2
|
+
|
3
|
+
pluck() multiple columns instead of just one!
|
4
|
+
|
5
|
+
# Fetch all user ids and names
|
6
|
+
User.pluck([:id, :name])
|
7
|
+
|
8
|
+
=> [ [1, "bob"], [2, "simone"], ... ]
|
9
|
+
|
10
|
+
== Getting started
|
11
|
+
|
12
|
+
1. Add the gem to your Gemfile
|
13
|
+
|
14
|
+
gem 'multipluck'
|
15
|
+
|
16
|
+
2. Pluck forth!
|
17
|
+
|
18
|
+
This project rocks and uses MIT-LICENSE. Yes it does.
|
data/Rakefile
CHANGED
data/lib/multipluck/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multipluck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,18 +13,18 @@ date: 2012-04-23 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70327632894820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70327632894820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70327632894160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70327632894160
|
36
36
|
description:
|
37
37
|
email:
|
38
38
|
- davidwright@gmail.com
|
@@ -46,7 +46,7 @@ files:
|
|
46
46
|
- lib/tasks/multipluck_tasks.rake
|
47
47
|
- MIT-LICENSE
|
48
48
|
- Rakefile
|
49
|
-
- README.
|
49
|
+
- README.md
|
50
50
|
- test/dummy/app/assets/javascripts/application.js
|
51
51
|
- test/dummy/app/assets/stylesheets/application.css
|
52
52
|
- test/dummy/app/controllers/application_controller.rb
|
data/README.rdoc
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
== Multipluck for Rails
|
2
|
-
|
3
|
-
pluck() multiple columns instead of just one!
|
4
|
-
|
5
|
-
# Fetch all user ids and names
|
6
|
-
User.pluck([:id, :name])
|
7
|
-
# => [ [1, "bob"], [2, "simone"], ... ]
|
8
|
-
|
9
|
-
== Getting started
|
10
|
-
|
11
|
-
1. Add the code to your Gemfile
|
12
|
-
|
13
|
-
gem 'multipluck', :git => 'git://github.com/hanzq/multipluck.git'
|
14
|
-
|
15
|
-
2. Pluck forth!
|
16
|
-
|
17
|
-
This project rocks and uses MIT-LICENSE. Yes it does.
|