superstore 1.1.3 → 1.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: fb477f21d0d3b90e713db682e74846af31321a7a
4
- data.tar.gz: dad7a819021bd45845e1d426e3b1590ef3bce3e5
3
+ metadata.gz: e7890297946bbb7455906b799256f2693c16e36d
4
+ data.tar.gz: 0c93ae922bf85404b277073e654a4cc5b6e1dc99
5
5
  SHA512:
6
- metadata.gz: 95248c38d62404bf032e85467a4d1d3876436bbb82a65821de8408a6a0b7c63eaf82198a97969cc33081031bb50718588b2054727f62a9ee16997248f52f1cf2
7
- data.tar.gz: 48c3911c2dc372f45a5ffed1b979308a204512d1689355de7b493d100754804dbf92e4c55d5b28971e1b04b91b73fe0b83b809fd5c31a065a77e3438352e2a13
6
+ metadata.gz: 25e0235eea40f69582d18836e89a71d3eea9094c976837148582e828d787b99be6286c91c0a83f94cc8c461f899a1721569a73215a0a5e237875c76dbf7df856
7
+ data.tar.gz: a86e16dd548140efe2fc3403e51d7e8351dafa0188978e238d289c1c628cdc9a014fe4786ce8dafd6e4684a7c196650bd98748ea7c8acceff0d7d6ca0f1583a2
@@ -62,7 +62,15 @@ module Superstore
62
62
  end
63
63
 
64
64
  def servers
65
- Array.wrap(config[:servers] || "127.0.0.1:9160")
65
+ @servers ||= begin
66
+ if config[:servers].is_a?(String)
67
+ config[:servers].split(',')
68
+ elsif config[:servers].is_a?(Array)
69
+ config[:servers]
70
+ else
71
+ "127.0.0.1:9160"
72
+ end
73
+ end
66
74
  end
67
75
 
68
76
  def execute(statement)
data/superstore.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'superstore'
5
- s.version = '1.1.3'
5
+ s.version = '1.1.4'
6
6
  s.description = 'ActiveModel for many attributes'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ["Michael Koziarski", "gotime"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Koziarski
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-18 00:00:00.000000000 Z
12
+ date: 2014-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel