fned 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,7 +133,7 @@ module Fned
133
133
 
134
134
  key, value = line.split(@options[:separator], 2)
135
135
  index = number_decode(key)
136
- value = unescape(value)
136
+ value = unescape(value.to_s)
137
137
 
138
138
  if index.nil?
139
139
  raise InvalidLine.new("index #{key.inspect} contains invalid " +
@@ -146,6 +146,10 @@ module Fned
146
146
  raise InvalidLine.new("index #{key.inspect} used multiple times",
147
147
  line_number)
148
148
  end
149
+ if value.empty?
150
+ raise InvalidLine.new("value for #{key.inspect} empty",
151
+ line_number)
152
+ end
149
153
 
150
154
  @result[index] = value
151
155
  end
data/lib/fned/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fned
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-20 00:00:00.000000000 Z
12
+ date: 2013-03-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: fned allows you to use your favorite $EDITOR to edit filenames
15
15
  email: matled@gmx.net