curses 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e01aab88579c53f7ae662c5df89c10280832e35c629688aef762da4664ae07ea
4
- data.tar.gz: 64e74cfb2a024e1be5543893a8e4c22b13db65ec8ee78a4a8cd9b5b1dd58bc14
3
+ metadata.gz: a3dc6c1993c3ebe20eb4e46e30773476f8644a174cc438eb5518113d5b67f816
4
+ data.tar.gz: 24f0c4505ce46d75e45d26003920b6cd03809e29d3d8384b5f243cd1ec15c473
5
5
  SHA512:
6
- metadata.gz: bde0d0f8f8a93810e881c000b2058b8edbcde64d81ebfe899799fa166ed87be60a8dcf8f758af8732082da82f4071ff44dcb715fb550cd45ca56acd8aa42a0e2
7
- data.tar.gz: 58ae3617bd9227587cbe06e3d77b36c118cf0fdf45e501011debe117cf5d3b45cefcf0689835e822e567d21aee15a9cf510932dcee0410923161447f14a3e14f
6
+ metadata.gz: ea5cf9b18d0dbb6d95f7695dda34f7ebc47eb3385d5c0501a2adbccc67a3151c79777712b0dee96e1985077c1feb8d68ba2ba570addd507ca2356830f431bf49
7
+ data.tar.gz: e13765a7885c62940a4d0579e5b3c41dd9be710d84208e848cbea7b4f6b3270e2518eeb0be202f6728d4d7c311ab4dabcbc61a6da32b3b402fed61fa75dad784
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 1.3.2 / 2019-12-20
2
+
3
+ Bug fixes:
4
+
5
+ * Drop rb_safe_level check for Ruby 2.7 by Eric Wong.
6
+ * Try libtinfow first. Issue #52 by Marco Sirabella.
7
+
1
8
  ### 1.3.1 / 2019-04-21
2
9
 
3
10
  Bug fixes:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new { |s|
2
2
  s.name = "curses"
3
- s.version = "1.3.1"
3
+ s.version = "1.3.2"
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"
@@ -221,8 +221,6 @@ no_window(void)
221
221
  }
222
222
 
223
223
  #define GetWINDOW(obj, winp) do {\
224
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
225
- rb_raise(rb_eSecurityError, "Insecure: operation on untainted window");\
226
224
  TypedData_Get_Struct((obj), struct windata, &windata_type, (winp));\
227
225
  if ((winp)->window == 0) no_window();\
228
226
  } while (0)
@@ -858,7 +856,7 @@ getstr_func(void *arg)
858
856
  /*
859
857
  * Document-method: Curses.getstr
860
858
  *
861
- * This is equivalent to a series f Curses::Window.getch calls
859
+ * This is equivalent to a series of Curses::Window.getch calls
862
860
  *
863
861
  */
864
862
  static VALUE
@@ -1448,8 +1446,6 @@ no_mevent(void)
1448
1446
  }
1449
1447
 
1450
1448
  #define GetMOUSE(obj, data) do {\
1451
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
1452
- rb_raise(rb_eSecurityError, "Insecure: operation on untainted mouse");\
1453
1449
  TypedData_Get_Struct((obj), struct mousedata, &mousedata_type, (data));\
1454
1450
  if ((data)->mevent == 0) no_mevent();\
1455
1451
  } while (0)
@@ -2416,7 +2412,7 @@ wgetstr_func(void *_arg)
2416
2412
  /*
2417
2413
  * Document-method: Curses::Window.getstr
2418
2414
  *
2419
- * This is equivalent to a series f Curses::Window.getch calls
2415
+ * This is equivalent to a series of Curses::Window.getch calls
2420
2416
  *
2421
2417
  */
2422
2418
  static VALUE
@@ -3044,8 +3040,6 @@ no_item(void)
3044
3040
  }
3045
3041
 
3046
3042
  #define GetITEM(obj, itemp) do {\
3047
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
3048
- rb_raise(rb_eSecurityError, "Insecure: operation on untainted item");\
3049
3043
  TypedData_Get_Struct((obj), struct itemdata, &itemdata_type, (itemp));\
3050
3044
  if ((itemp)->item == 0) no_item();\
3051
3045
  } while (0)
@@ -3244,8 +3238,6 @@ no_menu(void)
3244
3238
  }
3245
3239
 
3246
3240
  #define GetMENU(obj, menup) do {\
3247
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
3248
- rb_raise(rb_eSecurityError, "Insecure: operation on untainted menu");\
3249
3241
  TypedData_Get_Struct((obj), struct menudata, &menudata_type, (menup));\
3250
3242
  if ((menup)->menu == 0) no_menu();\
3251
3243
  } while (0)
@@ -3716,8 +3708,6 @@ no_field(void)
3716
3708
  }
3717
3709
 
3718
3710
  #define GetFIELD(obj, fieldp) do {\
3719
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
3720
- rb_raise(rb_eSecurityError, "Insecure: operation on untainted field");\
3721
3711
  TypedData_Get_Struct((obj), struct fielddata, &fielddata_type, (fieldp));\
3722
3712
  if ((fieldp)->field == 0) no_field();\
3723
3713
  } while (0)
@@ -4163,8 +4153,6 @@ no_form(void)
4163
4153
  }
4164
4154
 
4165
4155
  #define GetFORM(obj, formp) do {\
4166
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
4167
- rb_raise(rb_eSecurityError, "Insecure: operation on untainted form");\
4168
4156
  TypedData_Get_Struct((obj), struct formdata, &formdata_type, (formp));\
4169
4157
  if ((formp)->form == 0) no_form();\
4170
4158
  } while (0)
@@ -27,7 +27,9 @@ dir_config('ncurses')
27
27
  dir_config('termcap')
28
28
 
29
29
  have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM
30
- have_library("tinfo", "tgetent") or have_library("termcap", "tgetent")
30
+ have_library("tinfow", "tgetent") ||
31
+ have_library("tinfo", "tgetent") ||
32
+ have_library("termcap", "tgetent")
31
33
 
32
34
  header_library = nil
33
35
  [
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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-20 00:00:00.000000000 Z
12
+ date: 2019-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -104,7 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.0.3
107
+ rubyforge_project:
108
+ rubygems_version: 2.7.6
108
109
  signing_key:
109
110
  specification_version: 4
110
111
  summary: A Ruby binding for curses, ncurses, and PDCurses. curses is an extension