mumukit-core 1.17.0 → 1.19.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/array.rb +1 -5
- data/lib/mumukit/core/module.rb +0 -21
- data/lib/mumukit/core/version.rb +1 -1
- data/lib/mumukit/core.rb +0 -21
- metadata +10 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faa4915c84df67a666106d5b3b2115c9d47571b8354db59beb24d3ced05d4ff2
|
4
|
+
data.tar.gz: 34c375af5977551c3747199ffe7bf024fa0cbfe90fbc3dc8c4e806edb93ba59e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f40f57c14c72a6137e94060508c15275f8be581bcbd25b8519b846c5d63cf4ecb8cc07d308167337f2606b3cbb50b11a5694725d9370d1f5d9185bed70cb30
|
7
|
+
data.tar.gz: f13aa16266de01caa59884351388e064d8b00fa970f2ab6cca46721668f2ed36b843a3fb91685d6725abfed0d3898cc578188801bb829be321de91596bf65a50
|
data/lib/mumukit/core/array.rb
CHANGED
data/lib/mumukit/core/module.rb
CHANGED
@@ -94,25 +94,4 @@ class Module
|
|
94
94
|
define_method selector, &block
|
95
95
|
end
|
96
96
|
|
97
|
-
def contract
|
98
|
-
@contract ||= []
|
99
|
-
end
|
100
|
-
|
101
|
-
attr_writer :contract
|
102
|
-
|
103
|
-
def implements(*selectors)
|
104
|
-
self.contract += selectors
|
105
|
-
end
|
106
|
-
|
107
|
-
def full_contract
|
108
|
-
ancestors.flat_map(&:contract).uniq
|
109
|
-
end
|
110
|
-
|
111
|
-
def breaches_contract?
|
112
|
-
!contract_breaches.empty?
|
113
|
-
end
|
114
|
-
|
115
|
-
def contract_breaches
|
116
|
-
full_contract.reject { |it| method_defined? it }
|
117
|
-
end
|
118
97
|
end
|
data/lib/mumukit/core/version.rb
CHANGED
data/lib/mumukit/core.rb
CHANGED
@@ -1,26 +1,5 @@
|
|
1
1
|
require 'mumukit/core/version'
|
2
2
|
require 'active_support/all'
|
3
|
-
|
4
|
-
module Mumukit
|
5
|
-
module Core
|
6
|
-
class << self
|
7
|
-
def test_mode!
|
8
|
-
Class.class_eval do
|
9
|
-
break if method_defined? :__mumukit_core_contract_new__
|
10
|
-
alias_method :__mumukit_core_contract_new__, :new
|
11
|
-
|
12
|
-
def new(*args, &block)
|
13
|
-
validate_complies_with_contract!
|
14
|
-
__mumukit_core_contract_new__(*args, &block)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
Mumukit::Core.test_mode! if %w(RACK_ENV RAILS_ENV).any? { |it| ENV[it] == 'test' }
|
23
|
-
|
24
3
|
require_relative './core/status'
|
25
4
|
require_relative './core/object'
|
26
5
|
require_relative './core/module'
|
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.19.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:
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: activemodel
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,15 +166,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
166
|
requirements:
|
181
167
|
- - ">="
|
182
168
|
- !ruby/object:Gem::Version
|
183
|
-
version: '
|
169
|
+
version: '2.3'
|
184
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
171
|
requirements:
|
186
172
|
- - ">="
|
187
173
|
- !ruby/object:Gem::Version
|
188
174
|
version: '0'
|
189
175
|
requirements: []
|
190
|
-
|
191
|
-
rubygems_version: 2.7.7
|
176
|
+
rubygems_version: 3.1.6
|
192
177
|
signing_key:
|
193
178
|
specification_version: 4
|
194
179
|
summary: Ruby core extensions for mumuki on top of active support
|