collins_client 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/collins/api/admin.rb +21 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e40af3e7b24fdad4633d743cdcd29fb94bacdff2ee63b41d8d67852b7e929d6f
|
4
|
+
data.tar.gz: 569924fc18ad11ca144312be96496f4fac654b6a67762dc610afedfe99faef90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc1e52ac49c7caa402af964108c98babd36a03bc0fa508808e6335cb5d568228ba74935c98e8409030491250805258a2478e2d40641b34a95f7b57110b73cff
|
7
|
+
data.tar.gz: ef5d37e8530b9bb1aa9675c44c97b284b03a205bbb8db1496591c7e70c63f40e9021fb3688cfad5a271b4a99ac126fc963c9859c39cd6e08271ebc45686ea8ed
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/collins/api/admin.rb
CHANGED
@@ -4,6 +4,12 @@ module Collins; module Api
|
|
4
4
|
|
5
5
|
module Admin
|
6
6
|
|
7
|
+
# Trigger a full reindex of Solr
|
8
|
+
#
|
9
|
+
# Note that this will trigger a full reindex of the assets and could cause
|
10
|
+
# extra load on Solr
|
11
|
+
#
|
12
|
+
# @param [Boolean] wait_for_completion Execute the reindexing synchronously
|
7
13
|
def repopulate_solr! wait_for_completion = true
|
8
14
|
parameters = {
|
9
15
|
:waitForCompletion => wait_for_completion
|
@@ -14,6 +20,21 @@ module Collins; module Api
|
|
14
20
|
|
15
21
|
end
|
16
22
|
|
23
|
+
# Reindex a single asset in Solr
|
24
|
+
#
|
25
|
+
# Note that this will trigger a reindex of this asset and could cause extra
|
26
|
+
# load on Solr
|
27
|
+
#
|
28
|
+
# @param [String,Collins::Asset] asset_or_tag The asset or asset tag of the
|
29
|
+
# asset you want to reindex
|
30
|
+
def reindex_asset! asset_or_tag
|
31
|
+
asset = get_asset_or_tag asset_or_tag
|
32
|
+
http_get("/api/admin/solr/asset/#{asset.tag}") do |response|
|
33
|
+
parse_response response, :expects => 200
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
17
38
|
end
|
18
39
|
end; end
|
19
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collins_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Matheny
|
@@ -162,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
|
-
|
166
|
-
rubygems_version: 2.7.7
|
165
|
+
rubygems_version: 3.0.3
|
167
166
|
signing_key:
|
168
167
|
specification_version: 4
|
169
168
|
summary: Client library for Collins API
|