Rdcpu16 0.0.3 → 0.0.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.
data/lib/dcpu16/memory.rb CHANGED
@@ -13,6 +13,10 @@ module DCPU16
13
13
  default.each_with_index { |word, offset| write(offset, word) }
14
14
  end
15
15
 
16
+ def inspect
17
+ self.to_s
18
+ end
19
+
16
20
  def read(offset)
17
21
  # HACK: so we can just pass a Fixnum or a Register
18
22
  offset = offset.value if offset.respond_to? :value
@@ -1,4 +1,4 @@
1
1
  module DCPU16
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.3.1"
3
3
  end
4
4
 
@@ -1,4 +1,4 @@
1
1
  module DCPU16
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Rdcpu16
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &76639670 !ruby/object:Gem::Requirement
16
+ requirement: &70293790 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *76639670
24
+ version_requirements: *70293790
25
25
  description: This is a simple Ruby port of the fictive 16-bit-cpu DCPU16.
26
26
  email:
27
27
  - deradon87@gmail.com