collins_client 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/collins/api/admin.rb +21 -0
  4. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d9df823316dca0cd3a83aa67b878aebe5ea22818e40847d0e80141006711e06
4
- data.tar.gz: 0a7e34aac021a798ebebf791fa22a5c0ba004c397074f0beb1a48dbfd4aff98e
3
+ metadata.gz: e40af3e7b24fdad4633d743cdcd29fb94bacdff2ee63b41d8d67852b7e929d6f
4
+ data.tar.gz: 569924fc18ad11ca144312be96496f4fac654b6a67762dc610afedfe99faef90
5
5
  SHA512:
6
- metadata.gz: 2de1f4bd15558377b75cbef8f22adc934d579e997df73296b78fc30e2543035879628ea3b29db58fec36119a5c5e63c9dd2fd0f5bce705491a50cb5e9693a566
7
- data.tar.gz: 753d85733fa6f80dcefb50a170866a340125e8be736b4496091a05f770282b2b6508f9dd7059ba5cec052dc843aa4edf8a3da689af91d78c4cf8663e74bec0b8
6
+ metadata.gz: 4dc1e52ac49c7caa402af964108c98babd36a03bc0fa508808e6335cb5d568228ba74935c98e8409030491250805258a2478e2d40641b34a95f7b57110b73cff
7
+ data.tar.gz: ef5d37e8530b9bb1aa9675c44c97b284b03a205bbb8db1496591c7e70c63f40e9021fb3688cfad5a271b4a99ac126fc963c9859c39cd6e08271ebc45686ea8ed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -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.0
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
- rubyforge_project:
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