@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-21

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.
Files changed (235) hide show
  1. package/PRESTAGE.md +53 -16
  2. package/README.md +164 -0
  3. package/THIRD-PARTY-NOTICES.md +727 -0
  4. package/bin/bundle +1 -1
  5. package/bin/bundler +1 -1
  6. package/bin/erb +1 -1
  7. package/bin/gem +1 -1
  8. package/bin/irb +1 -1
  9. package/bin/rake +1 -1
  10. package/bin/{ruby.wasm → ruby} +0 -0
  11. package/lib/ruby/3.4.0/io/console/size.rb +23 -0
  12. package/lib/ruby/3.4.0/socket.rb +1790 -0
  13. package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +38 -34
  14. package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
  15. package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
  16. package/lib/ruby/gems/3.4.0/cache/bigdecimal-3.1.8.gem +0 -0
  17. package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
  18. package/lib/ruby/gems/3.4.0/cache/debug-1.11.0.gem +0 -0
  19. package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
  20. package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
  21. package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
  22. package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
  23. package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
  24. package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
  25. package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
  26. package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
  27. package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
  28. package/lib/ruby/gems/3.4.0/cache/nkf-0.2.0.gem +0 -0
  29. package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
  30. package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
  31. package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
  32. package/lib/ruby/gems/3.4.0/cache/racc-1.8.1.gem +0 -0
  33. package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
  34. package/lib/ruby/gems/3.4.0/cache/rbs-3.8.0.gem +0 -0
  35. package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
  36. package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
  37. package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
  38. package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
  39. package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
  40. package/lib/ruby/gems/3.4.0/cache/syslog-0.2.0.gem +0 -0
  41. package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
  42. package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
  43. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/bigdecimal-3.1.8/gem.build_complete +0 -0
  44. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/debug-1.11.0/gem.build_complete +0 -0
  45. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/nkf-0.2.0/gem.build_complete +0 -0
  46. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/racc-1.8.1/gem.build_complete +0 -0
  47. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/rbs-3.8.0/gem.build_complete +0 -0
  48. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/syslog-0.2.0/gem.build_complete +0 -0
  49. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
  50. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
  51. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.c +7794 -0
  52. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.h +313 -0
  53. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bits.h +141 -0
  54. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/extconf.rb +62 -0
  55. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/feature.h +68 -0
  56. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing/dtoa.c +3462 -0
  57. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.c +27 -0
  58. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.h +196 -0
  59. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h +54 -0
  60. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
  61. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
  62. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/debug.c +228 -0
  63. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/extconf.rb +27 -0
  64. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/iseq_collector.c +93 -0
  65. package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
  66. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
  67. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
  68. package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
  69. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -0
  70. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +0 -0
  71. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Command.java +58 -0
  72. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/CommandParser.java +70 -0
  73. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/NKFLibrary.java +13 -0
  74. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Option.java +80 -0
  75. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Options.java +109 -0
  76. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/RubyNKF.java +601 -0
  77. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/extconf.rb +3 -0
  78. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/config.h +51 -0
  79. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.c +7205 -0
  80. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.h +189 -0
  81. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.c +14638 -0
  82. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.h +72 -0
  83. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf.c +506 -0
  84. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
  85. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
  86. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +840 -0
  87. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +8 -0
  88. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/extconf.rb +14 -0
  89. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.c +2728 -0
  90. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.h +179 -0
  91. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.re +147 -0
  92. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexstate.c +175 -0
  93. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.c +303 -0
  94. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.h +84 -0
  95. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/main.c +12 -0
  96. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.c +2961 -0
  97. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.h +18 -0
  98. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.c +366 -0
  99. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.h +161 -0
  100. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/rbs_extension.h +31 -0
  101. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/unescape.c +32 -0
  102. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
  103. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
  104. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
  105. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
  106. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
  107. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
  108. package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
  109. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -0
  110. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -0
  111. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/extconf.rb +26 -0
  112. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.c +592 -0
  113. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.txt +124 -0
  114. package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
  115. package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
  116. package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +20 -45
  117. package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
  118. package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +26 -27
  119. package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
  120. package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
  121. package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
  122. package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
  123. package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
  124. package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
  125. package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
  126. package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
  127. package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
  128. package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
  129. package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
  130. package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
  131. package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
  132. package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
  133. package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
  134. package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
  135. package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
  136. package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
  137. package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
  138. package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
  139. package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
  140. package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
  141. package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
  142. package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
  143. package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
  144. package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
  145. package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
  146. package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
  147. package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
  148. package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
  149. package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
  150. package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
  151. package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
  152. package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
  153. package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
  154. package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
  155. package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
  156. package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
  157. package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
  158. package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
  159. package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
  160. package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
  161. package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
  162. package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
  163. package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
  164. package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
  165. package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
  166. package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
  167. package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
  168. package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
  169. package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
  170. package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
  171. package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
  172. package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
  173. package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
  174. package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
  175. package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
  176. package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
  177. package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
  178. package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
  179. package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
  180. package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
  181. package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
  182. package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
  183. package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
  184. package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
  185. package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +22 -39
  186. package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
  187. package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
  188. package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
  189. package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +5 -3
  190. package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
  191. package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +25 -43
  192. package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
  193. package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
  194. package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
  195. package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
  196. package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
  197. package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +21 -22
  198. package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
  199. package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
  200. package/package.json +64 -25
  201. package/lib/ruby/3.4.0/expect.rb +0 -71
  202. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
  203. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
  204. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
  205. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
  206. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
  207. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
  208. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
  209. package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
  210. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
  211. package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
  212. package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
  213. package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
  214. package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
  215. package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
  216. package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
  217. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
  218. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
  219. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
  220. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
  221. package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
  222. package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
  223. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
  224. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
  225. package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
  226. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
  227. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
  228. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
  229. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
  230. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
  231. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
  232. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
  233. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
  234. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
  235. package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: false
