curses 1.5.1 → 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 +48 -0
- 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/.gitignore +1 -0
- data/README.md +2 -1
- data/Rakefile +11 -0
- data/curses.gemspec +8 -1
- data/ext/curses/curses.c +6 -6
- data/lib/curses.rb +2 -2
- metadata +9 -3
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
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Deploy RDoc site to Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ 'master' ]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
pages: write
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: "pages"
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@v6
|
|
23
|
+
- name: Setup Ruby
|
|
24
|
+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
|
|
25
|
+
with:
|
|
26
|
+
ruby-version: '3.4'
|
|
27
|
+
bundler-cache: true
|
|
28
|
+
- name: Setup Pages
|
|
29
|
+
id: pages
|
|
30
|
+
uses: actions/configure-pages@v5
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: gem install rdoc
|
|
33
|
+
- name: Build with RDoc
|
|
34
|
+
# Outputs to the './_site' directory by default
|
|
35
|
+
run: rake rdoc
|
|
36
|
+
- name: Upload artifact
|
|
37
|
+
uses: actions/upload-pages-artifact@v4
|
|
38
|
+
|
|
39
|
+
deploy:
|
|
40
|
+
environment:
|
|
41
|
+
name: github-pages
|
|
42
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
needs: build
|
|
45
|
+
steps:
|
|
46
|
+
- name: Deploy to GitHub Pages
|
|
47
|
+
id: deployment
|
|
48
|
+
uses: actions/deploy-pages@v4
|
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/.gitignore
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
require "bundler"
|
|
2
2
|
|
|
3
3
|
Bundler::GemHelper.install_tasks
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
require "rdoc/task"
|
|
7
|
+
RDoc::Task.new do |doc|
|
|
8
|
+
doc.main = "README.md"
|
|
9
|
+
doc.title = "Curses: A Ruby binding for curses, ncurses, and PDCurses."
|
|
10
|
+
doc.rdoc_files = FileList.new %w[ext/curses/curses.c lib README.md BSDL COPYING]
|
|
11
|
+
doc.rdoc_dir = "_site" # for github pages
|
|
12
|
+
end
|
|
13
|
+
rescue LoadError
|
|
14
|
+
end
|
data/curses.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new { |s|
|
|
2
2
|
s.name = "curses"
|
|
3
|
-
s.version = "1.5.
|
|
3
|
+
s.version = "1.5.4"
|
|
4
4
|
s.author = ["Shugo Maeda", 'Eric Hodel']
|
|
5
5
|
s.email = ["shugo@ruby-lang.org", 'drbrain@segment7.net']
|
|
6
6
|
s.homepage = "https://github.com/ruby/curses"
|
|
@@ -11,6 +11,13 @@ Gem::Specification.new { |s|
|
|
|
11
11
|
s.require_path = "lib"
|
|
12
12
|
s.required_ruby_version = Gem::Requirement.new('>= 3.0')
|
|
13
13
|
s.licenses = ['Ruby', 'BSD-2-Clause']
|
|
14
|
+
s.homepage = "https://github.com/ruby/curses"
|
|
15
|
+
|
|
16
|
+
s.metadata["homepage_uri"] = s.homepage
|
|
17
|
+
s.metadata["source_code_uri"] = s.homepage
|
|
18
|
+
s.metadata["changelog_uri"] = "#{s.homepage}/releases"
|
|
19
|
+
s.metadata["documentation_uri"] = "https://ruby.github.io/curses/"
|
|
20
|
+
|
|
14
21
|
s.add_development_dependency 'bundler'
|
|
15
22
|
s.add_development_dependency 'rake'
|
|
16
23
|
}
|
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,8 @@ extensions:
|
|
|
47
47
|
extra_rdoc_files: []
|
|
48
48
|
files:
|
|
49
49
|
- ".github/dependabot.yml"
|
|
50
|
+
- ".github/release.yml"
|
|
51
|
+
- ".github/workflows/gh-pages.yml"
|
|
50
52
|
- ".github/workflows/macos.yml"
|
|
51
53
|
- ".github/workflows/push_gem.yml"
|
|
52
54
|
- ".github/workflows/ubuntu.yml"
|
|
@@ -324,7 +326,11 @@ homepage: https://github.com/ruby/curses
|
|
|
324
326
|
licenses:
|
|
325
327
|
- Ruby
|
|
326
328
|
- BSD-2-Clause
|
|
327
|
-
metadata:
|
|
329
|
+
metadata:
|
|
330
|
+
homepage_uri: https://github.com/ruby/curses
|
|
331
|
+
source_code_uri: https://github.com/ruby/curses
|
|
332
|
+
changelog_uri: https://github.com/ruby/curses/releases
|
|
333
|
+
documentation_uri: https://ruby.github.io/curses/
|
|
328
334
|
rdoc_options: []
|
|
329
335
|
require_paths:
|
|
330
336
|
- lib
|
|
@@ -339,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
339
345
|
- !ruby/object:Gem::Version
|
|
340
346
|
version: '0'
|
|
341
347
|
requirements: []
|
|
342
|
-
rubygems_version:
|
|
348
|
+
rubygems_version: 4.0.3
|
|
343
349
|
specification_version: 4
|
|
344
350
|
summary: A Ruby binding for curses, ncurses, and PDCurses. curses is an extension
|
|
345
351
|
library for text UI applications. Formerly part of the Ruby standard library, [curses
|