cyberarm_engine 0.4.0 → 0.5.0

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: b8e3c0d7b4d22d0ed567dd1a1a710d5623e7d9f6e358a00d637f4965a37fbc68
4
- data.tar.gz: db5e38d2bec4a4b6b8f1d5686b3bf5ab655bf07fb96939e04a833f42757404fd
3
+ metadata.gz: be5c4d2ceabea4e42e5fe364f312310bddf1e5ab2c8e1e269ed1e3da6a42cbe1
4
+ data.tar.gz: 96049af3e8924fd73d3234a4cd4cae9a3d191ecc2f79f37d5d2cc998cffa5008
5
5
  SHA512:
6
- metadata.gz: 4db0dfbe6039d8a96b92c8503e3bfa31138507769790071439f4400a08faf3edcdbdb8f99d4bbc30e8cf13235d0435ab86162a12115b02413b73b39e33a3a40a
7
- data.tar.gz: 135412df0ee1186b953020a4e55c5ff8324250aaced8182283ed8799d28ba073da1119fc241694618a9bd23ab1125ae52ea88698d89ecca14b9d0cbe2619c557
6
+ metadata.gz: c218b4922f64c8536451d944993986b342673463c5454ef3f8ae1a7085763e560d0df2e8153dd1553736cc1463200a88296cd48a9a435634bd1ebc9bfaf7365b
7
+ data.tar.gz: cf65066b9842bc061648d286d8937fbabe5e4193fcfb810e1ff3522606d6a358eacee34d2c71d1745307890adcbd21698eb9aecbc21e7397ffdc1c418aea4121
@@ -160,5 +160,9 @@ module CyberarmEngine
160
160
  def to_s
161
161
  "X: #{@x}, Y: #{@y}, Z: #{@z}, Weight: #{@weight}"
162
162
  end
163
+
164
+ def to_h
165
+ {x: @x, y: @y, z: @z, weight: @weight}
166
+ end
163
167
  end
164
168
  end
@@ -6,7 +6,7 @@ module CyberarmEngine
6
6
  attr_reader :text, :textobject
7
7
 
8
8
  def initialize(text, options={})
9
- @text = text || ""
9
+ @text = text.to_s || ""
10
10
  @options = options
11
11
  @size = options[:size] || 18
12
12
  @font = options[:font] || "sans-serif"#Gosu.default_font_name
@@ -1,4 +1,4 @@
1
1
  module CyberarmEngine
2
2
  NAME = "InDev"
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyberarm_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyberarm
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-01 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu