cmess 0.0.4.136 → 0.0.4.157

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.
Files changed (4) hide show
  1. data/README +2 -2
  2. data/Rakefile +19 -24
  3. data/lib/cmess/guess_encoding.rb +3 -4
  4. metadata +13 -13
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to cmess version 0.0.3
5
+ This documentation refers to cmess version 0.0.4
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -32,7 +32,7 @@ TODO: well, more of the description... ;-)
32
32
 
33
33
  * John Vorhauer <mailto:john@vorhauer.de> for the idea and
34
34
  original implementation of the automatic encoding guesser
35
- (see CMess::GuessEncoding::Guesser).
35
+ (see CMess::GuessEncoding::Automatic).
36
36
 
37
37
 
38
38
  == LICENSE AND COPYRIGHT
data/Rakefile CHANGED
@@ -1,30 +1,25 @@
1
- # Utilizes global rake-tasks: alias rake="rake -r rake -R /path/to/rakelibdir"
2
- # (Base tasks at <http://prometheus.khi.uni-koeln.de/svn/scratch/rake-tasks/>)
1
+ begin
2
+ require 'hen'
3
+ rescue LoadError
4
+ abort "Please install the 'hen' gem first."
5
+ end
3
6
 
4
7
  $:.unshift('lib')
5
-
6
8
  require 'cmess'
7
9
 
8
- FILES = FileList['lib/**/*.rb'].to_a
9
- EXECS = FileList['bin/*'].to_a
10
- RDOCS = %w[README COPYING ChangeLog]
11
- OTHER = FileList['[A-Z]*', 'example/**/*', 'data/**/*'].to_a
12
-
13
- task(:doc_spec) {{
14
- :title => 'cmess Application documentation',
15
- :rdoc_files => RDOCS + FILES
16
- }}
10
+ Hen.lay! {{
11
+ :rubyforge => {
12
+ :package => 'cmess'
13
+ },
17
14
 
18
- task(:gem_spec) {{
19
- :name => 'cmess',
20
- :version => CMess::VERSION,
21
- :summary => "Assist with handling messed up encodings " <<
22
- "(Currently includes the following tools: " <<
23
- "#{EXECS.map { |e| File.basename(e) }.join(', ')})",
24
- :files => FILES + EXECS + OTHER,
25
- :require_path => 'lib',
26
- :bindir => 'bin',
27
- :executables => EXECS,
28
- :extra_rdoc_files => RDOCS,
29
- :dependencies => %w[ruby-nuggets htmlentities]
15
+ :gem => {
16
+ :version => CMess::VERSION,
17
+ :summary => %Q{
18
+ Assist with handling messed up encodings (Currently includes the
19
+ following tools: #{Dir['bin/*'].map { |e| File.basename(e) }.join(', ')})
20
+ },
21
+ :files => FileList['lib/**/*.rb', 'bin/*'].to_a,
22
+ :extra_files => FileList['[A-Z]*', 'example/**/*', 'data/**/*'].to_a,
23
+ :dependencies => %w[ruby-nuggets htmlentities]
24
+ }
30
25
  }}
@@ -31,6 +31,7 @@
31
31
  #++
32
32
 
33
33
  require 'iconv'
34
+ require 'forwardable'
34
35
 
35
36
  # Outputs given string (or line), being encoded in target encoding, encoded in
36
37
  # various test encodings, thus allowing to identify the (seemingly) correct
@@ -139,8 +140,8 @@ module CMess::GuessEncoding
139
140
 
140
141
  extend Forwardable
141
142
 
142
- def_delegators :@klass, :encoding_guessers, :supported_encoding?,
143
- :bom_guessers, :supported_bom?
143
+ def_delegators self, :encoding_guessers, :supported_encoding?,
144
+ :bom_guessers, :supported_bom?
144
145
 
145
146
  include Encoding
146
147
 
@@ -199,8 +200,6 @@ module CMess::GuessEncoding
199
200
  def initialize(input, chunk_size = nil)
200
201
  @input = input
201
202
  @chunk_size = chunk_size
202
-
203
- @klass = self.class
204
203
  end
205
204
 
206
205
  def guess(ignore_bom = false)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.136
5
- platform: ""
4
+ version: 0.0.4.157
5
+ platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2007-12-18 00:00:00 +01:00
12
+ date: 2008-01-08 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  - !ruby/object:Gem::Version
31
31
  version: "0"
32
32
  version:
33
- description:
33
+ description: "Assist with handling messed up encodings (Currently includes the following tools: cinderella, decode_entities, guess_encoding)"
34
34
  email: jens.wille@uni-koeln.de
35
35
  executables:
36
36
  - cinderella
@@ -82,18 +82,18 @@ files:
82
82
  - data/csets/unicode/basic_latin.yaml
83
83
  - data/csets/unicode/cyrillic.yaml
84
84
  has_rdoc: true
85
- homepage:
85
+ homepage: http://prometheus.rubyforge.org/cmess
86
86
  post_install_message:
87
87
  rdoc_options:
88
- - --title
89
- - cmess Application documentation
90
- - --line-numbers
91
- - --inline-source
92
- - --main
93
- - README
94
88
  - --all
89
+ - --inline-source
95
90
  - --charset
96
91
  - UTF-8
92
+ - --main
93
+ - README
94
+ - --title
95
+ - cmess Application documentation
96
+ - --line-numbers
97
97
  require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version:
111
111
  requirements: []
112
112
 
113
- rubyforge_project:
114
- rubygems_version: 0.9.5
113
+ rubyforge_project: prometheus
114
+ rubygems_version: 1.0.1
115
115
  signing_key:
116
116
  specification_version: 2
117
117
  summary: "Assist with handling messed up encodings (Currently includes the following tools: cinderella, decode_entities, guess_encoding)"