mumukit 2.5.0 → 2.6.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
  SHA1:
3
- metadata.gz: 8925e9f1727a1384b990a00c205f3a9c8906dc66
4
- data.tar.gz: a293893f800ed01ba33851073a2a2574176e3a7c
3
+ metadata.gz: a6d0b647d318cdc6cc5072e736638106eefc9dcd
4
+ data.tar.gz: 25a632bffaa00647f377301fba3885afb513ae45
5
5
  SHA512:
6
- metadata.gz: ec200c9bf73b9e7842837b709fbbd40c9bf81a67c06364e476088b364a57f5f14e195b69f310373053faa91d2e753f4409f961ac15e50af0f841fd368bf46084
7
- data.tar.gz: 45e77d2ce74b4771aa851e3e327f0aa1f6c121f78c93aad4538c0404361497e395496aa2ca2c057abfd2564233730beed044ea63c1629796a6ff7d95a6471013
6
+ metadata.gz: 3f24e318953114610768cf28ebad44a95a614fbf90fb09cb6366d0e6724e7d2cd1f7a95dffc20cb1d2df40b2218f0b4ad3a487b88905e08ed75f1681cdbc1013
7
+ data.tar.gz: 4c7e254ba9a1eed3925a8eba6e45561226e38545036ac0b8869ea379a42616a8e1b89633a81ecc9ab7d30cbacf77ee89fa7eea451e05923d642d97e74d25ae79
@@ -8,10 +8,10 @@ class Symbol
8
8
  end
9
9
 
10
10
  def to_mumukit_hook_class
11
- Kernel.const_get to_mumukit_hook_class_name
11
+ to_mumukit_hook_class_name.constantize
12
12
  end
13
13
 
14
14
  def to_default_mumukit_hook_class
15
- Kernel.const_get "Mumukit::Defaults::#{to_simple_mumukit_hook_class_name}"
15
+ "Mumukit::Defaults::#{to_simple_mumukit_hook_class_name}".constantize
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Mumukit
2
- VERSION = '2.5.0'
2
+ VERSION = '2.6.0'
3
3
  end
data/lib/mumukit.rb CHANGED
@@ -1,15 +1,8 @@
1
- require 'i18n'
2
- require 'i18n/backend/fallbacks'
3
1
  require 'mumukit/core'
4
2
  require 'mumukit/directives'
5
3
  require 'ostruct'
6
4
 
7
- pwd = File.expand_path(File.dirname(__FILE__))
8
-
9
- I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
10
- I18n.load_path += Dir[File.join(pwd, 'locales', '*.yml')]
11
-
12
- I18n.backend.load_translations
5
+ I18n.load_translations_path File.join(__dir__, 'locales', '*.yml')
13
6
 
14
7
  module Mumukit
15
8
  def self.current_runner=(runner)
@@ -41,7 +34,7 @@ end
41
34
  require_relative 'mumukit/runner'
42
35
 
43
36
  Mumukit.configure_defaults do |config|
44
- config.limit_script = File.join(pwd, '..', 'bin', 'limit')
37
+ config.limit_script = File.join(__dir__, '..', 'bin', 'limit')
45
38
  config.content_type = :plain
46
39
  config.comment_type = Mumukit::Directives::CommentType::Cpp
47
40
  config.preprocessor_enabled = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.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-16 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0.1'
159
+ version: '0.2'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0.1'
166
+ version: '0.2'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: mumukit-directives
169
169
  requirement: !ruby/object:Gem::Requirement