curses 1.5.3 → 1.5.4
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 +4 -4
- data/.github/release.yml +4 -0
- data/.github/workflows/gh-pages.yml +2 -2
- data/.github/workflows/macos.yml +4 -1
- data/.github/workflows/push_gem.yml +2 -2
- data/.github/workflows/ubuntu.yml +2 -2
- data/.github/workflows/windows.yml +2 -2
- data/README.md +2 -1
- data/curses.gemspec +1 -1
- data/ext/curses/curses.c +6 -6
- data/lib/curses.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c363e2ee899bf325f21d679cdf68e78caec9959d8ae8d631e51aaefdf361470
|
|
4
|
+
data.tar.gz: f12600ce5a6c645604cc74813def3c0afa9fed11c2e4117f4c53d374b3b77018
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee80959584814c5102f2e2e881c3da795833d4c682cd952b5484ad11d2aa14130916fef00fea1d42d345d3d75a1ced642fd0bb9b839414fa90615cace0ad34f8
|
|
7
|
+
data.tar.gz: de4842e3f63642306b6a914084d5979c12d81263eeffdf82f2b0c56fc1da8c3ccadb400971a8541811d0244c456428f42fb6e5c20655fb163e77f5571ec8a1c4
|
data/.github/release.yml
ADDED
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
runs-on: ubuntu-latest
|
|
20
20
|
steps:
|
|
21
21
|
- name: Checkout
|
|
22
|
-
uses: actions/checkout@
|
|
22
|
+
uses: actions/checkout@v6
|
|
23
23
|
- name: Setup Ruby
|
|
24
24
|
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
|
|
25
25
|
with:
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
# Outputs to the './_site' directory by default
|
|
35
35
|
run: rake rdoc
|
|
36
36
|
- name: Upload artifact
|
|
37
|
-
uses: actions/upload-pages-artifact@
|
|
37
|
+
uses: actions/upload-pages-artifact@v4
|
|
38
38
|
|
|
39
39
|
deploy:
|
|
40
40
|
environment:
|
data/.github/workflows/macos.yml
CHANGED
|
@@ -24,11 +24,11 @@ jobs:
|
|
|
24
24
|
steps:
|
|
25
25
|
# Set up
|
|
26
26
|
- name: Harden Runner
|
|
27
|
-
uses: step-security/harden-runner@
|
|
27
|
+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
|
|
28
28
|
with:
|
|
29
29
|
egress-policy: audit
|
|
30
30
|
|
|
31
|
-
- uses: actions/checkout@
|
|
31
|
+
- uses: actions/checkout@v6
|
|
32
32
|
with:
|
|
33
33
|
submodules: true
|
|
34
34
|
|
|
@@ -6,10 +6,10 @@ jobs:
|
|
|
6
6
|
test:
|
|
7
7
|
strategy:
|
|
8
8
|
matrix:
|
|
9
|
-
ruby: [ head, 3.
|
|
9
|
+
ruby: [ head, 3.4, 3.3, 3.2 ]
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
13
|
- uses: ruby/setup-ruby@v1
|
|
14
14
|
with:
|
|
15
15
|
ruby-version: ${{ matrix.ruby }}
|
data/README.md
CHANGED
data/curses.gemspec
CHANGED
data/ext/curses/curses.c
CHANGED
|
@@ -1696,7 +1696,7 @@ curses_reset_prog_mode(VALUE obj)
|
|
|
1696
1696
|
|
|
1697
1697
|
struct screendata {
|
|
1698
1698
|
SCREEN *screen;
|
|
1699
|
-
VALUE
|
|
1699
|
+
VALUE stdscr_value;
|
|
1700
1700
|
};
|
|
1701
1701
|
|
|
1702
1702
|
NORETURN(static void no_screen(void));
|
|
@@ -1716,7 +1716,7 @@ screen_gc_mark(void *p)
|
|
|
1716
1716
|
{
|
|
1717
1717
|
struct screendata *screenp = p;
|
|
1718
1718
|
|
|
1719
|
-
rb_gc_mark(screenp->
|
|
1719
|
+
rb_gc_mark(screenp->stdscr_value);
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
1722
|
static void
|
|
@@ -1777,7 +1777,7 @@ screen_initialize(int argc, VALUE *argv, VALUE obj)
|
|
|
1777
1777
|
screenp->screen = newterm(NIL_P(type) ? NULL : StringValueCStr(type),
|
|
1778
1778
|
rb_io_stdio_file(outfptr),
|
|
1779
1779
|
rb_io_stdio_file(infptr));
|
|
1780
|
-
screenp->
|
|
1780
|
+
screenp->stdscr_value = Qnil;
|
|
1781
1781
|
|
|
1782
1782
|
return obj;
|
|
1783
1783
|
}
|
|
@@ -1795,10 +1795,10 @@ screen_set_term(VALUE obj)
|
|
|
1795
1795
|
|
|
1796
1796
|
GetSCREEN(obj, screenp);
|
|
1797
1797
|
set_term(screenp->screen);
|
|
1798
|
-
if (NIL_P(screenp->
|
|
1799
|
-
screenp->
|
|
1798
|
+
if (NIL_P(screenp->stdscr_value)) {
|
|
1799
|
+
screenp->stdscr_value = prep_window(cWindow, stdscr, 1);
|
|
1800
1800
|
}
|
|
1801
|
-
rb_stdscr = screenp->
|
|
1801
|
+
rb_stdscr = screenp->stdscr_value;
|
|
1802
1802
|
|
|
1803
1803
|
return Qnil;
|
|
1804
1804
|
}
|
data/lib/curses.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
pdcurses_dll = File.expand_path("../vendor/PDCurses/pdcurses.dll", __dir__)
|
|
2
2
|
if File.exist?(pdcurses_dll)
|
|
3
3
|
path = ENV["PATH"]
|
|
4
|
-
dir = File
|
|
5
|
-
|
|
4
|
+
dir = File.dirname(pdcurses_dll)
|
|
5
|
+
dir = dir.tr("/", File::ALT_SEPARATOR) if File::ALT_SEPARATOR
|
|
6
6
|
dirs = path.split(File::PATH_SEPARATOR)
|
|
7
7
|
if !dirs.include?(dir)
|
|
8
8
|
ENV["PATH"] = [dir, *dirs].join(File::PATH_SEPARATOR)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: curses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shugo Maeda
|
|
@@ -47,6 +47,7 @@ extensions:
|
|
|
47
47
|
extra_rdoc_files: []
|
|
48
48
|
files:
|
|
49
49
|
- ".github/dependabot.yml"
|
|
50
|
+
- ".github/release.yml"
|
|
50
51
|
- ".github/workflows/gh-pages.yml"
|
|
51
52
|
- ".github/workflows/macos.yml"
|
|
52
53
|
- ".github/workflows/push_gem.yml"
|
|
@@ -344,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
344
345
|
- !ruby/object:Gem::Version
|
|
345
346
|
version: '0'
|
|
346
347
|
requirements: []
|
|
347
|
-
rubygems_version:
|
|
348
|
+
rubygems_version: 4.0.3
|
|
348
349
|
specification_version: 4
|
|
349
350
|
summary: A Ruby binding for curses, ncurses, and PDCurses. curses is an extension
|
|
350
351
|
library for text UI applications. Formerly part of the Ruby standard library, [curses
|