mumukit-core 1.2.2 → 1.3.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: 471cc401533ab83628e68793fbb1187d2db6eab6fe137b5468854337773c0380
4
- data.tar.gz: 7082b342ffd02bdd0fcdeff931c27ae096d41a8f59667a86b7dfbae37f248268
3
+ metadata.gz: 58933ff4ac349ecbd86b460ad64f85a5ccd4cfbf14dc9688c532aa31ee9b061b
4
+ data.tar.gz: 1bc4c5f468930d85c96d245cb9bc90145570e1ed55d6bda1f23124827f591682
5
5
  SHA512:
6
- metadata.gz: f757729d58f2ec4987a5f51a7b1cb1d1e721765234316a6b5b2d0a18a406201be82f3ace4dbfa470378e6acccfc5fd6b8d71e4787978a11534b28f561ac7855c
7
- data.tar.gz: 96ab65df17be6b3e49609de3fc2a20f69bde7350ef4e5bf986aa6e5643b44f98d98ce73a4e6614f0a8f0352a607b6501a672dfcb596f14547d9757a5d48db239
6
+ metadata.gz: 8c9fdfc720a1d64395c2ac98461b4d94aa789150ec6473a0f9acbd5178ff2f0bcef6f74ecb554b4c56be013356ca84cf0b9e67deb8db2d2607d7c385c36ec4ed
7
+ data.tar.gz: 14a04eabfb8cf251d16d1571ecb84efac0318c75c1ba0dae086550a0afd3b8ed486196e507dcd75cd0eb3d5e54c4737b1a6b689d4d73532c5416b1b5a9b82470
data/lib/mumukit/core.rb CHANGED
@@ -6,6 +6,7 @@ module Mumukit
6
6
  end
7
7
  end
8
8
 
9
+ require_relative './core/status'
9
10
  require_relative './core/object'
10
11
  require_relative './core/module'
11
12
  require_relative './core/json'
@@ -17,4 +18,4 @@ require_relative './core/regexp'
17
18
  require_relative './core/request'
18
19
  require_relative './core/file'
19
20
  require_relative './core/i18n'
20
- require_relative './core/yaml'
21
+ require_relative './core/yaml'
@@ -0,0 +1,13 @@
1
+ [:passed, :passed_with_warnings, :failed, :errored, :aborted].each do |sym|
2
+ s = sym.to_s.freeze
3
+ selector = "#{s}?"
4
+ NilClass.class_eval do
5
+ define_method(selector) { false }
6
+ end
7
+ String.class_eval do
8
+ define_method(selector) { self == s }
9
+ end
10
+ Symbol.class_eval do
11
+ define_method(selector) { self == sym }
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Core
3
- VERSION = '1.2.2'
3
+ VERSION = '1.3.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: 1.2.2
4
+ version: 1.3.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: 2018-01-03 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -143,6 +143,7 @@ files:
143
143
  - lib/mumukit/core/regexp.rb
144
144
  - lib/mumukit/core/request.rb
145
145
  - lib/mumukit/core/rspec.rb
146
+ - lib/mumukit/core/status.rb
146
147
  - lib/mumukit/core/string.rb
147
148
  - lib/mumukit/core/version.rb
148
149
  - lib/mumukit/core/yaml.rb
@@ -167,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
168
  version: '0'
168
169
  requirements: []
169
170
  rubyforge_project:
170
- rubygems_version: 2.7.4
171
+ rubygems_version: 2.7.6
171
172
  signing_key:
172
173
  specification_version: 4
173
174
  summary: Ruby core extensions for mumuki on top of active support