md_inc 0.2.4 → 0.2.6

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.
data/bin/md_inc CHANGED
@@ -10,6 +10,11 @@ op = OptionParser.new do |op|
10
10
  exit 0
11
11
  end
12
12
 
13
+ op.on "-v", "--version", "Print gem version" do
14
+ puts "MdInc version #{MdInc::VERSION}"
15
+ exit 0
16
+ end
17
+
13
18
  op.on "-i dir", "--include dir", "Add this directory to the Ruby path" do |dir|
14
19
  $: << dir
15
20
  end
@@ -3,7 +3,9 @@ module MdInc
3
3
  public :instance_eval
4
4
 
5
5
  class << self
6
- attr_accessor :root
6
+ def root(path)
7
+ @root = path
8
+ end
7
9
 
8
10
  def full_path(path)
9
11
  @root ? File.join(@root, path) : path
@@ -1,3 +1,3 @@
1
1
  module MdInc
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md_inc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: