que-view 0.2.0 → 0.2.2

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
  SHA256:
3
- metadata.gz: 38f9f8ac4b062389e01cec98fee2320a8c8e59f29d8edd86aa2be02cec38e1af
4
- data.tar.gz: 1768c7efe2e99b73707f1fa869ea30e36b988423193dad3ddd92754cf5831099
3
+ metadata.gz: fe897981285a9f768bff66ecd9aefcb27c240b8079f53a8362233b03c23a5a22
4
+ data.tar.gz: 0ccbb26e73886798771504f7d4b35fe6e0efbb0a4a8cbc3cdb88febbee06de57
5
5
  SHA512:
6
- metadata.gz: d3e47f14f62dfad432f2a172199c32635f1095770bcf81184845848f3464e2e414b5640db774cd35ba800dbe873ecdddb7530e56128a8697b32c7b63c15a9681
7
- data.tar.gz: 15f29072e2fc6d31b8b675f52c1210821645f3180e1190b0d48b918a949f6a2dae61f1102afe59c84f800e792f06dc194b196c0c5a7e571ed684e968919e1e4f
6
+ metadata.gz: 98ba5de2aaed13590ebeb01863328990426bc1a3983f545f48fbf7eb24773be46f689e5413e2749e73650042bd62d119248042607f382f7c208d10a1bf25882b
7
+ data.tar.gz: ac1a7ae011e70d2613023013dc294a8ff5aae83a72150ecb7fd72d78801dc5f50fb6c25e4f8fcad354c26d55ec2ad84a5ac9f78bfda9663e689fc2b956a7a32d
@@ -3,19 +3,19 @@
3
3
  module Que
4
4
  module View
5
5
  class ApplicationController < ActionController::Base
6
- http_basic_authenticate_with name: ::Que::Web.configuration.ui_username,
7
- password: ::Que::Web.configuration.ui_password,
6
+ http_basic_authenticate_with name: ::Que::View.configuration.ui_username,
7
+ password: ::Que::View.configuration.ui_password,
8
8
  if: -> { basic_auth_enabled? }
9
9
 
10
10
  private
11
11
 
12
12
  def basic_auth_enabled?
13
- configuration = ::Que::Web.configuration
13
+ configuration = ::Que::View.configuration
14
14
 
15
15
  return false if configuration.ui_username.blank?
16
16
  return false if configuration.ui_password.blank?
17
17
 
18
- configuration.ui_secured_environments.include?(Rails.env)
18
+ configuration.ui_secured_environments.include?(::Rails.env)
19
19
  end
20
20
  end
21
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Que
4
4
  module View
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdanov Anton