CloudSesame 0.3.0 → 0.3.1

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: c1ab042a61e9108d439ecddd4bdf5a2b5548aa8f
4
- data.tar.gz: 8b3015719e50ade4f074fb471cac15cc8abe11f3
3
+ metadata.gz: 402d2ac3ca7699449421d30384557896148efdf7
4
+ data.tar.gz: 08c2af5ec2ffcdb840ec623d70fc5a8a9737e5ab
5
5
  SHA512:
6
- metadata.gz: 32f17eacc19c2ddb90270fe09f5e2c7c8eb0174633f269dba9fc38d1bad259362a86000b40a845cc26d4cea2b768ebafba015c66c6d83361009b308b6c5bb272
7
- data.tar.gz: 2d496df6ccdc7fd728aadd58ad6fc1233d98ace2a4924026462bd7f8372116f046cbccce2137b6ac139022b829301f3534945997624f0e1b016394881cf193b6
6
+ metadata.gz: c7273a5eab74e4bee6c0303994d1a0082f95c797381bcd25796a41bf199d39e4f230151cd42bf82185fcc73ea03785c68dba97e2b747fa9fe6bb01d4c0b05e1b
7
+ data.tar.gz: 14b5cc980cdf6c325c0fd0848297b6c6852f1bbe525e21b25ddc832e5cbeab29cac19782c29d3506041991c0cc5c9c74609496babd8a33d189139c792fe08085
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- CloudSesame (0.3.0)
4
+ CloudSesame (0.3.1)
5
5
  aws-sdk (~> 2)
6
6
 
7
7
  GEM
data/cloud_sesame.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'CloudSesame'
3
- s.version = '0.3.0'
3
+ s.version = '0.3.1'
4
4
  s.date = '2016-01-20'
5
5
  s.summary = "AWS CloudSearch Query DSL"
6
6
  s.description = "AWS CloudSearch Query DSL"
@@ -3,12 +3,14 @@ module CloudSesame
3
3
  module DSL
4
4
  module SortMethods
5
5
 
6
- def sort(input = nil)
6
+ def sort(input = false)
7
7
  if input.is_a? Hash
8
- input.each { |key, value| request.sort[key] = value }
8
+ request.sort = input
9
9
  return self
10
10
  elsif input
11
11
  request.sort[input]
12
+ elsif input.nil?
13
+ return self
12
14
  else
13
15
  request.sort.sorting_attributes
14
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CloudSesame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chu