unix_utils 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.0.6 / 2012-04-11
2
+
3
+ * Enhancements
4
+
5
+ * iconv command silently discards invalid characters
6
+
1
7
  == 0.0.5 / 2012-03-21
2
8
 
3
9
  * Enhancements
@@ -1,3 +1,3 @@
1
1
  module UnixUtils
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/unix_utils.rb CHANGED
@@ -230,7 +230,7 @@ module UnixUtils
230
230
  def self.iconv(infile, to, from)
231
231
  infile = ::File.expand_path infile
232
232
  outfile = tmp_path infile
233
- argv = ['iconv', '-t', to, '-f', from, infile]
233
+ argv = ['iconv', '-c', '-t', to, '-f', from, infile]
234
234
  spawn argv, :write_to => outfile
235
235
  outfile
236
236
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unix_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-21 00:00:00.000000000 Z
12
+ date: 2012-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: posix-spawn
16
- requirement: &2154458300 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154458300
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: Like FileUtils, but provides zip, unzip, bzip2, bunzip2, tar, untar,
26
31
  sed, du, md5sum, shasum, cut, head, tail, wc, unix2dos, dos2unix, iconv, curl, perl,
27
32
  etc.
@@ -77,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
82
  version: '0'
78
83
  requirements: []
79
84
  rubyforge_project:
80
- rubygems_version: 1.8.15
85
+ rubygems_version: 1.8.21
81
86
  signing_key:
82
87
  specification_version: 3
83
88
  summary: Like FileUtils, but provides zip, unzip, bzip2, bunzip2, tar, untar, sed,