markdown_exec 0.1.0 → 0.1.1

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: 4a4e558c22601546757b3fdd28f0c438ca1419badd2416e8beac4bc35692d6fe
4
- data.tar.gz: fdb68f22046be5c9c00b9044330a2891ac047505644defdb493b2795c0852943
3
+ metadata.gz: 57da333a75458ce1ba2d67c92ee1be458418df6a008f41a89c3545dc0afb94ed
4
+ data.tar.gz: 4d0c80082485dc50bdb1460adcf101b8ddba65da7d6406d93c1824fd21f9fe95
5
5
  SHA512:
6
- metadata.gz: b0d32562440fc40f82dd00d189a51f55e0d7f5ca4dcc2f80d3c915622222a3234bafd162abb6931f78ab1d32fc067eba97c0788a6dca0bfaa87ce653001c62e6
7
- data.tar.gz: 44de2ffe388333c536512bef6cd6981424ed68f84a157d0b60397ae598a4cf60dae49b413c91d2683da9d544bd6d5c5790bd7f278c6ed5873e1d3f74f30f6f67
6
+ metadata.gz: 2f425417848f457325a54d6b8b72f4ecc6f9a5a4ab5ce334b7e1ac93f8760657f9e52c6c2713dcb645d5c9b6a2b1a8cfa99e6a6ef9640cc87e3401a84fff15b2
7
+ data.tar.gz: 89ad4e3849de542cee33ad65f7bc6185a8f2cda880fec6d94d5f2c1657e957ad33a1c364cf89c56f5fa4999ffea5d5bba7287ebbf747c845307bc80540f0ff21
data/Gemfile.lock CHANGED
@@ -1,14 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_exec (0.0.3)
4
+ markdown_exec (0.1.1)
5
+ open3 (~> 0.1.1)
6
+ optparse (~> 0.1.1)
5
7
  tty-prompt (~> 0.23.1)
8
+ yaml (~> 0.2.0)
6
9
 
7
10
  GEM
8
11
  remote: https://rubygems.org/
9
12
  specs:
10
13
  ast (2.4.2)
11
14
  minitest (5.15.0)
15
+ open3 (0.1.1)
16
+ optparse (0.1.1)
12
17
  parallel (1.21.0)
13
18
  parser (3.1.1.0)
14
19
  ast (~> 2.4.1)
@@ -42,6 +47,7 @@ GEM
42
47
  tty-screen (0.8.1)
43
48
  unicode-display_width (2.1.0)
44
49
  wisper (2.0.1)
50
+ yaml (0.2.0)
45
51
 
46
52
  PLATFORMS
47
53
  arm64-darwin-21
@@ -4,5 +4,5 @@ module MarkdownExec
4
4
  APP_NAME = 'MDE'
5
5
  APP_DESC = 'Markdown block executor'
6
6
  GEM_NAME = 'markdown_exec'
7
- VERSION = '0.1.0'
7
+ VERSION = '0.1.1'
8
8
  end
data/lib/markdown_exec.rb CHANGED
@@ -8,7 +8,7 @@ $pdebug = !(ENV['MARKDOWN_EXEC_DEBUG'] || '').empty?
8
8
 
9
9
  require 'open3'
10
10
  require 'optparse'
11
- require 'pathname'
11
+ # require 'pathname'
12
12
  require 'tty-prompt'
13
13
  require 'yaml'
14
14
  require_relative 'markdown_exec/version'
@@ -367,7 +367,7 @@ module MarkdownExec
367
367
  ## configuration file
368
368
  #
369
369
  def read_configuration!(options, configuration_path)
370
- if Pathname.new(configuration_path).exist?
370
+ if File.exist?(configuration_path)
371
371
  # rubocop:disable Security/YAMLLoad
372
372
  options.merge!((YAML.load(File.open(configuration_path)) || {})
373
373
  .transform_keys(&:to_sym))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fareed Stevenson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-11 00:00:00.000000000 Z
11
+ date: 2022-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open3
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.1.1
41
- - !ruby/object:Gem::Dependency
42
- name: pathname
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 0.1.0
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 0.1.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: tty-prompt
57
43
  requirement: !ruby/object:Gem::Requirement