mumukit-platform 3.0.1 → 3.1.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: cfda8a168fcfc14c9f7e6c60fa42f35defcd507fe020a72f9eb5a5583e9d26b8
4
- data.tar.gz: 87c8e8302b547452110df47a3144e265b5becc82d06b6737f0669b9b815ba573
3
+ metadata.gz: 9fce5e510645f3493cf276a8100fa542a2dcbcc8b2ce98480197b151f36c1b9a
4
+ data.tar.gz: 874991fd47333d5fdc17471a77ad321015883a5fcb9d4f26f245c8a20218c9c8
5
5
  SHA512:
6
- metadata.gz: 9ec3c0060e253b621049c2830c9ccf963fdfe372067c0d2496edccc9cfc2bca7addcedf73a9d1544f007a81f2a63ba82a8e007745d3473d25e651a266fa315ca
7
- data.tar.gz: 686da66f567dbf5b95ef2da562a8e22c8010e524ba105e66d361cdb95329b7a0363f9b9ff349d599bf4642f06e6a82aad6e35649dc5e21f5449063051c7bce89
6
+ metadata.gz: 8ef3e529b3cb64545c470c731d8938c9a9fd5eb5da50ea0b0da964597a82234fa133f571d84b5de9920eeefc5589fde6f98406126b8d15b8e9313c915c31707d
7
+ data.tar.gz: 130816f85dea541bbbd086c2241e6716ab3d95b141dbf65f7eeb4ec07e9b67d65d3218c0d2daad4bb8611a61771ea971e925b143d6dc151cb88cff071fb1becf
@@ -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?
16
+ !!Thread.current[:organization]
17
+ end
18
+
15
19
  def self.current_locale
16
20
  Thread.current[:organization]&.locale || 'en'
17
21
  end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Platform
3
- VERSION = '3.0.1'
3
+ VERSION = '3.1.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: 3.0.1
4
+ version: 3.1.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-15 00:00:00.000000000 Z
11
+ date: 2018-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-nuntius