tagalys 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tagalys.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14c0ed3c8c3432b54c79b55c43db59e7e02d6fc235e96a2ea51b1e72e9f0c714
4
- data.tar.gz: 6eaa6ee3fe3d660888e03e188498974bb9ab78cf6787392337db36d1f1a70d0e
3
+ metadata.gz: 6e778249ab70ff53c06e63175e29b74ede0952593c86292fb3817504bdbea944
4
+ data.tar.gz: a7467a7d501556d32c9595bede53174f90df61a06147def5677d63370d607c96
5
5
  SHA512:
6
- metadata.gz: ff1033e812c65effdf5a42a9eb6ae62342154c12f991946f0b3a4c32fd61c62287ed0b9161e898d08194d4c0136329159abf1111bc22165d07e13e16d03aee3a
7
- data.tar.gz: 0a993a1ae8a57cb3889f84a3364c28255a966a3a3f75efa5bdd0f089bb6b4c30b50d63cbcdbdbbe8583a2d31947b02d21fd6ad8ba9ea9f15799633d661ecc1be
6
+ metadata.gz: cd8b095e76532bd4b158b25a336b84116a96bcab72c74696e599bba5ed49e09a6ff0965c8474c3a427eed74a643cfa10b2ebc8d7dfdf83f685e031075255dd53
7
+ data.tar.gz: dbb717eb48f0dd52d389c565c3771d8e552f97758d8febf878570f6c2e18158a44b39b422f4bb025df9e8477940bb25f24fc5de5aa46e43d5ed470ee52755297
data/lib/tagalys.rb CHANGED
@@ -19,12 +19,13 @@ module Tagalys
19
19
  yield(configuration)
20
20
  end
21
21
 
22
- def search(query=nil, filters=nil, page=1, per_page=30)
22
+ def search(query=nil, filters=nil, sort=nil, page=1, per_page=30)
23
23
  return { status: "Either query or filter should be present" } if query == nil && filters == nil
24
24
  # return { status: "Filter should be a hash" } if filters && filters.class != Hash
25
25
  request_body = {
26
26
  identification: identification,
27
27
  q: query.strip.length > 0 ? query : nil,
28
+ sort: sort,
28
29
  qf: filters,
29
30
  page: page,
30
31
  per_page: per_page,
@@ -39,9 +40,10 @@ module Tagalys
39
40
  search_response = request_tagalys('/search', request_body)
40
41
  end
41
42
 
42
- def get_page_details(page_name, page=1, per_page=30)
43
+ def get_page_details(page_name, sort=nil, page=1, per_page=30)
43
44
  request_body = {
44
45
  identification: identification,
46
+ sort: sort,
45
47
  request: [
46
48
  "total",
47
49
  "results",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagalys
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
  - Anbazhagan Palani