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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8016d58fa02e63cca0b2a3daab356e9c783560
|
4
|
+
data.tar.gz: 6f866ecd834eb9908b5f3123dda5c38a1960e9f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
data/lib/base_indexer/version.rb
CHANGED