hx 0.12.0 → 0.13.0

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/hx/backend/rawfiles.rb +3 -0
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.13.0
@@ -32,6 +32,8 @@ class RawFiles
32
32
 
33
33
  def initialize(input, options)
34
34
  @entry_dir = Hx.get_pathname(options, :entry_dir)
35
+ @post_edit = options[:post_edit]
36
+ @post_edit = @post_edit.split(/\s+/) if @post_edit
35
37
  end
36
38
 
37
39
  def path_to_pathname(path) ; @entry_dir + path ; end
@@ -52,6 +54,7 @@ class RawFiles
52
54
  end
53
55
  text = yield text
54
56
  Hx.write_file(pathname, text)
57
+ system *(@post_edit + [pathname]) if @post_edit
55
58
  self
56
59
  end
57
60
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 43
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 12
8
+ - 13
9
9
  - 0
10
- version: 0.12.0
10
+ version: 0.13.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - MenTaLguY