hx 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/hx/backend/rawfiles.rb +3 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.13.0
|
data/lib/hx/backend/rawfiles.rb
CHANGED
@@ -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:
|
4
|
+
hash: 43
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 13
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.13.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- MenTaLguY
|