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 +4 -4
- data/lib/mumukit/core.rb +2 -1
- data/lib/mumukit/core/status.rb +13 -0
- data/lib/mumukit/core/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58933ff4ac349ecbd86b460ad64f85a5ccd4cfbf14dc9688c532aa31ee9b061b
|
4
|
+
data.tar.gz: 1bc4c5f468930d85c96d245cb9bc90145570e1ed55d6bda1f23124827f591682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/mumukit/core/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|