curses-extension 3.0 → 3.0.2

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 → README.md} +10 -0
  3. metadata +9 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f99e5edb8a0e53f52e18c5f5c8ad401fb50092275288cbc32fa6bf0c7c18cc07
4
- data.tar.gz: 20842d9a7eeea019df04a4e29073322c6a351c998fe45e0424d5cd4abd8d7cff
3
+ metadata.gz: c10f1ddc15494c0013a4d678c69d231be563f269ede3dd2a0359b375c79f4c93
4
+ data.tar.gz: 39cb3adb2a69bcd6336cf04e611cd6b3b63bf946763f30dd615292d42cf24a27
5
5
  SHA512:
6
- metadata.gz: 71bd0aa9bb4fd5246454af6dcd92f38b0cccbaf1d11412a1e309892b18e99aa0f2e1269ccb52979245e970e1faf6acf5f55a753eace7bf9ef5a4d7e01744b973
7
- data.tar.gz: 221a4711ff5cf9eb22b4eab34b0e7e174c4fa4164bae7d2a2e54d94c941240b7412729acf600f2bd4228f375b2b339b61b0f552c184336008d4cced4542d0631
6
+ metadata.gz: c50d4c520d5aa6cc4df91595507b3347dd7e215f095fa2f95408d06649623031a60b7f91964aa9c581fce740384954eaac931ea2ea53ada7abdb09c8ba70e60f
7
+ data.tar.gz: d9a8709107fa70f83cf32d62154fcb7bfc25bb394cf3892ae8c6b825f87d467f62cd7894f5197284a2aaa2eb777f3e599e8b8d17d81dc058b96b084f7e769e51
@@ -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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-13 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -35,13 +35,14 @@ 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.2: Path fix'
39
40
  email: g@isene.com
40
41
  executables: []
41
42
  extensions: []
42
43
  extra_rdoc_files: []
43
44
  files:
44
- - lib/README.md
45
+ - README.md
45
46
  - lib/curses-extension.rb
46
47
  - lib/curses-template.rb
47
48
  homepage: https://isene.com/
@@ -49,7 +50,7 @@ licenses:
49
50
  - Unlicense
50
51
  metadata:
51
52
  source_code_uri: https://github.com/isene/Ruby-Curses-Class-Extension
52
- post_install_message:
53
+ post_install_message:
53
54
  rdoc_options: []
54
55
  require_paths:
55
56
  - lib
@@ -64,8 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
65
  - !ruby/object:Gem::Version
65
66
  version: '0'
66
67
  requirements: []
67
- rubygems_version: 3.3.5
68
- signing_key:
68
+ rubygems_version: 3.4.20
69
+ signing_key:
69
70
  specification_version: 4
70
71
  summary: Extending the Ruby Curses module with some obvious functionality
71
72
  test_files: []