markdown_helper 1.6.0 → 1.6.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
  SHA1:
3
- metadata.gz: b7bd60eb7a1f8efbccafc0efda8eb504d344e7c1
4
- data.tar.gz: c1a3ff13373ee40259f46e3769c300a3ca8c7f4b
3
+ metadata.gz: 40f6b9b405ab0a09530dc86a3397cd1aeaf05b14
4
+ data.tar.gz: 3f6d57289baabeb3528f56550cde10208d2be42c
5
5
  SHA512:
6
- metadata.gz: e301810ed4eb380b8b5edf4effee8ff17c2acfaf25c49e0e9468068bc983dccb6ebfbc661fe0048a919795ef7866adbd7731814534175135ab01e8a01cf29105
7
- data.tar.gz: a6e5f17c0aa9788df2ec2c64f9536590dae2dc49e7701a6e60dc8bab8022084afbce6c3189e08014424c0e0f89e35501aaec6123054f3356f2f658dd4e4868a0
6
+ metadata.gz: 39fd4211aa2e807938ecd1e9e7e5c64e309162ddcad2eef087d4762576ac2a344ba6b3f0a85b2ef38ac5d102fc15dd17a2e941400035b444096f0718cfac2cd4
7
+ data.tar.gz: ad48c542562adb40e3d7371efbad4c68848777cf1473c62041ee92624cb71ec20ea954f6da462debd5c7a7a3b1230a99d22d3503ec08d01e727b897bee5503e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_helper (1.6.0)
4
+ markdown_helper (1.6.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/bin/_include CHANGED
@@ -39,11 +39,9 @@ end
39
39
 
40
40
  parser.parse!
41
41
 
42
- template_file_path, markdown_file_path = ARGV
42
+ _, template_file_path, markdown_file_path = ARGV
43
43
 
44
- usage(opts) unless ARGV.size == 2
44
+ usage(opts) unless ARGV.size == 3
45
45
  usage(opts) unless File.readable?(template_file_path)
46
- usage(opts) unless File.writable?(File.dirname(markdown_file_path))
47
46
 
48
47
  MarkdownHelper.new(options).include(template_file_path, markdown_file_path)
49
-
data/bin/_resolve CHANGED
@@ -39,10 +39,9 @@ end
39
39
 
40
40
  parser.parse!
41
41
 
42
- template_file_path, markdown_file_path = ARGV
42
+ _, template_file_path, markdown_file_path = ARGV
43
43
 
44
- usage(opts) unless ARGV.size == 2
44
+ usage(opts) unless ARGV.size == 3
45
45
  usage(opts) unless File.readable?(template_file_path)
46
- usage(opts) unless File.writable?(File.dirname(markdown_file_path))
47
46
 
48
47
  MarkdownHelper.new(options).resolve(template_file_path, markdown_file_path)
data/bin/markdown_helper CHANGED
@@ -33,5 +33,5 @@ bin_file_path = File.absolute_path(File.join(
33
33
  bindir,
34
34
  '_' + command_keyword,
35
35
  ))
36
- command = "ruby #{bin_file_path}"
37
- system(command)
36
+ command = "ruby #{bin_file_path} #{ARGV.join(' ')}"
37
+ system(command)
@@ -1,3 +1,3 @@
1
1
  class MarkdownHelper
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - burdettelamar