2
+ # $RoughId: extconf.rb,v 1.3 2001/11/24 17:49:26 knu Exp $
3
+ # $Id$
4
+
5
+ require 'mkmf'
6
+
7
+ def generate_dummy_makefile
8
+ File.open("Makefile", "w") do |f|
9
+ f.puts dummy_makefile("syslog_ext").join
10
+ end
11
+ end
12
+
13
+ def windows?
14
+ RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
15
+ end
16
+
17
+ if windows?
18
+ generate_dummy_makefile
19
+ else
20
+ have_library("log") # for Android
21
+
22
+ have_header("syslog.h") &&
23
+ have_func("openlog") &&
24
+ have_func("setlogmask") &&
25
+ create_makefile("syslog_ext")
26
+ end
@@ -0,0 +1,592 @@
1
+ /*
2
+ * UNIX Syslog extension for Ruby
3
+ * Amos Gouaux, University of Texas at Dallas
4
+ * <amos+ruby@utdallas.edu>
5
+ * Documented by mathew <meta@pobox.com>
6
+ *
7
+ * $RoughId: syslog.c,v 1.21 2002/02/25 12:21:17 knu Exp $
8
+ * $Id$
9
+ */
10
+
11
+ #include "ruby/ruby.h"
12
+ #include "ruby/util.h"
13
+ #include <syslog.h>
14
+
15
+ #define SYSLOG_VERSION "0.2.0"
16
+
17
+ /* Syslog class */
18
+ static VALUE mSyslog;
19
+ /*
20
+ * Module holding all Syslog constants. See Syslog::log and
21
+ * Syslog::open for constant descriptions.
22
+ */
23
+ static VALUE mSyslogConstants;
24
+ /* Module holding Syslog option constants */
25
+ static VALUE mSyslogOption;
26
+ /* Module holding Syslog facility constants */
27
+ static VALUE mSyslogFacility;
28
+ /* Module holding Syslog level constants */
29
+ static VALUE mSyslogLevel;
30
+ /* Module holding Syslog utility macros */
31
+ static VALUE mSyslogMacros;
32
+
33
+ static const char *syslog_ident = NULL;
34
+ static int syslog_options = -1, syslog_facility = -1, syslog_mask = -1;
35
+ static int syslog_opened = 0;
36
+
37
+ /* Package helper routines */
38
+ static void syslog_write(int pri, int argc, VALUE *argv)
39
+ {
40
+ VALUE str;
41
+
42
+ if (argc < 1) {
43
+ rb_raise(rb_eArgError, "no log message supplied");
44
+ }
45
+
46
+ if (!syslog_opened) {
47
+ rb_raise(rb_eRuntimeError, "must open syslog before write");
48
+ }
49
+
50
+ str = rb_f_sprintf(argc, argv);
51
+
52
+ syslog(pri, "%s", RSTRING_PTR(str));
53
+ }
54
+
55
+ /* Closes the syslog facility.
56
+ * Raises a runtime exception if it is not open.
57
+ */
58
+ static VALUE mSyslog_close(VALUE self)
59
+ {
60
+ if (!syslog_opened) {
61
+ rb_raise(rb_eRuntimeError, "syslog not opened");
62
+ }
63
+
64
+ closelog();
65
+
66
+ xfree((void *)syslog_ident);
67
+ syslog_ident = NULL;
68
+ syslog_options = syslog_facility = syslog_mask = -1;
69
+ syslog_opened = 0;
70
+
71
+ return Qnil;
72
+ }
73
+
74
+ /* call-seq:
75
+ * open(ident, options, facility) => syslog
76
+ *
77
+ * :yields: syslog
78
+ *
79
+ * Open the syslog facility.
80
+ * Raises a runtime exception if it is already open.
81
+ *
82
+ * Can be called with or without a code block. If called with a block, the
83
+ * Syslog object created is passed to the block.
84
+ *
85
+ * If the syslog is already open, raises a RuntimeError.
86
+ *
87
+ * +ident+ is a String which identifies the calling program.
88
+ *
89
+ * +options+ is the logical OR of any of the following:
90
+ *
91
+ * LOG_CONS:: If there is an error while sending to the system logger,
92
+ * write directly to the console instead.
93
+ *
94
+ * LOG_NDELAY:: Open the connection now, rather than waiting for the first
95
+ * message to be written.
96
+ *
97
+ * LOG_NOWAIT:: Don't wait for any child processes created while logging
98
+ * messages. (Has no effect on Linux.)
99
+ *
100
+ * LOG_ODELAY:: Opposite of LOG_NDELAY; wait until a message is sent before
101
+ * opening the connection. (This is the default.)
102
+ *
103
+ * LOG_PERROR:: Print the message to stderr as well as sending it to syslog.
104
+ * (Not in POSIX.1-2001.)
105
+ *
106
+ * LOG_PID:: Include the current process ID with each message.
107
+ *
108
+ * +facility+ describes the type of program opening the syslog, and is
109
+ * the logical OR of any of the following which are defined for the host OS:
110
+ *
111
+ * LOG_AUTH:: Security or authorization. Deprecated, use LOG_AUTHPRIV
112
+ * instead.
113
+ *
114
+ * LOG_AUTHPRIV:: Security or authorization messages which should be kept
115
+ * private.
116
+ *
117
+ * LOG_CONSOLE:: System console message.
118
+ *
119
+ * LOG_CRON:: System task scheduler (cron or at).
120
+ *
121
+ * LOG_DAEMON:: A system daemon which has no facility value of its own.
122
+ *
123
+ * LOG_FTP:: An FTP server.
124
+ *
125
+ * LOG_KERN:: A kernel message (not sendable by user processes, so not of
126
+ * much use to Ruby, but listed here for completeness).
127
+ *
128
+ * LOG_LPR:: Line printer subsystem.
129
+ *
130
+ * LOG_MAIL:: Mail delivery or transport subsystem.
131
+ *
132
+ * LOG_NEWS:: Usenet news system.
133
+ *
134
+ * LOG_NTP:: Network Time Protocol server.
135
+ *
136
+ * LOG_SECURITY:: General security message.
137
+ *
138
+ * LOG_SYSLOG:: Messages generated internally by syslog.
139
+ *
140
+ * LOG_USER:: Generic user-level message.
141
+ *
142
+ * LOG_UUCP:: UUCP subsystem.
143
+ *
144
+ * LOG_LOCAL0 to LOG_LOCAL7:: Locally-defined facilities.
145
+ *
146
+ * Example:
147
+ *
148
+ * Syslog.open("webrick", Syslog::LOG_PID,
149
+ * Syslog::LOG_DAEMON | Syslog::LOG_LOCAL3)
150
+ *
151
+ */
152
+ static VALUE mSyslog_open(int argc, VALUE *argv, VALUE self)
153
+ {
154
+ VALUE ident, opt, fac;
155
+ const char *ident_ptr;
156
+
157
+ if (syslog_opened) {
158
+ rb_raise(rb_eRuntimeError, "syslog already open");
159
+ }
160
+
161
+ rb_scan_args(argc, argv, "03", &ident, &opt, &fac);
162
+
163
+ if (NIL_P(ident)) {
164
+ ident = rb_gv_get("$0");
165
+ }
166
+ ident_ptr = StringValueCStr(ident);
167
+ syslog_ident = strdup(ident_ptr);
168
+
169
+ if (NIL_P(opt)) {
170
+ syslog_options = LOG_PID | LOG_CONS;
171
+ } else {
172
+ syslog_options = NUM2INT(opt);
173
+ }
174
+
175
+ if (NIL_P(fac)) {
176
+ syslog_facility = LOG_USER;
177
+ } else {
178
+ syslog_facility = NUM2INT(fac);
179
+ }
180
+
181
+ openlog(syslog_ident, syslog_options, syslog_facility);
182
+
183
+ syslog_opened = 1;
184
+
185
+ setlogmask(syslog_mask = setlogmask(0));
186
+
187
+ /* be like File.new.open {...} */
188
+ if (rb_block_given_p()) {
189
+ rb_ensure(rb_yield, self, mSyslog_close, self);
190
+ }
191
+
192
+ return self;
193
+ }
194
+
195
+ /* call-seq:
196
+ * reopen(ident, options, facility) => syslog
197
+ *
198
+ * :yields: syslog
199
+ *
200
+ * Closes and then reopens the syslog.
201
+ *
202
+ * Arguments are the same as for open().
203
+ */
204
+ static VALUE mSyslog_reopen(int argc, VALUE *argv, VALUE self)
205
+ {
206
+ mSyslog_close(self);
207
+
208
+ return mSyslog_open(argc, argv, self);
209
+ }
210
+
211
+ /* call-seq:
212
+ * opened?
213
+ *
214
+ * Returns true if the syslog is open.
215
+ */
216
+ static VALUE mSyslog_isopen(VALUE self)
217
+ {
218
+ return syslog_opened ? Qtrue : Qfalse;
219
+ }
220
+
221
+ /* Returns the identity string used in the last call to open()
222
+ */
223
+ static VALUE mSyslog_ident(VALUE self)
224
+ {
225
+ return syslog_opened ? rb_str_new2(syslog_ident) : Qnil;
226
+ }
227
+
228
+ /* Returns the options bitmask used in the last call to open()
229
+ */
230
+ static VALUE mSyslog_options(VALUE self)
231
+ {
232
+ return syslog_opened ? INT2NUM(syslog_options) : Qnil;
233
+ }
234
+
235
+ /* Returns the facility number used in the last call to open()
236
+ */
237
+ static VALUE mSyslog_facility(VALUE self)
238
+ {
239
+ return syslog_opened ? INT2NUM(syslog_facility) : Qnil;
240
+ }
241
+
242
+ /* Returns the log priority mask in effect. The mask is not reset by opening
243
+ * or closing syslog.
244
+ */
245
+ static VALUE mSyslog_get_mask(VALUE self)
246
+ {
247
+ return syslog_opened ? INT2NUM(syslog_mask) : Qnil;
248
+ }
249
+
250
+ /* call-seq:
251
+ * mask=(priority_mask)
252
+ *
253
+ * Sets the log priority mask. A method LOG_UPTO is defined to make it easier
254
+ * to set mask values. Example:
255
+ *
256
+ * Syslog.mask = Syslog::LOG_UPTO(Syslog::LOG_ERR)
257
+ *
258
+ * Alternatively, specific priorities can be selected and added together using
259
+ * binary OR. Example:
260
+ *
261
+ * Syslog.mask = Syslog::LOG_MASK(Syslog::LOG_ERR) | Syslog::LOG_MASK(Syslog::LOG_CRIT)
262
+ *
263
+ * The priority mask persists through calls to open() and close().
264
+ */
265
+ static VALUE mSyslog_set_mask(VALUE self, VALUE mask)
266
+ {
267
+ if (!syslog_opened) {
268
+ rb_raise(rb_eRuntimeError, "must open syslog before setting log mask");
269
+ }
270
+
271
+ setlogmask(syslog_mask = NUM2INT(mask));
272
+
273
+ return mask;
274
+ }
275
+
276
+ /* call-seq:
277
+ * log(priority, format_string, *format_args)
278
+ *
279
+ * Log a message with the specified priority. Example:
280
+ *
281
+ * Syslog.log(Syslog::LOG_CRIT, "Out of disk space")
282
+ * Syslog.log(Syslog::LOG_CRIT, "User %s logged in", ENV['USER'])
283
+ *
284
+ * The priority levels, in descending order, are:
285
+ *
286
+ * LOG_EMERG:: System is unusable
287
+ * LOG_ALERT:: Action needs to be taken immediately
288
+ * LOG_CRIT:: A critical condition has occurred
289
+ * LOG_ERR:: An error occurred
290
+ * LOG_WARNING:: Warning of a possible problem
291
+ * LOG_NOTICE:: A normal but significant condition occurred
292
+ * LOG_INFO:: Informational message
293
+ * LOG_DEBUG:: Debugging information
294
+ *
295
+ * Each priority level also has a shortcut method that logs with it's named priority.
296
+ * As an example, the two following statements would produce the same result:
297
+ *
298
+ * Syslog.log(Syslog::LOG_ALERT, "Out of memory")
299
+ * Syslog.alert("Out of memory")
300
+ *
301
+ */
302
+ static VALUE mSyslog_log(int argc, VALUE *argv, VALUE self)
303
+ {
304
+ VALUE pri;
305
+
306
+ rb_check_arity(argc, 2, UNLIMITED_ARGUMENTS);
307
+
308
+ argc--;
309
+ pri = *argv++;
310
+
311
+ if (!FIXNUM_P(pri)) {
312
+ rb_raise(rb_eTypeError, "type mismatch: %"PRIsVALUE" given", rb_obj_class(pri));
313
+ }
314
+
315
+ syslog_write(FIX2INT(pri), argc, argv);
316
+
317
+ return self;
318
+ }
319
+
320
+ /* Returns an inspect() string summarizing the object state.
321
+ */
322
+ static VALUE mSyslog_inspect(VALUE self)
323
+ {
324
+ Check_Type(self, T_MODULE);
325
+
326
+ if (!syslog_opened)
327
+ return rb_sprintf("<#%"PRIsVALUE": opened=false>", self);
328
+
329
+ return rb_sprintf("<#%"PRIsVALUE": opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
330
+ self,
331
+ syslog_ident,
332
+ syslog_options,
333
+ syslog_facility,
334
+ syslog_mask);
335
+ }
336
+
337
+ /* Returns self, for backward compatibility.
338
+ */
339
+ static VALUE mSyslog_instance(VALUE self)
340
+ {
341
+ return self;
342
+ }
343
+
344
+ #define define_syslog_shortcut_method(pri, name) \
345
+ static VALUE mSyslog_##name(int argc, VALUE *argv, VALUE self) \
346
+ { \
347
+ syslog_write((pri), argc, argv); \
348
+ \
349
+ return self; \
350
+ }
351
+
352
+ #ifdef LOG_EMERG
353
+ define_syslog_shortcut_method(LOG_EMERG, emerg)
354
+ #endif
355
+ #ifdef LOG_ALERT
356
+ define_syslog_shortcut_method(LOG_ALERT, alert)
357
+ #endif
358
+ #ifdef LOG_CRIT
359
+ define_syslog_shortcut_method(LOG_CRIT, crit)
360
+ #endif
361
+ #ifdef LOG_ERR
362
+ define_syslog_shortcut_method(LOG_ERR, err)
363
+ #endif
364
+ #ifdef LOG_WARNING
365
+ define_syslog_shortcut_method(LOG_WARNING, warning)
366
+ #endif
367
+ #ifdef LOG_NOTICE
368
+ define_syslog_shortcut_method(LOG_NOTICE, notice)
369
+ #endif
370
+ #ifdef LOG_INFO
371
+ define_syslog_shortcut_method(LOG_INFO, info)
372
+ #endif
373
+ #ifdef LOG_DEBUG
374
+ define_syslog_shortcut_method(LOG_DEBUG, debug)
375
+ #endif
376
+
377
+ /* call-seq:
378
+ * LOG_MASK(priority_level) => priority_mask
379
+ *
380
+ * Generates a mask bit for a priority level. See #mask=
381
+ */
382
+ static VALUE mSyslogMacros_LOG_MASK(VALUE mod, VALUE pri)
383
+ {
384
+ return INT2FIX(LOG_MASK(NUM2INT(pri)));
385
+ }
386
+
387
+ /* call-seq:
388
+ * LOG_UPTO(priority_level) => priority_mask
389
+ *
390
+ * Generates a mask value for priority levels at or below the level specified.
391
+ * See #mask=
392
+ */
393
+ static VALUE mSyslogMacros_LOG_UPTO(VALUE mod, VALUE pri)
394
+ {
395
+ return INT2FIX(LOG_UPTO(NUM2INT(pri)));
396
+ }
397
+
398
+ static VALUE mSyslogMacros_included(VALUE mod, VALUE target)
399
+ {
400
+ rb_extend_object(target, mSyslogMacros);
401
+ return mod;
402
+ }
403
+
404
+ /* The syslog package provides a Ruby interface to the POSIX system logging
405
+ * facility.
406
+ *
407
+ * Syslog messages are typically passed to a central logging daemon.
408
+ * The daemon may filter them; route them into different files (usually
409
+ * found under /var/log); place them in SQL databases; forward
410
+ * them to centralized logging servers via TCP or UDP; or even alert the
411
+ * system administrator via email, pager or text message.
412
+ *
413
+ * Unlike application-level logging via Logger or Log4r, syslog is designed
414
+ * to allow secure tamper-proof logging.
415
+ *
416
+ * The syslog protocol is standardized in RFC 5424.
417
+ */
418
+ void Init_syslog_ext(void)
419
+ {
420
+ #undef rb_intern
421
+ mSyslog = rb_define_module("Syslog");
422
+
423
+ mSyslogConstants = rb_define_module_under(mSyslog, "Constants");
424
+
425
+ mSyslogOption = rb_define_module_under(mSyslog, "Option");
426
+ mSyslogFacility = rb_define_module_under(mSyslog, "Facility");
427
+ mSyslogLevel = rb_define_module_under(mSyslog, "Level");
428
+ mSyslogMacros = rb_define_module_under(mSyslog, "Macros");
429
+
430
+ rb_define_module_function(mSyslog, "open", mSyslog_open, -1);
431
+ rb_define_module_function(mSyslog, "reopen", mSyslog_reopen, -1);
432
+ rb_define_module_function(mSyslog, "open!", mSyslog_reopen, -1);
433
+ rb_define_module_function(mSyslog, "opened?", mSyslog_isopen, 0);
434
+
435
+ rb_define_module_function(mSyslog, "ident", mSyslog_ident, 0);
436
+ rb_define_module_function(mSyslog, "options", mSyslog_options, 0);
437
+ rb_define_module_function(mSyslog, "facility", mSyslog_facility, 0);
438
+
439
+ rb_define_module_function(mSyslog, "log", mSyslog_log, -1);
440
+ rb_define_module_function(mSyslog, "close", mSyslog_close, 0);
441
+ rb_define_module_function(mSyslog, "mask", mSyslog_get_mask, 0);
442
+ rb_define_module_function(mSyslog, "mask=", mSyslog_set_mask, 1);
443
+
444
+ rb_define_singleton_method(mSyslog, "inspect", mSyslog_inspect, 0);
445
+ rb_define_module_function(mSyslog, "instance", mSyslog_instance, 0);
446
+
447
+ /* Syslog options */
448
+
449
+ #define rb_define_syslog_option(c) \
450
+ rb_define_const(mSyslogOption, #c, INT2NUM(c))
451
+
452
+ #ifdef LOG_PID
453
+ rb_define_syslog_option(LOG_PID);
454
+ #endif
455
+ #ifdef LOG_CONS
456
+ rb_define_syslog_option(LOG_CONS);
457
+ #endif
458
+ #ifdef LOG_ODELAY
459
+ rb_define_syslog_option(LOG_ODELAY); /* deprecated */
460
+ #endif
461
+ #ifdef LOG_NDELAY
462
+ rb_define_syslog_option(LOG_NDELAY);
463
+ #endif
464
+ #ifdef LOG_NOWAIT
465
+ rb_define_syslog_option(LOG_NOWAIT); /* deprecated */
466
+ #endif
467
+ #ifdef LOG_PERROR
468
+ rb_define_syslog_option(LOG_PERROR);
469
+ #endif
470
+
471
+ /* Syslog facilities */
472
+
473
+ #define rb_define_syslog_facility(c) \
474
+ rb_define_const(mSyslogFacility, #c, INT2NUM(c))
475
+
476
+ #ifdef LOG_AUTH
477
+ rb_define_syslog_facility(LOG_AUTH);
478
+ #endif
479
+ #ifdef LOG_AUTHPRIV
480
+ rb_define_syslog_facility(LOG_AUTHPRIV);
481
+ #endif
482
+ #ifdef LOG_CONSOLE
483
+ rb_define_syslog_facility(LOG_CONSOLE);
484
+ #endif
485
+ #ifdef LOG_CRON
486
+ rb_define_syslog_facility(LOG_CRON);
487
+ #endif
488
+ #ifdef LOG_DAEMON
489
+ rb_define_syslog_facility(LOG_DAEMON);
490
+ #endif
491
+ #ifdef LOG_FTP
492
+ rb_define_syslog_facility(LOG_FTP);
493
+ #endif
494
+ #ifdef LOG_KERN
495
+ rb_define_syslog_facility(LOG_KERN);
496
+ #endif
497
+ #ifdef LOG_LPR
498
+ rb_define_syslog_facility(LOG_LPR);
499
+ #endif
500
+ #ifdef LOG_MAIL
501
+ rb_define_syslog_facility(LOG_MAIL);
502
+ #endif
503
+ #ifdef LOG_NEWS
504
+ rb_define_syslog_facility(LOG_NEWS);
505
+ #endif
506
+ #ifdef LOG_NTP
507
+ rb_define_syslog_facility(LOG_NTP);
508
+ #endif
509
+ #ifdef LOG_SECURITY
510
+ rb_define_syslog_facility(LOG_SECURITY);
511
+ #endif
512
+ #ifdef LOG_SYSLOG
513
+ rb_define_syslog_facility(LOG_SYSLOG);
514
+ #endif
515
+ #ifdef LOG_USER
516
+ rb_define_syslog_facility(LOG_USER);
517
+ #endif
518
+ #ifdef LOG_UUCP
519
+ rb_define_syslog_facility(LOG_UUCP);
520
+ #endif
521
+ #ifdef LOG_LOCAL0
522
+ rb_define_syslog_facility(LOG_LOCAL0);
523
+ #endif
524
+ #ifdef LOG_LOCAL1
525
+ rb_define_syslog_facility(LOG_LOCAL1);
526
+ #endif
527
+ #ifdef LOG_LOCAL2
528
+ rb_define_syslog_facility(LOG_LOCAL2);
529
+ #endif
530
+ #ifdef LOG_LOCAL3
531
+ rb_define_syslog_facility(LOG_LOCAL3);
532
+ #endif
533
+ #ifdef LOG_LOCAL4
534
+ rb_define_syslog_facility(LOG_LOCAL4);
535
+ #endif
536
+ #ifdef LOG_LOCAL5
537
+ rb_define_syslog_facility(LOG_LOCAL5);
538
+ #endif
539
+ #ifdef LOG_LOCAL6
540
+ rb_define_syslog_facility(LOG_LOCAL6);
541
+ #endif
542
+ #ifdef LOG_LOCAL7
543
+ rb_define_syslog_facility(LOG_LOCAL7);
544
+ #endif
545
+
546
+ /* Syslog levels and the shortcut methods */
547
+
548
+ #define rb_define_syslog_level(c, m) \
549
+ rb_define_const(mSyslogLevel, #c, INT2NUM(c)); \
550
+ rb_define_module_function(mSyslog, #m, mSyslog_##m, -1)
551
+
552
+ #ifdef LOG_EMERG
553
+ rb_define_syslog_level(LOG_EMERG, emerg);
554
+ #endif
555
+ #ifdef LOG_ALERT
556
+ rb_define_syslog_level(LOG_ALERT, alert);
557
+ #endif
558
+ #ifdef LOG_CRIT
559
+ rb_define_syslog_level(LOG_CRIT, crit);
560
+ #endif
561
+ #ifdef LOG_ERR
562
+ rb_define_syslog_level(LOG_ERR, err);
563
+ #endif
564
+ #ifdef LOG_WARNING
565
+ rb_define_syslog_level(LOG_WARNING, warning);
566
+ #endif
567
+ #ifdef LOG_NOTICE
568
+ rb_define_syslog_level(LOG_NOTICE, notice);
569
+ #endif
570
+ #ifdef LOG_INFO
571
+ rb_define_syslog_level(LOG_INFO, info);
572
+ #endif
573
+ #ifdef LOG_DEBUG
574
+ rb_define_syslog_level(LOG_DEBUG, debug);
575
+ #endif
576
+
577
+ /* Syslog macros */
578
+
579
+ rb_define_const(mSyslog, "VERSION", rb_str_new_cstr(SYSLOG_VERSION));
580
+
581
+ rb_define_method(mSyslogMacros, "LOG_MASK", mSyslogMacros_LOG_MASK, 1);
582
+ rb_define_method(mSyslogMacros, "LOG_UPTO", mSyslogMacros_LOG_UPTO, 1);
583
+ rb_define_singleton_method(mSyslogMacros, "included", mSyslogMacros_included, 1);
584
+
585
+ rb_include_module(mSyslogConstants, mSyslogOption);
586
+ rb_include_module(mSyslogConstants, mSyslogFacility);
587
+ rb_include_module(mSyslogConstants, mSyslogLevel);
588
+ rb_funcall(mSyslogConstants, rb_intern("include"), 1, mSyslogMacros);
589
+
590
+ rb_define_singleton_method(mSyslogConstants, "included", mSyslogMacros_included, 1);
591
+ rb_funcall(mSyslog, rb_intern("include"), 1, mSyslogConstants);
592
+ }