#1 Patch obsolete puts calls
Opened 2 months ago by sdgathman. Modified 2 months ago
rpms/ sdgathman/nodejs-ronn master  into  master

file modified
+6 -1

@@ -2,11 +2,12 @@ 

  

  Name:       nodejs-ronn

  Version:    0.4.0

- Release:    14%{?dist}

+ Release:    15%{?dist}

  Summary:    Markdown to roff/html converter

  License:    MIT

  URL:        https://github.com/kapouer/ronnjs

  Source0:    https://registry.npmjs.org/ronn/-/ronn-%{version}.tgz

+ Patch0:	    puts.patch

  

  BuildArch:  noarch

  %if 0%{?fedora} >= 19

@@ -23,6 +24,7 @@ 

  

  %prep

  %setup -q -n package

+ %patch0 -p3 -b .puts

  

  %build

  #nothing to do

@@ -43,6 +45,9 @@ 

  %license LICENSE

  

  %changelog

+ * Fri Dec  6 2019 Stuart Gathman <stuart@gathman.org> - 0.4.0-15

+ - Patch obsolete puts calls to use console

+ 

  * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-14

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

file added
+26

@@ -0,0 +1,26 @@ 

+ diff -up ./node_modules/ronn/bin/ronn.js.puts ./node_modules/ronn/bin/ronn.js

+ --- ./node_modules/ronn/bin/ronn.js.puts	2019-08-03 18:32:03.560415945 -0400

+ +++ ./node_modules/ronn/bin/ronn.js	2019-08-03 18:33:18.600372936 -0400

+ @@ -2,7 +2,8 @@

+  

+  var RONN_VERSION = "0.4.0";

+  

+ -var sys = require('util');

+ +var console = require('console');

+ +var sys = { 'puts': console.log, 'debug': console.error };

+  var fs = require('fs');

+  var path = require('path');

+  var opts = require('opts');

+ diff -up ./node_modules/ronn/lib/ronn.js.puts ./node_modules/ronn/lib/ronn.js

+ --- ./node_modules/ronn/lib/ronn.js.puts	2019-08-03 18:32:11.703523935 -0400

+ +++ ./node_modules/ronn/lib/ronn.js	2019-08-03 18:33:02.578184733 -0400

+ @@ -4,7 +4,8 @@

+   */

+  

+  var md = require('markdown').markdown;

+ -var sys = require('util');

+ +var console = require('console');

+ +var sys = { 'puts': console.log, 'debug': console.error };

+  

+  /* exports Ronn class

+   * usage :

Add simple patch to update calls to puts to use console instead. Patch maps puts to console.log and debug to console.error.

Metadata