mumukit-platform 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/platform/organization.rb +4 -0
- data/lib/mumukit/platform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c6f05e41c271fe32105e06c439445f7a1f9023ec462669ac8baf3711056f49
|
4
|
+
data.tar.gz: 7ba162eb3644b300a73a8c78a16cc619b84968213ee1218e474c93d496b3e3d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693094d9e0f01aeef8e3daa5ea04f5c49c3b5e66efb742113256159bbc908f0dcb22c809f566179479ec97b84c697ce991c6527ad0dea1c13619b441755d725c
|
7
|
+
data.tar.gz: b058099e7dd793da249646d4ba73e83884cee10cce64a39d1f06cfe7ae16f128642a6fe5879c8c0f2e9ef5c73b320a8dc8958810ceebfe19f92bc74c2add8236
|
@@ -12,6 +12,10 @@ module Mumukit::Platform::Organization
|
|
12
12
|
Thread.current[:organization] || raise('organization not selected')
|
13
13
|
end
|
14
14
|
|
15
|
+
def self.current_locale
|
16
|
+
Thread.current[:organization]&.locale || 'en'
|
17
|
+
end
|
18
|
+
|
15
19
|
def self.find_by_name!(name)
|
16
20
|
Mumukit::Platform.organization_class.find_by_name!(name)
|
17
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-nuntius
|