mumukit-core 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTk5ZDQzMWUxMTcxZDg1OWQ4NjViZDNiYjJmYTBkZWFlMGQ0ODQ4OQ==
4
+ MTcxNTc5NzU2NTUxMTkyZTVhOTU1YzVlMzg2M2MyYjc5MzhlZDkxOQ==
5
5
  data.tar.gz: !binary |-
6
- MmVkNzQ1NmRmMWMxYWFhNjUxOWNlNTYzZDM1YTBiMzJhMTgxN2MzYw==
6
+ ZmExMTEwM2Y1MWU0Mjg1Y2EzYmRiMjU2YWVmZDdhODFiZWE4ZDZhMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjIyZjUxZDdjZTNiOTAyMjI5NzFjM2JiOGRhZGRhOWRmOWZmODUxZGQ1MDYz
10
- MTZiNTkyNTU0NjVlMzI1ZWU4ZGQ3OWU0NjY5M2UwYjdlMjcwMjk3MTg4ZTA0
11
- ZjFjNjI3NzBmZjEzYTkyM2EyNGI4Y2RmMTZkNjUyZWQ5YTQ3Y2Y=
9
+ ZjdmZTg0ZjYzM2RiNWUxMWQ3OTNjODM2N2ZmMDM5OWQ4YzdkNGM3N2NmZjcw
10
+ NTRhZGNiYTg5NzE3OTFhOThhOTQ3MzE0MGEzMWYxZTI0MTZlYTdkNGU5ODgz
11
+ ZDcwNDMyMzlhYzI0NTg1Y2RhZTQ2MDU3ZDIxZDFlZTQ0NjhkN2M=
12
12
  data.tar.gz: !binary |-
13
- ZjFmZjBkZWQ5MzZlZWY0NGU2MTE3YjQwZDBmM2FlNGFlMjU4ZDU3NmQ3ZDI2
14
- MTFhNDgxMDM2NDM0YmZkYmNkNzU5NjAyNGYyMjUyYzkzYWVhMTFhMDRjMjY4
15
- OTRkMDI0YTFkMzJjMDE3YTBlMDY3MDliZGMyNjU0YzJkMTRiYWM=
13
+ MDZlYmQwNmYwZGRiYzYxY2Y2Y2M1OWVkNjU4YmU0YWU5YjUxY2MwZTQxOTA2
14
+ NWYwOGZjOWE3NDFmNzc1MjdlOTA5NWMyOWVkNTRjYWZkY2UyNzQ3OTM4Mjk3
15
+ ZTI0ZTQ4ODEwYmFkMGVlOTViMDliNThlOTUyZWYxMjgxMTMwZmE=
data/lib/mumukit/core.rb CHANGED
@@ -15,4 +15,5 @@ require_relative './core/nil'
15
15
  require_relative './core/array'
16
16
  require_relative './core/regexp'
17
17
  require_relative './core/request'
18
- require_relative './core/file'
18
+ require_relative './core/file'
19
+ require_relative './core/i18n'
@@ -0,0 +1,11 @@
1
+ require 'i18n'
2
+ require 'i18n/backend/fallbacks'
3
+
4
+ module I18n
5
+ def self.load_translations_path(path)
6
+ I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
7
+ I18n.load_path += Dir[path]
8
+
9
+ I18n.backend.load_translations
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Core
3
- VERSION = "0.1.3"
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.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: 2016-08-08 00:00:00.000000000 Z
11
+ date: 2016-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: i18n
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '0.7'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '0.7'
97
111
  description: Ruby core extensions
98
112
  email:
99
113
  - franco@mumuki.org
@@ -108,6 +122,7 @@ files:
108
122
  - lib/mumukit/core/class.rb
109
123
  - lib/mumukit/core/file.rb
110
124
  - lib/mumukit/core/hash.rb
125
+ - lib/mumukit/core/i18n.rb
111
126
  - lib/mumukit/core/json.rb
112
127
  - lib/mumukit/core/nil.rb
113
128
  - lib/mumukit/core/object.rb