base_indexer 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c01b13e3646e79aa71e842073e2382e5e1a84b2
4
- data.tar.gz: 01272b868e2e05c667e0872ceb432e17757739a5
3
+ metadata.gz: 8b8016d58fa02e63cca0b2a3daab356e9c783560
4
+ data.tar.gz: 6f866ecd834eb9908b5f3123dda5c38a1960e9f3
5
5
  SHA512:
6
- metadata.gz: 5aae823156dd24b4b2d1ac52af7d3f2f92710610e1ba5f93fb9f012737ec3e281352c93c6900713c719051e05d615251ffbd0be1fdc447dd43fa7d02db3267b0
7
- data.tar.gz: b2d6c804e643c4d24baf2ec4c4055e1a05c45d8b0f5e610959f299d159a4d2817fa3700e184488de9aad3143d5e2f9ef18d5f8153282b6818da8497c9a130b9a
6
+ metadata.gz: ae5d7a551f21234dfd71ce359d43f072876810e348053592d83266c0568a9061e42ad921358c4461f1a760d3afb8b99679c4d2d14ebb8c6824cf54f11fa4c0d3
7
+ data.tar.gz: 075db0c1dad9d2822d0a610d0b4c1f1bb144949f68607ff3634e551f56580962fc7db9aca1215db0236f48a27640fbf962f2f791677ddb17726cdaac26fbdc89
@@ -9,7 +9,8 @@ module BaseIndexer
9
9
 
10
10
  @result={:app_name=>Rails.configuration.app_name,:rails_env=>Rails.env,:version=>Rails.configuration.app_version,:last_restart=>(File.exists?('tmp/restart.txt') ? File.new('tmp/restart.txt').mtime : "n/a"),:last_deploy=>(File.exists?('REVISION') ? File.new('REVISION').mtime : "n/a"),:revision=>(File.exists?('REVISION') ? File.read('REVISION') : "n/a")}
11
11
  @result.update({:solr_cores=>BaseIndexer.solr_configuration_class_name.constantize.instance.get_configuration_hash})
12
-
12
+ @result.update({:gems=>Gem.loaded_specs})
13
+
13
14
  respond_to do |format|
14
15
  format.json {render json: @result.to_json}
15
16
  format.xml {render json: result.to_xml(root: 'status')}
@@ -9,4 +9,13 @@
9
9
  <strong>Current deployed revision:</strong> <%=@result[:revision]%><br />
10
10
  <strong>Last restart time:</strong> <%=@result[:last_restart]%> <br />
11
11
  <strong>Registered SOLR cores: </strong> <%=@result[:solr_cores]%> <br />
12
- </p>
12
+ </p>
13
+
14
+ <p><strong>Loaded Gem Versions:</strong></p>
15
+ <ul>
16
+ <% @result[:gems].sort.map do |gem_name,specs| %>
17
+ <li>
18
+ <%= "#{gem_name}: #{specs.version.to_s}" %>
19
+ </li>
20
+ <% end %>
21
+ </ul>
@@ -1,3 +1,3 @@
1
1
  module BaseIndexer
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmed Alsum