felflame 1.0.0 → 1.0.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: c65245c163dfe596ebdfe551070f90cdbb838f852d0b36d349e26b77890b36ba
4
- data.tar.gz: 0e2baf45d48d36a2c8d369f345f0f6b80283ac55f210bd637d84dbb3e288a96d
3
+ metadata.gz: 67065e6f7a9c39a9ddd5f6107238cc512550b6a50bf539cf1b47b74a9b8f8dff
4
+ data.tar.gz: be85db0cc163e8520dc76758d0c45d7d10714c68daf7dc8567be7e8176ee7312
5
5
  SHA512:
6
- metadata.gz: 9aa77caa16ca8ef8110f8a16641f784b4869928b91e40dfdc95d609d92e0ab9b3a4c447de88272f10f480e6560af7d7388410712c2b7522eb85c3b189c02dbd1
7
- data.tar.gz: f7ae4a1354deefbff45a00719f3a4ce7f40eda46d4f87408b9cfc872373b96669ecad16832dc0b6f1ab95df3440dc5c8f0d90245cf7c6bb995c619057279cca4
6
+ metadata.gz: eebd8f33f037f7c6e385ecdaceaa329741183655b3e32bb6d4f960601d2574495a66646f2886f2159b5f943c10e25b56c00feb151e174a4a2e7f5183e35b28f8
7
+ data.tar.gz: 62b9221f6ca0897386a7654dbeb9a8f8ec3af1d9ead40e0a5666a39a24725315e78a00ccc6488fa64a21d1b5ee8f3c0d241c832e376a29cd1439f85f8bb46007
data/.inch.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  files:
2
2
  # define files included in the analysis (defaults to ["{app,lib}/**/*.rb"])
3
3
  included:
4
- - felflame.rb
5
- - component_manager.rb
6
- - entity_manager.rb
7
- - system_manager.rb
8
- - scene_manager.rb
9
- - stage_manager.rb
4
+ - lib/felflame.rb
5
+ - lib/felflame/component_manager.rb
6
+ - lib/felflame/entity_manager.rb
7
+ - lib/felflame/system_manager.rb
8
+ - lib/felflame/scene_manager.rb
9
+ - lib/felflame/stage_manager.rb
10
10
  # define files excluded from the analysis (defaults to [])
11
11
  excluded:
data/CHANGELOG.mdown ADDED
@@ -0,0 +1,18 @@
1
+ # ChangeLog
2
+
3
+ ###### [major.minor.bugfix] - year-month-day
4
+
5
+ ![Fixed](https://img.shields.io/badge/-Fixed-blue)
6
+ ![Added](https://img.shields.io/badge/-Added-brightgreen)
7
+ ![Changed](https://img.shields.io/badge/-Changed-yellow)
8
+ ![Deprecated](https://img.shields.io/badge/-Deprecated-orange)
9
+ ![Removed](https://img.shields.io/badge/-Removed-red)
10
+
11
+ ## [1.0.1](https://github.com/realtradam/FelFlame/releases/tag/1.0.1) - 2021-07-09
12
+ ![Fixed](https://img.shields.io/badge/-Fixed-blue)
13
+ - Defining attributes in components are no longer allowed to overwrite methods
14
+
15
+ ## [1.0.0](https://github.com/realtradam/FelFlame/releases/tag/1.0.0) - 2021-07-09
16
+
17
+ ![Added](https://img.shields.io/badge/-Added-brightgreen)
18
+ - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- felflame (1.0.0)
4
+ felflame (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.mdown CHANGED
@@ -99,7 +99,7 @@ If all of this sounds very confusing, don't worry. A video tutorial series is in
99
99
 
100
100
  # Usage
101
101
 
102
- To use FelFlame simply install the gem using `gem install felflame` or using bundler `bundle add felflame` and then require it in your project like so: `require 'felflame'`. Working outside of the gem for rendering engines that do not support the usage of gems is planned a planned feature in the works.
102
+ To use FelFlame simply install the gem using `gem install felflame` or using bundler `bundle add felflame` and then require it in your project like so: `require 'felflame'`. Working outside of the gem for rendering engines that do not support the usage of gems is a planned feature in the works.
103
103
 
104
104
  ## Entities
105
105
 
@@ -112,9 +112,11 @@ Entities are essentially "objects" in the game world. To create a new Entity we
112
112
  or if we want to add (any number of)components to it:
113
113
 
114
114
  ```ruby
115
- @entity = FelFlame::Entites.new(FelFlame::Components::Health.new,
116
- @component,
117
- FelFlame::Components::Armour[7])
115
+ @entity = FelFlame::Entites.new(
116
+ FelFlame::Components::Health.new,
117
+ @component,
118
+ FelFlame::Components::Armour[7]
119
+ )
118
120
  ```
119
121
 
120
122
  ### Accessing
@@ -23,7 +23,11 @@ class FelFlame
23
23
 
24
24
 
25
25
  const_set(component_name, Class.new(FelFlame::ComponentManager) {})
26
+
26
27
  attrs.each do |attr|
28
+ if FelFlame::Components.const_get(component_name).method_defined?("#{attr}") || FelFlame::Components.const_get(component_name).method_defined?("#{attr}=")
29
+ raise NameError.new "The attribute name \"#{attr}\" is already a method"
30
+ end
27
31
  FelFlame::Components.const_get(component_name).attr_accessor attr
28
32
  end
29
33
  attrs_with_defaults.each do |attr, _default|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Felflame
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: felflame
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tradam
@@ -147,11 +147,10 @@ files:
147
147
  - ".rspec"
148
148
  - ".rubocop.yml"
149
149
  - ".yardopts"
150
- - CHANGELOG.md
150
+ - CHANGELOG.mdown
151
151
  - Gemfile
152
152
  - Gemfile.lock
153
153
  - LICENSE
154
- - LICENSE.txt
155
154
  - README.mdown
156
155
  - Rakefile
157
156
  - bin/console
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2021-07-09
4
-
5
- - Initial release
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 realtradam
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.