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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52616a6406a6a077c0ac1f273ca2d4c09ed4c00d3990f2cae204ad82ac838e52
4
- data.tar.gz: f3949aeef20eec3384743cb2170f07d03a6670734cbc8a1f40893a2dac552770
3
+ metadata.gz: 7cfd1ba5f1b22ec1e9ca2497d8a671ddd1d3c3b400a76196581d3a082cd7b4f6
4
+ data.tar.gz: 040fcbe391b2058a6c9d67fa4947ab0e881f880c6a4f0a9eccb378418219dc8a
5
5
  SHA512:
6
- metadata.gz: 14579f65d8d1ba9b7c37813ca743a2b2b80d8a1ac065cb7bf410f8fd4fac2d0d439aaa7b67ced685d4c30d77769cf2409eb86983244b2df8be8d8700e5ce6a1b
7
- data.tar.gz: 804ba6ea55a925e26d3208dd589f59091bd22f0f4ae72058949bce0effa509c1e88a92aea07581803a3aaafec60d22dd32ad2936cfc9ee65010a52afe83c9d5a
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 `:all` or `:*`, it is interpreted as `SELECT *`
111
- statement, selecting all columns from the specified table:
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(:all).last
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plucker
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/lib/plucker.rb CHANGED
@@ -24,7 +24,7 @@ module Plucker
24
24
  args.each do |value|
25
25
  case value
26
26
  when Symbol
27
- if value.in?(%i[all *])
27
+ if value == :*
28
28
  scope_table_name.classify.constantize.columns.map do |column|
29
29
  columns << column.name
30
30
  alias_names << column.name.to_sym
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2023-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord