term_canvas 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6e613e0a509152ba563e099fe7ec78a262fb2ea54d20192826caa3e07697894
4
- data.tar.gz: 90ae22a2adfa87d06b8bdc669e86355d5039ff6664cfdb0d273b952f45526609
3
+ metadata.gz: f152aa30e57114c77541645d37e39dbbecdc8dff5f2221fb327ea03c1b517cce
4
+ data.tar.gz: 2b51644b5a59d5cd2a1a9882a1c5ca6db9e53ff318485ff03537069ddb44e35f
5
5
  SHA512:
6
- metadata.gz: 416bdd693fa4604308e3fe4583009af1e47d9e9a6c7cd526a15aa8006653476d8ea6f12a5d5bb4e2eb44a5951b13708827b0818292f7c227d521a475b35758ef
7
- data.tar.gz: 418039a781cd6e6dc16c9bc03b0eb48394fcef2ffe31be976879c4fae7abba518c46b0831fedb807825a9700a174e8969dd740fd4b539b10e3495bf7b9f173b1
6
+ metadata.gz: 83b4e73874fcba46c6b3fbcbbf75df474363e7b262ed569353ad45a44a3054eefb051e2d491b1e25d07edb10ef8184db700ec5186a6433f572c923c0af907b46
7
+ data.tar.gz: d513bf9ccf6a867fc9fa65fd919946a35be5c5d496884e832654f48ad45b05aecb124300f2c6a93a7406df208345166f07edebd2142eb9c0084e2f7d95813b09
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- term_canvas (0.2.4)
4
+ term_canvas (0.2.5)
5
5
  curses
6
6
 
7
7
  GEM
data/_examples/test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'term_canvas'
2
2
 
3
- field = TermCanvas::Canvas.new(x: 0, y: 0, w: 50, h: 30)
3
+ field = TermCanvas::Canvas.new(x: 0, y: 0, w: TermCanvas.width, h: TermCanvas.height)
4
4
 
5
5
  text_pos = {y: 0, x: 0}
6
6
  loop do
data/lib/term_canvas.rb CHANGED
@@ -19,11 +19,13 @@ module TermCanvas
19
19
 
20
20
  # @return [Integer] Width of this screen.
21
21
  def self.width
22
+ TermCanvas::BaseScreen.instance
22
23
  Curses.cols
23
24
  end
24
25
 
25
26
  # @return [Integer] Height of this screen.
26
27
  def self.height
28
+ TermCanvas::BaseScreen.instance
27
29
  Curses.lines
28
30
  end
29
31
 
@@ -1,3 +1,3 @@
1
1
  module TermCanvas
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: term_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kthatoto