cmess 0.0.6.192 → 0.0.7.239

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.
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  = Revision history for cmess
2
2
 
3
+ == 0.0.7 [2008-05-19]
4
+
5
+ * Fixed "Illegal seek" error when inside a pipe
6
+
3
7
  == 0.0.6 [2008-01-30]
4
8
 
5
9
  * Added ability to specify charcodes as input for manual guessing
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to cmess version 0.0.6
5
+ This documentation refers to cmess version 0.0.7
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/bin/cinderella CHANGED
File without changes
data/bin/decode_entities CHANGED
File without changes
data/bin/guess_encoding CHANGED
File without changes
@@ -289,6 +289,13 @@ module CMess::GuessEncoding
289
289
  def check_bom
290
290
  return if eof?
291
291
 
292
+ # prevent "Illegal seek" error inside a pipe
293
+ begin
294
+ input.pos
295
+ rescue Errno::ESPIPE
296
+ return
297
+ end
298
+
292
299
  bom_guessers.each { |block|
293
300
  encoding = instance_eval(&block)
294
301
  return encoding if encoding && supported_bom?(encoding)
data/lib/cmess/version.rb CHANGED
@@ -30,7 +30,7 @@ module CMess::Version
30
30
 
31
31
  MAJOR = 0
32
32
  MINOR = 0
33
- TINY = 6
33
+ TINY = 7
34
34
 
35
35
  class << self
36
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.192
4
+ version: 0.0.7.239
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-01-30 00:00:00 +01:00
12
+ date: 2008-05-19 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -39,9 +39,9 @@ executables:
39
39
  extensions: []
40
40
 
41
41
  extra_rdoc_files:
42
- - README
43
42
  - COPYING
44
43
  - ChangeLog
44
+ - README
45
45
  files:
46
46
  - lib/cmess.rb
47
47
  - lib/cmess/version.rb
@@ -94,14 +94,14 @@ homepage: http://prometheus.rubyforge.org/cmess
94
94
  post_install_message:
95
95
  rdoc_options:
96
96
  - --line-numbers
97
- - --inline-source
98
97
  - --all
99
- - --charset
100
- - UTF-8
101
- - --main
102
- - README
98
+ - --inline-source
103
99
  - --title
104
100
  - cmess Application documentation
101
+ - --main
102
+ - README
103
+ - --charset
104
+ - UTF-8
105
105
  require_paths:
106
106
  - lib
107
107
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements: []
120
120
 
121
121
  rubyforge_project: prometheus
122
- rubygems_version: 1.0.1
122
+ rubygems_version: 1.1.1
123
123
  signing_key:
124
124
  specification_version: 2
125
125
  summary: "Assist with handling messed up encodings (Currently includes the following tools: cinderella, decode_entities, guess_encoding)"