mumukit-login 4.2.0 → 4.3.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: 5b5be25c21177e55c4a3b2ba04046182c900a93ecb1158a12622cc02a1d162c9
4
- data.tar.gz: 2650fddd7ccf2ce77587af1f339e405cf3a548775cc68a51a186fceace371e94
3
+ metadata.gz: c335e1cb909141049584dd906c6f69964728f47075350a162cdfc9044b8bdc63
4
+ data.tar.gz: 7c0b91ff933d3b763ecd7bec7a186cd01b9d06b03dba4e4b67d8060c4442b7d5
5
5
  SHA512:
6
- metadata.gz: c563acf6dd8b69929feaca22bde4794647b6a73ae8e8894f75daad5495bcb1b1aaf136d7176eff8c45c77669391780e5554caf78ee3ed0e4e00815a1be7e6c38
7
- data.tar.gz: 75065bb9957f7e5d645e6a91c84f14ad401d84f51122a9071fd87b6914a1f9dc280b1d0112e8b150cb066a89455e4dbac0bb0953f7b8c19203d853bb3e14bfe4
6
+ metadata.gz: 9503c0a99c7c5bc8e32e57d227e3b3b6ffd89436c15fdc26250f2d7cf57d89994e4ca05cfd58208450d3fd1659d3a803aceb3e5e2a87a609ad4c89ecb322da2a
7
+ data.tar.gz: aadf3f71c17afa9e0c70426091166c9c7811e595d5619d5a710bdb522ea7e0a9a9430d9018a6aa43902d983a4abd1498b58b2bdfa42a37703292a41ea1341e48
@@ -0,0 +1,4 @@
1
+ ---
2
+ pt:
3
+ accept_terms_and_conditions: Aceito os <a href=\"%{terms_url}/pt.html\" target=\"_new\">termos e condições</a>
4
+
@@ -26,21 +26,25 @@ class Mumukit::Login::Settings
26
26
  end
27
27
 
28
28
  def to_lock_json(callback_url, options={})
29
- lock_json
30
- .merge(auth: {redirect: true, redirectUrl: callback_url}, responseType: 'code', authParams: {scope: 'openid profile'})
29
+ lock_json_spec
30
+ .merge(auth: {
31
+ redirect: true,
32
+ redirectUrl: callback_url},
33
+ responseType: 'code',
34
+ authParams: { scope: 'openid profile' })
31
35
  .merge(options)
32
36
  .to_json
33
37
  .html_safe
34
38
  end
35
39
 
36
- def lock_json
40
+ def lock_json_spec
37
41
  {
38
42
  languageDictionary: {
39
43
  title: 'Mumuki',
40
44
  signUpTerms: I18n.t(:accept_terms_and_conditions, terms_url: Mumukit::Login.config.terms_url)
41
45
  },
42
46
  mustAcceptTerms: true,
43
- language: I18n.locale,
47
+ language: Mumukit::Platform::Locale::SPECS[I18n.locale][:auth0_code],
44
48
  allowedConnections: lock_login_methods,
45
49
  socialButtonStyle: many_methods? ? 'small' : 'big',
46
50
  rememberLastLogin: true,
@@ -63,4 +67,4 @@ class Mumukit::Login::Settings
63
67
  def self.default_methods
64
68
  [:user_pass]
65
69
  end
66
- end
70
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '4.2.0'
3
+ VERSION = '4.3.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: 4.2.0
4
+ version: 4.3.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: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0.2'
187
+ version: '0.9'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '0.2'
194
+ version: '0.9'
195
195
  description:
196
196
  email:
197
197
  - franco@mumuki.org
@@ -201,6 +201,7 @@ extra_rdoc_files: []
201
201
  files:
202
202
  - lib/locales/en.yml
203
203
  - lib/locales/es.yml
204
+ - lib/locales/pt.yml
204
205
  - lib/mumukit/login.rb
205
206
  - lib/mumukit/login/controller.rb
206
207
  - lib/mumukit/login/form.rb