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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dd6a8ee8dcab7026a1aad2d9e5dfd37c28ea95c8161912341e854532bc2cddd
4
- data.tar.gz: 6f3a2a719d4c65c777eedc1bee4e993c37c379c0012f6838445c34af732f1101
3
+ metadata.gz: a7c6f05e41c271fe32105e06c439445f7a1f9023ec462669ac8baf3711056f49
4
+ data.tar.gz: 7ba162eb3644b300a73a8c78a16cc619b84968213ee1218e474c93d496b3e3d7
5
5
  SHA512:
6
- metadata.gz: c74ac7c87e61ef21fe636d79704c24437bb22ca788ce27b1c0ee7940e67a59caae1f5eed2ad43c9142479d5e75e77b63ca582f986f3907e27a7f2fa045bf07f7
7
- data.tar.gz: 325795fc6406cfcbdaad8c9285a15db6a354fed5ead11d5b0f3152b25d892ffc594d735df1391ab319590c012c2d4e1a4673d74ad6a65751dac3ad2494c5ee99
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Platform
3
- VERSION = '1.4.0'
3
+ VERSION = '1.5.0'
4
4
  end
5
5
  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.0
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-04-01 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-nuntius