caseblocks_api 0.2.9 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.11
|
data/caseblocks_api.gemspec
CHANGED
@@ -8,11 +8,11 @@ module CaseblocksAPI
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def execute_single(case_type, property_name, value, page, page_size)
|
11
|
-
@client.get("/case_blocks/#{case_type}", {query: {search: true, property: property_name, value: value, page: page, page_size: page_size}})
|
11
|
+
@client.get("/case_blocks/#{case_type}/search", {query: {search: true, property: property_name, value: value, page: page, page_size: page_size}})
|
12
12
|
end
|
13
13
|
|
14
14
|
def execute_multiple(case_type, properties, page, page_size)
|
15
|
-
@client.post("/case_blocks/#{case_type}", :body => {search: true, properties: properties, page: page, page_size: page_size }.to_json)
|
15
|
+
@client.post("/case_blocks/#{case_type}/search", :body => {search: true, properties: properties, page: page, page_size: page_size }.to_json)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -14,7 +14,7 @@ describe CaseblocksAPI::Finder do
|
|
14
14
|
Given (:find_by_property) { CaseblocksAPI::Finder.new(client) }
|
15
15
|
When (:result) { find_by_property.execute_single(case_type, property_name, value, page, page_size) }
|
16
16
|
Then { expect(result).to eql client.result}
|
17
|
-
Then { expect(client.requested_url).to eql "/case_blocks/#{case_type}" }
|
17
|
+
Then { expect(client.requested_url).to eql "/case_blocks/#{case_type}/search" }
|
18
18
|
Then { expect(client.params).to eql({query: {search: true, property: property_name, value: value, page: page, page_size: page_size}}) }
|
19
19
|
end
|
20
20
|
|
@@ -24,7 +24,7 @@ describe CaseblocksAPI::Finder do
|
|
24
24
|
Given (:page_size) { "100" }
|
25
25
|
Given (:find_by_properties) { CaseblocksAPI::Finder.new(client) }
|
26
26
|
When (:result) { find_by_properties.execute_multiple(case_type, properties, page, page_size) }
|
27
|
-
Then { expect(client.requested_url).to eql "/case_blocks/#{case_type}" }
|
27
|
+
Then { expect(client.requested_url).to eql "/case_blocks/#{case_type}/search" }
|
28
28
|
Then { expect(client.params).to eql({body: {search: true, properties: properties, page: page, page_size: page_size}.to_json}) }
|
29
29
|
end
|
30
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caseblocks_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -215,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: '0'
|
216
216
|
segments:
|
217
217
|
- 0
|
218
|
-
hash:
|
218
|
+
hash: 3224870814932925849
|
219
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
220
|
none: false
|
221
221
|
requirements:
|