subtxt 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af5ad0c33acaeb9226bdb7d86010e844de05434a
4
- data.tar.gz: d18798cf48643489886cdd8527e610e425b4f83f
3
+ metadata.gz: 1b9a0e570950736b7d8fbdf42a30cdd248cd0b4e
4
+ data.tar.gz: 562d31ccc403e5aeed9b14394e75f6a351f887d8
5
5
  SHA512:
6
- metadata.gz: c3809a4778b976da2fb552f2cc4923f0be6d8d002c42cb2c5919691ae3f69194bce35d227fc8d73980da11e7cdba5ecc7fe36dc3b207dd889df734a84a3bb6c3
7
- data.tar.gz: 8abb197e20d14012e34545735b53f3ec45c3c8776b78a931c6b047d11942304f413f2e6f3eef09448e58c65748fcaa1b2a13ae58f26e3ce867da22abaed0d986
6
+ metadata.gz: aab98db6e54554ee67c50906796f0232494f6e1fb313ec5cf5c5692e0e53932f32fe15e706061c7552e4a14c44390316942c3c5af662c1281f67e318c8125716
7
+ data.tar.gz: 2ee7631dad5eb4415c6cfe7d6c54c150c67bbae4db255954c62130357fe404fcf2dd7c6d6ad7b7f8bd4cf2845490151fe78be199a359f866da26593c37b0e3c5
@@ -1,3 +1,3 @@
1
1
  module Subtxt
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/subtxt.rb CHANGED
@@ -42,8 +42,12 @@ def load_patterns pfile
42
42
  end
43
43
 
44
44
  def subtexts opts
45
+ unless opts[:patterns]
46
+ @logger.error "Missing patterns file!"
47
+ exit
48
+ end
45
49
  patterns = load_patterns(opts[:patterns])
46
- @logger.info "Reading patterns from #{@options[:patterns]}"
50
+ @logger.info "Reading patterns from #{opts[:patterns]}"
47
51
  routine = {}
48
52
  routine['files_count'] = 0
49
53
  routine['files_changed'] = []
@@ -130,12 +134,12 @@ parser = OptionParser.new do|opts|
130
134
  (#{@expath_def}/ by default) after replacing each matched pattern with
131
135
  its pair.
132
136
 
133
- Usage: subtxt [path/to/ingest/dir] [options]
137
+ Usage: subtxt [path/to/patterns.ext] [options]
134
138
  Options:
135
139
  """
136
140
 
137
141
  unless ARGV[0]
138
- @logger.error "You must at least provide a patterns file option. For help, use\nsubtxt --help"
142
+ @logger.error "You must at least provide a patterns file argument. For help, use\nsubtxt --help"
139
143
  exit
140
144
  end
141
145
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subtxt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dominick