pluck_to_hash 0.1.3 → 0.1.4

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: eb91aa6d4bed6c68b89a0f93d8302a583c8457f3
4
- data.tar.gz: 31e52f1a8b768a4f59707b3fef65ca839cc111d2
3
+ metadata.gz: 6cc4111bafde1bf250b1fdfcf6e026e57cc8a16a
4
+ data.tar.gz: 545491238c25aacb3ea58a585f913a9c9f383c2e
5
5
  SHA512:
6
- metadata.gz: 67aa53827c97b17ef1a0d76c2215c39961bfc8ad5045e734118de4de116d4e4feed010b53ae8aa88456c4f1d995baa4959f605a486eb458b610e9a74beea6601
7
- data.tar.gz: e100396c843f6fb33634b8659476bc2eee6300b394b2c6fe0c9e323e3af2a2e2df98b56a5a8721168d17ab4472cefa7ff9780a5fb60f8b4a5d119fb0532f1ad6
6
+ metadata.gz: 96fa60aa01a6fa9178c7a6645256f08c5d00c950fbec2ad2fb417eaadfcc01bd7aa466d01f2e36e722155586d786506ddebdef449cbf391b9209f81f296175a6
7
+ data.tar.gz: 9f75a7b6546880b6d4bd2e70237c59449fc7988ac8dfae3dd0d56d591b27a2d70c18897bd40ae206a9f1cb55a806c784cc7a39a165f0fc98ea7ed374c4d9d51a
data/lib/pluck_to_hash.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  require_relative "./pluck_to_hash/version"
2
2
 
3
3
  module PluckToHash
4
- extend ActiveSupport::Concern
4
+ def self.included(base)
5
+ base.extend(ClassMethods)
6
+ end
5
7
 
6
8
  module ClassMethods
7
9
  def pluck_to_hash(*keys)
@@ -1,3 +1,3 @@
1
1
  module PluckToHash
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -24,5 +24,4 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rspec", "~> 3.2"
25
25
 
26
26
  spec.add_dependency "activerecord", ">= 4.0.2"
27
- spec.add_dependency "activesupport", ">= 4.0.2"
28
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluck_to_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Girish S
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 4.0.2
83
- - !ruby/object:Gem::Dependency
84
- name: activesupport
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 4.0.2
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 4.0.2
97
83
  description: Extend ActiveRecord pluck to return hash instead of an array. Useful
98
84
  when plucking multiple columns.
99
85
  email: