machinator 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/machinator/obfuscator.rb +1 -1
- data/machinator.gemspec +1 -1
- metadata +3 -2
data/README.rdoc
CHANGED
@@ -18,7 +18,7 @@ Or (with the source) you can just:
|
|
18
18
|
|
19
19
|
Machinator lets you define the schema for obfuscation.
|
20
20
|
|
21
|
-
A schema (in YAML) is defined in a .machinator file in the
|
21
|
+
A schema (in YAML) is defined in a .machinator file in the directory being operated on, or a manually specified Hash resource.
|
22
22
|
|
23
23
|
A schema has a words and a names hash collection, with each key/pair being a regular expression and strings to replace with any occurences, respectively.
|
24
24
|
|
@@ -13,7 +13,7 @@ module Machinator
|
|
13
13
|
@block = block
|
14
14
|
|
15
15
|
if @schema.nil?
|
16
|
-
config = File.join(@source, ".machinator")
|
16
|
+
config = File.join(File.directory?(@source) ? @source : File.dirname(@source), ".machinator")
|
17
17
|
if !File.exists?(config)
|
18
18
|
raise Room101, "no schema specified and no .machinator file was found."
|
19
19
|
end
|
data/machinator.gemspec
CHANGED
metadata
CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
9
10
|
platform: ruby
|
10
11
|
authors:
|
11
12
|
- Brent Lintner
|
@@ -13,7 +14,7 @@ autorequire:
|
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
16
|
|
16
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-05 00:00:00 -05:00
|
17
18
|
default_executable:
|
18
19
|
dependencies: []
|
19
20
|
|