pluck_all 1.2.1 → 1.2.2

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
  SHA1:
3
- metadata.gz: f437fda05144e7f3e3954b6240f2b693755ab275
4
- data.tar.gz: 764277729c198b2dee6c6e30c1d07c5f31341be0
3
+ metadata.gz: 596ba4bec488bc6ca468807fd12b00bc5674fa53
4
+ data.tar.gz: 61b78429832d6da496f584c9d53d34f06ca3bbe1
5
5
  SHA512:
6
- metadata.gz: e3d83b3af48aff47a6435a7091571aeea203b53c877307f3af625bf55830be2af3dd9a007e144ba8aa73e05bae61aec34b390d03bba208eacba6cd454332273f
7
- data.tar.gz: 44366aa3181d79553bf243c5aec694f12f324bfbe857cf6758203d1450f7074a85a17d323b3255bfbeaa2651c3160af3fec33b78627dd788a7fe85d49dbf4580
6
+ metadata.gz: 75b6d5c5b6a09b391dd4670c12db2cf293113b04bef353b440af808cb87b56efa7a162e546c3b6201508ea329630077887b44b0c6714f90f09952d59ced79731
7
+ data.tar.gz: b836df66e260f585700edaf1d1ca6a48df6079b84e7b7a3364d5e7ca8db8ea685f7d14a4f2b8df24edab44423dac904a54337ae782dd9f663cd7bd863e060168
@@ -1,13 +1,17 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.4
4
- before_install: gem install bundler -v 1.11.2
5
-
3
+ - 2.2
4
+ - 2.3
5
+ sudo: required
6
+ dist: trusty
7
+ before_install:
8
+ - gem install bundler
9
+ - gem update --system
10
+ - gem --version
6
11
  gemfile:
7
12
  - gemfiles/3.2.gemfile
8
13
  - gemfiles/4.2.gemfile
9
14
  - gemfiles/5.0.gemfile
10
-
11
15
  addons:
12
16
  code_climate:
13
17
  repo_token: db72eba1ff8fb1329dae5fb9b9dcd234243899d7a464ceb374e14a05ead27b7c
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
+ # PluckAll
2
+
1
3
  [![Gem Version](https://img.shields.io/gem/v/pluck_all.svg?style=flat)](http://rubygems.org/gems/pluck_all)
2
4
  [![Build Status](https://travis-ci.org/khiav223577/pluck_all.svg?branch=master)](https://travis-ci.org/khiav223577/pluck_all)
3
5
  [![RubyGems](http://img.shields.io/gem/dt/pluck_all.svg?style=flat)](http://rubygems.org/gems/pluck_all)
4
6
  [![Code Climate](https://codeclimate.com/github/khiav223577/pluck_all/badges/gpa.svg)](https://codeclimate.com/github/khiav223577/pluck_all)
5
7
  [![Test Coverage](https://codeclimate.com/github/khiav223577/pluck_all/badges/coverage.svg)](https://codeclimate.com/github/khiav223577/pluck_all/coverage)
6
8
 
7
- # PluckAll
8
-
9
9
  Pluck multiple columns/attributes in Rails 3, 4, 5, and can return data as hash instead of only array.
10
10
 
11
11
  This Gem standing on the shoulders of this [article](http://meltingice.net/2013/06/11/pluck-multiple-columns-rails/).
@@ -107,3 +107,9 @@ class ActiveRecord::Base
107
107
  self.where('').pluck_array(*args)
108
108
  end
109
109
  end
110
+
111
+ module ActiveRecord::NullRelation
112
+ def pluck_all(*args)
113
+ []
114
+ end
115
+ end
@@ -1,3 +1,3 @@
1
1
  module PluckAll
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluck_all
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - khiav reoy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.8
127
+ rubygems_version: 2.6.8
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Pluck multiple columns/attributes in Rails 3, 4, 5, and can return data as