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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e155445df55585a847f88773beee7cc43efcb8da5d20e400c4151f25d4843538
4
- data.tar.gz: 36bdd8bf00c694e8e54bc9205a3b01168e6bdb54308d5a96f9ffdd0a9868d17f
3
+ metadata.gz: faa4915c84df67a666106d5b3b2115c9d47571b8354db59beb24d3ced05d4ff2
4
+ data.tar.gz: 34c375af5977551c3747199ffe7bf024fa0cbfe90fbc3dc8c4e806edb93ba59e
5
5
  SHA512:
6
- metadata.gz: 7868ff5fac67e2aca6e2d07699083bccb83ab5cc2c7a0912e34b73f4936a557c65db1cb5051e555c780e6470b73c81be61365e63ac344621d6c346ba7ed803d0
7
- data.tar.gz: c0e664b65c2fc9f8f789f831982f44affa800c6edeaf593224236aaad4594bae0d08799ea4bb109febf07530e314115c991eea3b0534b85af54ce346ff78027e
6
+ metadata.gz: 10f40f57c14c72a6137e94060508c15275f8be581bcbd25b8519b846c5d63cf4ecb8cc07d308167337f2606b3cbb50b11a5694725d9370d1f5d9185bed70cb30
7
+ data.tar.gz: f13aa16266de01caa59884351388e064d8b00fa970f2ab6cca46721668f2ed36b843a3fb91685d6725abfed0d3898cc578188801bb829be321de91596bf65a50
@@ -7,13 +7,9 @@ class Array
7
7
  end
8
8
  end
9
9
 
10
- def to_h
11
- Hash[self]
12
- end
13
-
14
10
  def to_csv
15
11
  CSV.generate do |csv|
16
12
  each { |hash| csv << hash.values }
17
13
  end
18
14
  end
19
- end
15
+ end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Core
3
- VERSION = '1.17.0'
3
+ VERSION = '1.19.0'
4
4
  end
5
5
  end
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.17.0
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: 2020-04-06 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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: '2'
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: '2'
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: '0'
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
- rubyforge_project:
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