curses-extension 3.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/README.md +10 -0
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f99e5edb8a0e53f52e18c5f5c8ad401fb50092275288cbc32fa6bf0c7c18cc07
4
- data.tar.gz: 20842d9a7eeea019df04a4e29073322c6a351c998fe45e0424d5cd4abd8d7cff
3
+ metadata.gz: 8d9568f3eed2466b89924a005fc6485ecf29f6f467afdd59b6fb4b43f0e8cb32
4
+ data.tar.gz: c23d4f0dd8eabf8faaa4dfc0cea96ddfc86fe27719c309d560594fb586ae908e
5
5
  SHA512:
6
- metadata.gz: 71bd0aa9bb4fd5246454af6dcd92f38b0cccbaf1d11412a1e309892b18e99aa0f2e1269ccb52979245e970e1faf6acf5f55a753eace7bf9ef5a4d7e01744b973
7
- data.tar.gz: 221a4711ff5cf9eb22b4eab34b0e7e174c4fa4164bae7d2a2e54d94c941240b7412729acf600f2bd4228f375b2b339b61b0f552c184336008d4cced4542d0631
6
+ metadata.gz: ab02ce10740c935fcdf86d284b89db3dc12a956493cc81d4aad4b6ced5653ae9aa9f3ffff69661aae04106d2c5c9ca3759c7119853ef417c9f4dec06a7fdef80
7
+ data.tar.gz: 3d64c7ae37d3b506b195544eb872e8b8806614ff5e3209c0ef94f096a64ca56c74dcef2d67f04b3fb2cc9ef568bf03eb9ab5d50cc22b13707e7038661fd78f6e
data/lib/README.md CHANGED
@@ -23,6 +23,16 @@ spaces and (optional) background color, making it an effective newline.
23
23
  And then there is the convenient `frame`method that toggles a frame for the
24
24
  window.
25
25
 
26
+ You may ask why the methods `xy`, `x?`, `y?`, `mx?` and `my?` as these must
27
+ surely be covered already by the original Ruby Curses::Window library? They
28
+ serve a special purpose as they take into account that a window can be framed.
29
+ In a framed window, the top left corner is not `0,0`as that would be the top
30
+ left frame position. The inside top left of the frame is actually `1,1`, but
31
+ these functions treat that position as `0,0` if the window is framed and as
32
+ `1,1` if it is not. So - when using these functions you don't have to think
33
+ about compensating for the frame. Everything works just fine whether the
34
+ window is framed or not.
35
+
26
36
  The `curses-template.rb` contains code that helps you understand how you can
27
37
  easily create curses applications in Ruby. It is a fully runnable app that
28
38
  doesn't do much - but you can fiddle around with the code and test
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curses-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.0'
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-13 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -35,7 +35,8 @@ description: 'The Ruby curses library is sorely lacking some important features.
35
35
  terminal curses applications in Ruby. See the Github page for information on what
36
36
  properties and functions are included: https://github.com/isene/Ruby-Curses-Class-Extension.
37
37
  The curses_template.rb is also installed in the lib directory and serves as the
38
- basis for my own curses applications. New in 3.0: Major rewrite. Lots of changes/improvements.'
38
+ basis for my own curses applications. New in 3.0: Major rewrite. Lots of changes/improvements.
39
+ 3.0.1: Updated Readme.'
39
40
  email: g@isene.com
40
41
  executables: []
41
42
  extensions: []