mumukit-login 6.1.9 → 7.0.0

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: 98a58c54fb727d1043865ff9a80c288e9db0d3c5a86e07135f5296f54edc8682
4
- data.tar.gz: eea9e88bedd8e22cc6567179a7b68324d93d653214110f6791662a5db1bb1b1a
3
+ metadata.gz: b8200b72f9ae05c8235f7e53b81857ae3212a82fec4d301e5c994b817f5aa7a2
4
+ data.tar.gz: 0165fab28ec7ae0f46b7364abbf9af0bbd96b0a2e03d765413632eaad21e6f40
5
5
  SHA512:
6
- metadata.gz: 1782e1f6a12158a45fdf133ff570f395cdb552a93207768d7fb14c98fa003153f67e8ba10aa5e52940ab7ee24e70be832b2c7e897774c8a6cecb313e5c0f792d
7
- data.tar.gz: 220ece34cddbbad92765a620014d44e66c5a97ee79a09e10fda03efee41e1059e3fc5a65b967b295c6a1275aecf689ca15dc332836f986ded2db15328ef6d14c
6
+ metadata.gz: 14ee27ad4add9cfdc80b40fdabaf497f0db291ca0c3035b732a6ac220c87de0e78d1318f414e18b3c9a09958acfc8571b61b4cadda954ccadabb3a46c6d80807
7
+ data.tar.gz: 2d4c7d91d203aa7fd4c37da0e48122cd364ebe0674c1cc5e9765cd00aa15aef18fb918b4ce3369c999826254633dfcb825b48e1eca10eacb4a3aa668e2236fd3
@@ -1,3 +1,5 @@
1
1
  require_relative './helpers/authentication_helpers'
2
2
  require_relative './helpers/authorization_helpers'
3
3
  require_relative './helpers/login_controller_helpers'
4
+ require_relative './helpers/organization_helpers'
5
+ require_relative './helpers/login_settings_helpers'
@@ -0,0 +1,13 @@
1
+ module Mumukit::Login::LoginSettingsHelpers
2
+ def login_settings
3
+ @login_settings ||= Mumukit::Login::Settings.new(login_methods)
4
+ end
5
+
6
+ def customized_login_methods?
7
+ login_methods.size < Mumukit::Login::Settings.login_methods.size
8
+ end
9
+
10
+ def inconsistent_public_login?
11
+ customized_login_methods? && public?
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Mumukit::Login::OrganizationHelpers
2
+ def login_provider_object
3
+ @login_provider_object ||= login_provider.try { |it| Mumukit::Login::Provider.parse_login_provider it }
4
+ end
5
+ end
@@ -58,12 +58,6 @@ module Mumukit::Login::Provider
58
58
  end
59
59
  end
60
60
 
61
- module Mumukit::Platform::Organization::Helpers
62
- def login_provider_object
63
- @login_provider_object ||= login_provider.try { |it| Mumukit::Login::Provider.parse_login_provider it }
64
- end
65
- end
66
-
67
61
  require_relative './provider/base'
68
62
 
69
63
  Mumukit::Login::Provider.enabled_providers.each do |it|
@@ -75,17 +75,3 @@ class Mumukit::Login::Settings
75
75
  [:user_pass]
76
76
  end
77
77
  end
78
-
79
- class Mumukit::Platform::Organization::Settings < Mumukit::Platform::Model
80
- def login_settings
81
- @login_settings ||= Mumukit::Login::Settings.new(login_methods)
82
- end
83
-
84
- def customized_login_methods?
85
- login_methods.size < Mumukit::Login::Settings.login_methods.size
86
- end
87
-
88
- def inconsistent_public_login?
89
- customized_login_methods? && public?
90
- end
91
- end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '6.1.9'
3
+ VERSION = '7.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-login
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.9
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -224,22 +224,16 @@ dependencies:
224
224
  name: mumukit-platform
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '2.6'
230
- - - "<"
227
+ - - "~>"
231
228
  - !ruby/object:Gem::Version
232
- version: '5'
229
+ version: '5.0'
233
230
  type: :runtime
234
231
  prerelease: false
235
232
  version_requirements: !ruby/object:Gem::Requirement
236
233
  requirements:
237
- - - ">="
238
- - !ruby/object:Gem::Version
239
- version: '2.6'
240
- - - "<"
234
+ - - "~>"
241
235
  - !ruby/object:Gem::Version
242
- version: '5'
236
+ version: '5.0'
243
237
  description:
244
238
  email:
245
239
  - franco@mumuki.org
@@ -260,6 +254,8 @@ files:
260
254
  - lib/mumukit/login/helpers/authentication_helpers.rb
261
255
  - lib/mumukit/login/helpers/authorization_helpers.rb
262
256
  - lib/mumukit/login/helpers/login_controller_helpers.rb
257
+ - lib/mumukit/login/helpers/login_settings_helpers.rb
258
+ - lib/mumukit/login/helpers/organization_helpers.rb
263
259
  - lib/mumukit/login/mucookie.rb
264
260
  - lib/mumukit/login/origin_redirector.rb
265
261
  - lib/mumukit/login/profile.rb
@@ -294,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
290
  - !ruby/object:Gem::Version
295
291
  version: '0'
296
292
  requirements: []
297
- rubygems_version: 3.0.3
293
+ rubygems_version: 3.0.4
298
294
  signing_key:
299
295
  specification_version: 4
300
296
  summary: Library for login mumuki requests