Skip to content

Commit c53bff7

Browse files
committed
fixed gem issues
1 parent 56f95c7 commit c53bff7

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
source 'https://rubygems.org'
22

3-
gem 'rexml', '3.4.1'
43
gem 'asciidoctor', '2.0.23'
5-
gem 'asciidoctor-pdf', '2.3.19'
6-
gem 'rouge', '4.5.2'
4+
gem 'asciidoctor-pdf', '2.3.5'
5+
gem 'rouge', '3.30.0'
76
gem 'logger', '1.7.0'
87
gem 'ostruct', '0.6.1'
9-
gem 'bigdecimal', '3.2.2'
8+
gem 'bigdecimal', '3.2.2'

src/mscp/generate/guidance_support/documents.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -417,43 +417,43 @@ def generate_documents(
417417
gems_asciidoctor: Path = Path("mscp_gems/bin/asciidoctor")
418418
gems_asciidoctor_pdf: Path = Path("mscp_gems/bin/asciidoctor-pdf")
419419

420-
output, error = run_command("which asciidoctor")
421-
logger.debug(f"which asciidoctor output: {output}, error: {error}")
420+
# output, error = run_command("which asciidoctor")
421+
# logger.debug(f"which asciidoctor output: {output}, error: {error}")
422422

423-
if not output:
424-
if not gems_asciidoctor.exists():
425-
logger.error("Asciidoctor not installed!!")
426-
sys.exit()
423+
# if not output:
424+
# if not gems_asciidoctor.exists():
425+
# logger.error("Asciidoctor not installed!!")
426+
# sys.exit()
427427

428-
output, error = run_command(f"asciidoctor {output_file}")
428+
output, error = run_command(f"bundle exec asciidoctor {output_file}")
429429
if error:
430430
logger.error(f"Error converting to ADOC: {error}")
431431
sys.exit()
432432

433433
if not show_all_tags:
434-
output, error = run_command("which asciidoctor-pdf")
435-
logger.debug(f"which asciidoctor-pdf output: {output}, error: {error}")
434+
# output, error = run_command("which asciidoctor-pdf")
435+
# logger.debug(f"which asciidoctor-pdf output: {output}, error: {error}")
436436

437-
if not output:
438-
if not gems_asciidoctor.exists():
439-
logger.error("Asciidoctor not installed!!")
440-
sys.exit()
437+
# if not output:
438+
# if not gems_asciidoctor.exists():
439+
# logger.error("Asciidoctor not installed!!")
440+
# sys.exit()
441441

442-
output, error = run_command(f"asciidoctor-pdf {output_file}")
442+
output, error = run_command(f"bundle exec asciidoctor-pdf {output_file}")
443443
if error:
444444
logger.error(f"Error converting to ADOC: {error}")
445445
sys.exit()
446446

447447
if not show_all_tags:
448-
output, error = run_command("which asciidoctor-pdf")
449-
logger.debug(f"which asciidoctor-pdf output: {output}, error: {error}")
448+
# output, error = run_command("which asciidoctor-pdf")
449+
# logger.debug(f"which asciidoctor-pdf output: {output}, error: {error}")
450450

451-
if not output:
452-
if not gems_asciidoctor_pdf.exists():
453-
logger.error("Asciidoctor not installed!!")
454-
sys.exit()
451+
# if not output:
452+
# if not gems_asciidoctor_pdf.exists():
453+
# logger.error("Asciidoctor not installed!!")
454+
# sys.exit()
455455

456-
output, error = run_command(f"asciidoctor-pdf {output_file}")
456+
output, error = run_command(f"bundle exec asciidoctor-pdf {output_file}")
457457
if error:
458458
logger.error(f"Error converting to ADOC: {error}")
459459
sys.exit()

0 commit comments

Comments
 (0)