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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6a0461f1259694a891fe0a6afeed1e0923a80f6b2b9972c400290050885bcb9
4
- data.tar.gz: 923973e1b27938952e0ab91bea5a29d1b035a4ea3120b35c6f44275a159e4b46
3
+ metadata.gz: 3c363e2ee899bf325f21d679cdf68e78caec9959d8ae8d631e51aaefdf361470
4
+ data.tar.gz: f12600ce5a6c645604cc74813def3c0afa9fed11c2e4117f4c53d374b3b77018
5
5
  SHA512:
6
- metadata.gz: 4f86162cf8616fc888a560b79cb6159325fc07718d563f28757f37c6cde521cc357a48f42010dd223453b71b27afec04c14e0307c2b744c5b0e032113bc2dd37
7
- data.tar.gz: 240ef48206f9a494e4eec48fd570f9d79d1792d2ab2a29bbedc2744e64d4f478f29f60e0a3c00477c972c184455f3e69421af1d4050ecf01883180d03f288a54
6
+ metadata.gz: ee80959584814c5102f2e2e881c3da795833d4c682cd952b5484ad11d2aa14130916fef00fea1d42d345d3d75a1ced642fd0bb9b839414fa90615cace0ad34f8
7
+ data.tar.gz: de4842e3f63642306b6a914084d5979c12d81263eeffdf82f2b0c56fc1da8c3ccadb400971a8541811d0244c456428f42fb6e5c20655fb163e77f5571ec8a1c4
@@ -0,0 +1,4 @@
1
+ changelog:
2
+ exclude:
3
+ labels:
4
+ - dependencies # Added by Dependabot
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  steps:
21
21
  - name: Checkout
22
- uses: actions/checkout@v4
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@v3
37
+ uses: actions/upload-pages-artifact@v4
38
38
 
39
39
  deploy:
40
40
  environment:
@@ -6,7 +6,10 @@ jobs:
6
6
  build:
7
7
  runs-on: macos-latest
8
8
  steps:
9
- - uses: actions/checkout@v4
9
+ - uses: actions/checkout@v6
10
+ - uses: ruby/setup-ruby@v1
11
+ with:
12
+ ruby-version: 3.4
10
13
  - name: Install dependencies
11
14
  run: |
12
15
  gem install bundler --no-document
@@ -24,11 +24,11 @@ jobs:
24
24
  steps:
25
25
  # Set up
26
26
  - name: Harden Runner
27
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
27
+ uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
28
28
  with:
29
29
  egress-policy: audit
30
30
 
31
- - uses: actions/checkout@v4
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.3, 3.2, 3.1, 3.0 ]
9
+ ruby: [ head, 3.4, 3.3, 3.2 ]
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v4
12
+ - uses: actions/checkout@v6
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
15
15
  ruby-version: ${{ matrix.ruby }}
@@ -7,9 +7,9 @@ jobs:
7
7
  runs-on: windows-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 'mingw', 'mswin', '3.3' ]
10
+ ruby: [ 'mingw', 'mswin', '3.4' ]
11
11
  steps:
12
- - uses: actions/checkout@v4
12
+ - uses: actions/checkout@v6
13
13
  with:
14
14
  submodules: true
15
15
  - name: Set up Ruby
data/README.md CHANGED
@@ -48,7 +48,8 @@ _with `/usr/local/opt/ncurses` the path where homebrew installed ncurses on your
48
48
 
49
49
  Type the following command, and see `[rdoc]` of curses:
50
50
 
51
- > gem server -l
51
+ gem install rubygems-server
52
+ gem server -l
52
53
 
53
54
  ## Limitations
54
55
 
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"
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"
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 stdscr;
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->stdscr);
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->stdscr = Qnil;
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->stdscr)) {
1799
- screenp->stdscr = prep_window(cWindow, stdscr, 1);
1798
+ if (NIL_P(screenp->stdscr_value)) {
1799
+ screenp->stdscr_value = prep_window(cWindow, stdscr, 1);
1800
1800
  }
1801
- rb_stdscr = screenp->stdscr;
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::ALT_SEPARATOR ?
5
- File.dirname(pdcurses_dll).tr("/", File::ALT_SEPARATOR) : dir
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.3
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: 3.6.7
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