trample_search 0.18.3 → 0.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trample/swagger.rb +3 -3
- data/lib/trample/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 471a63ed2945fb11fc356b666baa380ed98c483c
|
4
|
+
data.tar.gz: 17e4c3bca0292dbfa47d536717427b970a552e0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b98aa1c9f482913616d2a5df88624a8d6fa30dd23a120b3ec88243226f40eb1321b1a35f8eda850754f67fb625c4e41d5b8a55baa4eed3b6ad472ac0e2b5a0d1
|
7
|
+
data.tar.gz: 4d2fbd7cf5570ae5ffa822704b6d28c70421c259cf9c4278b1108751999bd4547c3b37384b1f68fa4e1f6d7654f4e33ecc254447282ec08d4de40887246eba09
|
data/lib/trample/swagger.rb
CHANGED
@@ -67,11 +67,11 @@ module Trample
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def trample_swagger(search_class, path)
|
70
|
+
def trample_swagger(search_class, path, opts = {})
|
71
71
|
swagger_path "#{path}/new" do
|
72
72
|
operation :get do
|
73
73
|
key :description, "Instantiate default search. See the corresponding PUT operation for valid inputs."
|
74
|
-
key :tags, ['search']
|
74
|
+
key :tags, opts[:tags] || ['search']
|
75
75
|
|
76
76
|
response 200 do
|
77
77
|
key :description, 'Trample response'
|
@@ -102,7 +102,7 @@ module Trample
|
|
102
102
|
end
|
103
103
|
|
104
104
|
key :description, description
|
105
|
-
key :tags, ['search']
|
105
|
+
key :tags, opts[:tags] || ['search']
|
106
106
|
|
107
107
|
parameter paramType: :path do
|
108
108
|
key :name, :id
|
data/lib/trample/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trample_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- richmolj
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|