conjuration 0.1.2 → 0.1.3

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: 1a2cd4153fd1fe67cf858245a3337a12f28e3bf0383a14c4ca5a98021eb446e6
4
- data.tar.gz: 0b1975cf3fb9baf67802f204faaef6a91e71a2d080064eb922d22cee2ffc78ec
3
+ metadata.gz: e27fba626de7b8059165ffe52b623628c1c49bc61e075705b6cf20b4c9110ebf
4
+ data.tar.gz: fd3016c986e1efc324f0ab082676094afdee0584686e1c9c2c55c95edf276458
5
5
  SHA512:
6
- metadata.gz: f655cf37edfa05b1ab4b6256a19486b31c3a406ae68c8447f02683b1b946fc13a34266c88017f6c5c332b4603187b2346e58e5988ffde8f41f8009aef4064446
7
- data.tar.gz: cecba3e7696c57a11662dce317652bae03b6be7c0addd4d71ac0a2c11a1875de083709305eba38df6a22e3343f4a09fa4a44fa40841e3c0679e4668a2e823364
6
+ metadata.gz: 703d100ccfa5a015514bf0dfb62fec05de9c6dcff92e01046f5aa53c0075441767d816b0b1ac0fc15db348b4e5a95c599ca6c983c7298bca65d010d6316490f0
7
+ data.tar.gz: 0c1d933ef7492d6e357a0b6d60eb7976a29c7c177c6c7f378c3d8b568b91ef5d1cb3804bccffb03bbf3be26f6b599d4ffa963dc34afe87dab89f6998026a67c0
@@ -22,37 +22,39 @@
22
22
  # person.age = 30
23
23
  # person.inspect # => "<Person name: \"Alice\", age: 30>"
24
24
  #
25
- module Attributes
26
- def self.included(base)
27
- base.extend(ClassMethods)
28
- end
25
+ module Conjuration
26
+ module Attributes
27
+ def self.included(base)
28
+ base.extend(ClassMethods)
29
+ end
29
30
 
30
- def initialize(...)
31
- super()
31
+ def initialize(...)
32
+ super()
32
33
 
33
- @attributes = {}
34
- end
34
+ @attributes = {}
35
+ end
35
36
 
36
- def inspect
37
- "<#{self.class} #{@attributes.map { |attribute_name, value| "#{attribute_name}: #{value.inspect}" }.join(", ")}>"
38
- end
37
+ def inspect
38
+ "<#{self.class} #{@attributes.map { |attribute_name, value| "#{attribute_name}: #{value.inspect}" }.join(", ")}>"
39
+ end
39
40
 
40
- module ClassMethods
41
- def attribute(attribute_name)
42
- define_method(attribute_name) do
43
- @attributes[attribute_name]
44
- end
41
+ module ClassMethods
42
+ def attribute(attribute_name)
43
+ define_method(attribute_name) do
44
+ @attributes[attribute_name]
45
+ end
45
46
 
46
- define_method("#{attribute_name}=") do |value|
47
- @attributes[attribute_name] = value
47
+ define_method("#{attribute_name}=") do |value|
48
+ @attributes[attribute_name] = value
49
+ end
48
50
  end
49
- end
50
51
 
51
- def boolean_attribute(attribute_name)
52
- attribute(attribute_name)
52
+ def boolean_attribute(attribute_name)
53
+ attribute(attribute_name)
53
54
 
54
- define_method("#{attribute_name}?") do
55
- !!@attributes[attribute_name]
55
+ define_method("#{attribute_name}?") do
56
+ !!@attributes[attribute_name]
57
+ end
56
58
  end
57
59
  end
58
60
  end
@@ -11,7 +11,7 @@ module Conjuration
11
11
  @scenes[key] = scene_class
12
12
  end
13
13
 
14
- def set_scene(_scene_class, options = {})
14
+ def set_scene(key, options = {})
15
15
  @current_scene = @scenes[key].new(@window, options)
16
16
  end
17
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Conjuration
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/conjuration.rb CHANGED
@@ -4,6 +4,8 @@ require "gosu"
4
4
  require "zeitwerk"
5
5
 
6
6
  loader = Zeitwerk::Loader.for_gem
7
+ loader.collapse("#{__dir__}/conjuration/concerns")
8
+ loader.collapse("#{__dir__}/conjuration/managers")
7
9
  loader.setup
8
10
 
9
11
  module Conjuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Dye