machinator 0.1 → 0.1.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.
@@ -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 current directory, or a manually specified Hash resource.
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
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'machinator'
4
- s.version = '0.1'
4
+ s.version = '0.1.1'
5
5
  s.summary = 'obfuscate file content and directory structures.'
6
6
  s.description = 'obfuscate file content and directory structures'
7
7
 
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- version: "0.1"
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-03 00:00:00 -05:00
17
+ date: 2011-01-05 00:00:00 -05:00
17
18
  default_executable:
18
19
  dependencies: []
19
20