querier 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/querier.rb +4 -0
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40c24ee7c142f7bf047c967cdbee1e703a7c41ee6aafda911c36e02008642b6f
4
- data.tar.gz: d4203cdcc429107b363c917ec493dc30c25e730fcef9cbf7a76f9653e533eb36
3
+ metadata.gz: 60b025f100c6a19b97cabb4a557d747b14c2abd434ef5910f1cf002ddcb0608a
4
+ data.tar.gz: e03521e2ae32e3058153ba938c3a406dca43295eabc6b367a766600cfe6af222
5
5
  SHA512:
6
- metadata.gz: 5400b60fbc5e6c9bcaec3cc844ed919f855557e8e76b78c6eede62da5700a040beeac4b2fae880fd92a5bdf068cf5052e255d5182306ba411d8fd8b3e6a925ca
7
- data.tar.gz: f7304d4dfaf39b60845e1931e2040f4bafa84a745158d4ea03f08459bf48e0f4eec72a28b255c2d6537c4e31da1279fd91c2240f875eaba03c11172ba1c6b1c2
6
+ metadata.gz: b74a99561d1ad83726ae9c01584e9e5272ac7d488a5ba710fe0e277184276ecb5a858e5073928d3481a51505b8f1cd206853d0d87f2ddd4b9c6a87fae759fc2e
7
+ data.tar.gz: addb5e51d7116df423933bdcadf112fa8abd47d8cf536e59bba5929e776ceb793df8ee4a2da015f2660e5b03bb2dcd998fa517cdffc4699c82cc89c2ae5d307e
data/lib/querier.rb CHANGED
@@ -35,6 +35,10 @@ class Querier
35
35
  @active_record_class.connection.select_one(@query)
36
36
  end
37
37
 
38
+ def select_sole
39
+ @active_record_class.connection.select_sole(@query)
40
+ end
41
+
38
42
  def select_values
39
43
  @active_record_class.connection.select_values(@query)
40
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: querier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gedean Dias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-13 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Active Record queries with variable number of params
14
14
  email: gedean.dias@gmail.com
@@ -31,14 +31,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 3.0.2
34
+ version: '3.1'
35
35
  required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.2.27
41
+ rubygems_version: 3.3.9
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Active Record Querier