plucker 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/plucker/version.rb +1 -1
- data/lib/plucker.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cfd1ba5f1b22ec1e9ca2497d8a671ddd1d3c3b400a76196581d3a082cd7b4f6
|
4
|
+
data.tar.gz: 040fcbe391b2058a6c9d67fa4947ab0e881f880c6a4f0a9eccb378418219dc8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfef48bfb07360c3ea2ecc92ec692be6e36854927b7cd48bec54c793e8040578dee12340bc1c6a806f04b997245f77bf68f3a3f12f04d1cdf9d0e606c27407c
|
7
|
+
data.tar.gz: 9c3e49157ec5da342597d82ef17ca9265aadb08bb1634541428ce8fec292bef1a3436a1b3db4a1fdc6109fb4e82b898a719bfc2e7b35d581fd555b151d27bbe3
|
data/README.md
CHANGED
@@ -107,11 +107,11 @@ post = Post.joins(:author).plucker(:title, :name).last
|
|
107
107
|
#<struct title="How to make pizza", name="Henry">
|
108
108
|
```
|
109
109
|
|
110
|
-
When using the symbol
|
111
|
-
|
110
|
+
When using the symbol `:*`, it is interpreted as `SELECT *` statement,
|
111
|
+
selecting all columns from the specified table:
|
112
112
|
|
113
113
|
```ruby
|
114
|
-
post = Post.plucker(
|
114
|
+
post = Post.plucker(:*).last
|
115
115
|
#<struct id=1, title="How to make pizza", author_id=1, created_at=Sat, 21 Oct 2023 14:24:08 UTC +00:00, updated_at=Sat, 21 Oct 2023 14:24:08 UTC +00:00>
|
116
116
|
```
|
117
117
|
|
data/lib/plucker/version.rb
CHANGED
data/lib/plucker.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plucker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pioz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|