sessionm-cassandra_object 4.0.9 → 4.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWE4YjNlNjM2NWFjMDgxNWRjOTVmZDJlNmRjZDIwZGI5ZGFmMjMyYg==
4
+ M2Q1NWZkM2IwNWRiNmE0MTZjYTQzMTIxMDljOGM5NWJiNjEyOGQ5Nw==
5
5
  data.tar.gz: !binary |-
6
- MzA5ODFmM2EyM2Y3NjY2YTgwMjJlMDJlM2I2MTc2NmE0MGE4NzA0YQ==
6
+ MmM3MWFjYTYzY2FhZjE4ZjZiZGM5NzJkYTU1YTU2MGIxYzM0ZTVlOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2I4ZWFiN2RlMWNkMThlOGEyNTIwMjYwMjdmOTc1MTgyNTUyMzIxY2U0OGIw
10
- YTAwZjUyZWM0YTQ2ODFhOWI2NThlODFkYTI3MGQ4ZmYxNTk5MzU5M2Q2YmNk
11
- ZDE5ODEwYzE2Y2IwN2I2MjViOGFhMTdhNmZmMzkxZDA2ZjMxNGY=
9
+ M2UyNTUxMWIyNjNhZmVkYmIyNmJmOTZkZGNmYmZiYTk2ZmU0NTM4OTZlMjdj
10
+ NWUwNTMxM2ZiNjdiYWE0M2QzOTY2OTJiNTBjYmNjYTU1MjFjZDE0ZGQyYWZh
11
+ MmMzOWRjNDc4ZDAwYmUzMTYxYjdiNTg3YjliODNkM2I0MmUwZGM=
12
12
  data.tar.gz: !binary |-
13
- ZmNlOWE0MTJlNjdhZDMzMmRjOTYyMzJmYmQyMzM2MzFmMzdhNjI0N2NhNTJi
14
- OTVkN2I0YjVlNmQzMmI2MDE4OWQxOGFjZjJmZjk4Y2E4MjUxZjE1Mjc5MmQ0
15
- NmRkMWQ4NWZlYzRmYTAwN2ZmM2NhNjBiNDJiYmU1ZTQ4NDZiNDU=
13
+ MWIxZjU2YTczYWIyYjY2MjUxNzI4OGI0YzM1ZjZhYzc1Mjg4OTk4NGNkZTQy
14
+ ZTczNTFmYTBhMGI3YzU3YjNkMjk3NzM1Zjk5ZjUyYTVlMmQ3ZDQwMDhlOGUz
15
+ NjVmYTk3ZTRlNDQ4YzEzZmI1YjViOWMyMzljMDQwOTdlOWRiZmM=
@@ -120,9 +120,10 @@ module CassandraObject
120
120
  result = async ? self.execute_async(query, execute_options(opts)) : self.execute(query, execute_options(opts))
121
121
  return result if async
122
122
 
123
- result
124
- .inject({}) { |hsh, row| hsh[row[NAME_FIELD]] = row[VALUE_FIELD]; hsh }
125
- .slice(*columns.map(&:to_s))
123
+ data = result
124
+ .inject({}) { |hsh, row| hsh[row[NAME_FIELD]] = row[VALUE_FIELD]; hsh }
125
+
126
+ columns.map { |column| data[column.to_s] }
126
127
  end
127
128
 
128
129
  def add(column_family, key, by, fields, opts=nil)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '4.0.9'
5
+ s.version = '4.0.10'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sessionm-cassandra_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.9
4
+ version: 4.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Koziarski