foreman_virt_who_configure 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a85081422d76e0419d38b23ff3da3fea2dfc36f
4
- data.tar.gz: 757ca6961941ae5dc514e597c2b7732f71da8f29
3
+ metadata.gz: ee4227e4992392c6e28c5c78d67767da1b848d8f
4
+ data.tar.gz: 979259473442e7970dd08a06749b444eedde82cd
5
5
  SHA512:
6
- metadata.gz: 95d42c49546795861b2c9af62a1ebcad0c211be9b36b1a41250a307785115c36743c1ca1e50e0f2e33cd732211ed3811ce11b7ca309f9dd51cdb288a5bb9c6aa
7
- data.tar.gz: a2552d3d12577a1aa24e0c049526f3fa71c3cb62db5d484ccba0b08c71206bca29a82570de2d07a5a094d07641ec78c1a29b6484e75ba2ef28a05fed93513b81
6
+ metadata.gz: a99643747882bac9738c17cfabc6aab51e7e61e32e4c318f7942cb64009151bb4e0be21b4cef3f354c1e558c34f26be93e1901bc706bba72500656ce80194878
7
+ data.tar.gz: 18481a8b5857bdf33cc67b3f43d5af1607ff79d38d810db32d0936b24ff992dd9ff96264e69788a880fbf528064767fbae050fb24032988b14da6ba930c74716
@@ -1,7 +1,8 @@
1
1
  module SSO
2
2
  class BasicWithHidden < Basic
3
3
  def available?
4
- Thread.current[:service_user_login] = controller.api_request? && http_auth_set? && controller.is_a?(::Katello::Api::Rhsm::CandlepinProxiesController)
4
+ authentication = Rack::Auth::Basic::Request.new(controller.request.env)
5
+ Thread.current[:service_user_login] = authentication.provided? && authentication.basic? && authentication.credentials.first =~ /virt_who_reporter_\d+/ && controller.api_request? && controller.is_a?(::Katello::Api::Rhsm::CandlepinProxiesController)
5
6
  end
6
7
 
7
8
  def current_user
@@ -16,11 +16,11 @@
16
16
  <td><%= scope.where(:last_report_at => nil).count %></td>
17
17
  </tr>
18
18
  <tr>
19
- <td><%= link_to _("Out Of Date"), foreman_virt_who_configure_configs_path(:search => "status = out_of_date") %></td>
19
+ <td><%= link_to _("No Change"), foreman_virt_who_configure_configs_path(:search => "status = out_of_date") %></td>
20
20
  <td><%= out_of_date.count %></td>
21
21
  </tr>
22
22
  <tr>
23
- <td><%= link_to _("Up To Date"), foreman_virt_who_configure_configs_path(:search => "status = ok") %></td>
23
+ <td><%= link_to _("OK"), foreman_virt_who_configure_configs_path(:search => "status = ok") %></td>
24
24
  <td><%= scope.where.not(:last_report_at => nil).count - out_of_date.count %></td>
25
25
  </tr>
26
26
  <tr>
@@ -30,7 +30,7 @@
30
30
  </tbody>
31
31
  </table>
32
32
 
33
- <h4 class="header" style="margin-top: 12px;"><%= _('Latest Out of Date Configurations') %></h4>
33
+ <h4 class="header" style="margin-top: 12px;"><%= _('Latest Configurations Without Change') %></h4>
34
34
  <% if out_of_date.empty? %>
35
35
  <div class="ca"><%= _("No configuration found") %></div>
36
36
  <% else %>
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_virt_who_configure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman virt-who-configure team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello