integration_pal 0.2.2 → 0.2.3

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: 65ddc8d7e4e1ecc8db017fc3061fd480dcfddc9b
4
- data.tar.gz: 457799a13f31ac40b1f30cb6807b9f04e95deb64
3
+ metadata.gz: 59b002ba2404727ddc2b30b019fe051b6edca4fe
4
+ data.tar.gz: 83325ebb2c2946d9d94ef6a12adba50cbfe4852b
5
5
  SHA512:
6
- metadata.gz: 2d6be8a203ededbae66e021611ee0fd678ebc374da94a1447d4ec9b0137a7eed9912683f819e815c798a4cb54d7f6df1a0012d4f18352beb78f0579f8f9e6ff8
7
- data.tar.gz: 39c17b9d80b5aec24c44c0bf03647cfd14a05e6fabca8ab8f6941c0f7add1140f9c9eba63e9e48b9443ef141f7e50fc681f7ad672f2e5d3657c1ad1253c66419
6
+ metadata.gz: 02c6fd6359d1c50b8011f8b92925a4f53ec7c152b62be5bf364650c5e26c5a84193ed7ffbcaae701db85663982054ddd0241d26099878ce1c77fb66e607638b1
7
+ data.tar.gz: 3b38a505c968460c2c8d6239ee65ee9a59c78c8f2134dd82732b24d3bde8aef3967032e9e5e98583e800c2481b1663ee6f8eb9168a35b1985baee7ce895b5171
@@ -6,7 +6,12 @@ module IntegrationPal
6
6
  def authenticate!
7
7
  # pretend to be logged in; you can still go directly to /login if you want to test the SAML flow
8
8
  session[:saml_username] ||= ENV['USER'] if Rails.env.in?(%w(development test))
9
- redirect_to saml2_login_url unless session[:saml_username]
9
+ redirect_to saml2_login_url unless logged_in?
10
10
  end
11
+
12
+ def logged_in?
13
+ session[:saml_username].present?
14
+ end
15
+ helper_method :logged_in?
11
16
  end
12
17
  end
@@ -73,7 +73,6 @@ module IntegrationPal
73
73
 
74
74
  def logout
75
75
  reset_session
76
- redirect_to root_url
77
76
  end
78
77
 
79
78
  def metadata
@@ -0,0 +1,3 @@
1
+
2
+ <h1>You've been logged out</h1>
3
+
@@ -1,3 +1,3 @@
1
1
  module IntegrationPal
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integration_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Tanner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-24 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -243,6 +243,7 @@ files:
243
243
  - app/views/integration_pal/jobs/index.html.erb
244
244
  - app/views/integration_pal/jobs/new.html.erb
245
245
  - app/views/integration_pal/jobs/show.html.erb
246
+ - app/views/integration_pal/saml/logout.html.erb
246
247
  - app/views/integration_pal/tasks/index.html.erb
247
248
  - app/views/integration_pal/tasks/show.html.erb
248
249
  - app/views/integration_pal/workers/_form.html.erb
@@ -350,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
350
351
  version: '0'
351
352
  requirements: []
352
353
  rubyforge_project:
353
- rubygems_version: 2.5.2.1
354
+ rubygems_version: 2.6.12
354
355
  signing_key:
355
356
  specification_version: 4
356
357
  summary: Mountable engine for SIS integrations