bootinq 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02d532d3f79f581c02a9cf22de365c865a5fc455460ff5559d9f32893fc72daa
4
- data.tar.gz: 274bbc9139607038551bd75d73104301a6d14a561dfe8a736d33c50fc91f473b
3
+ metadata.gz: 2132126092e2938ead320330a8866a61e496e47683b1a88c7ec3f8b15d3f1f2b
4
+ data.tar.gz: 3eee6dabbc507a0d8234d2edc64461eddca66259b3df04c76799cbfffbbb94f8
5
5
  SHA512:
6
- metadata.gz: 424dd6941e25ad8b8b5a5497bf5ff5853bf66255774677e2831ca4972756b87956eb93ed55d3fcb87285ad2fc51c24279073c579fcea93a2ce36fa3689105d3d
7
- data.tar.gz: 8b807c29dffd4a66ee89ce6b3790560fe0cf3aa69ee1ef1544ed87a5e32f3204077b981df613d05c22530952506a35fa275b86669965610760c025c13484785d
6
+ metadata.gz: e2b45226f655ee94a841ec79f70934af6948427ba97e4a1269a4371693b9c3d50bbd9857db2b2b7a914532cc04a571176c41dbeb7f44bbd5979b4464562e5dbe
7
+ data.tar.gz: cd87ee76d07175f774202a45c20875d5e1c9a18ab2e0f469e75b2d4a9039520fda537ba29d12f05f67e5e1704b8797a4296ba5c277e56da14a1982731ff7678f
@@ -106,7 +106,6 @@ class Bootinq
106
106
  @_neg = @_value.start_with?(?-, ?^)
107
107
  @flags = []
108
108
  @components = []
109
- @switch = Switch.new(*@components)
110
109
 
111
110
  config['parts'].each { |flag, name| enable_component(name, flag: flag) }
112
111
  config['mount'].each { |flag, name| enable_component(name, flag: flag, as: Mountable) }
@@ -242,7 +241,7 @@ class Bootinq
242
241
  # part.backend { … }
243
242
  # end
244
243
  delegated def switch # :yields: Bootinq::Switch.new
245
- yield(@switch)
244
+ yield(Switch.new)
246
245
  nil
247
246
  end
248
247
 
@@ -5,32 +5,16 @@ class Bootinq
5
5
  undef_method :==
6
6
  undef_method :equal?
7
7
 
8
- module YieldMixin
9
- def yield_block
10
- yield
11
- end
12
- end
13
-
14
- private_constant :YieldMixin
15
-
16
- def self.new(*names)
17
- switch = super()
18
- mixin = ::Module.new
19
- mixin.include(YieldMixin)
20
- names.each { |name| mixin.alias_method name, :yield_block }
21
- mixin.send(:private, :yield_block)
22
- mixin.send(:extend_object, switch)
23
- switch
24
- ensure
25
- mixin = nil
26
- end
27
-
28
8
  def raise(*args) # :no-doc:
29
9
  ::Object.send(:raise, *args)
30
10
  end
31
11
 
32
- def method_missing(*)
33
- nil
12
+ def method_missing(name, *)
13
+ if ::Bootinq.enabled?(name)
14
+ yield()
15
+ else
16
+ nil
17
+ end
34
18
  end
35
19
  end
36
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Bootinq
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootinq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton