charlock_holmes 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- charlock_holmes (0.6.8)
4
+ charlock_holmes (0.6.9)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
  s.homepage = %q{http://github.com/brianmario/charlock_holmes}
14
14
  s.rdoc_options = ["--charset=UTF-8"]
15
- s.require_paths = ["lib", "ext"]
15
+ s.require_paths = ["lib"]
16
16
  s.rubygems_version = %q{1.4.2}
17
17
  s.summary = %q{Character encoding detection, brought to you by ICU}
18
18
  s.test_files = `git ls-files spec`.split("\n")
@@ -80,4 +80,4 @@ end
80
80
  $CFLAGS << ' -Wall -funroll-loops'
81
81
  $CFLAGS << ' -Wextra -O0 -ggdb3' if ENV['DEBUG']
82
82
 
83
- create_makefile 'charlock_holmes'
83
+ create_makefile 'charlock_holmes/charlock_holmes'
@@ -5,7 +5,8 @@ class String
5
5
  #
6
6
  # Returns: a Hash with :encoding, :language, :type and :confidence
7
7
  def detect_encoding(hint_enc=nil)
8
- encoding_detector.detect(self, hint_enc)
8
+ detector = CharlockHolmes::EncodingDetector.new
9
+ detector.detect(self, hint_enc)
9
10
  end
10
11
 
11
12
  # Attempt to detect the encoding of this string, and return
@@ -14,7 +15,8 @@ class String
14
15
  # Returns: an Array with zero or more Hashes,
15
16
  # each one of them with with :encoding, :language, :type and :confidence
16
17
  def detect_encodings(hint_enc=nil)
17
- encoding_detector.detect_all(self, hint_enc)
18
+ detector = CharlockHolmes::EncodingDetector.new
19
+ detector.detect_all(self, hint_enc)
18
20
  end
19
21
 
20
22
  if RUBY_VERSION =~ /1.9/
@@ -29,9 +31,4 @@ class String
29
31
  self
30
32
  end
31
33
  end
32
-
33
- protected
34
- def encoding_detector
35
- @encoding_detector ||= CharlockHolmes::EncodingDetector.new
36
- end
37
34
  end
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.6.8"
3
- end
2
+ VERSION = "0.6.9"
3
+ end
metadata CHANGED
@@ -1,79 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: charlock_holmes
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.9
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 8
10
- version: 0.6.8
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Brian Lopez
14
- - "Vicent Mart\xC3\xAD"
9
+ - Vicent Martí
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-09-08 00:00:00 -07:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2012-08-10 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: rake-compiler
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 9
31
- segments:
32
- - 0
33
- - 7
34
- - 5
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
35
22
  version: 0.7.5
36
23
  type: :development
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: rspec
40
24
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 0.7.5
31
+ - !ruby/object:Gem::Dependency
32
+ name: rspec
33
+ requirement: !ruby/object:Gem::Requirement
42
34
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- hash: 15
47
- segments:
48
- - 2
49
- - 0
50
- - 0
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
51
38
  version: 2.0.0
52
39
  type: :development
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
55
- name: chardet
56
40
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
58
42
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: chardet
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
66
55
  type: :development
67
- version_requirements: *id003
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
68
63
  description:
69
64
  email: seniorlopez@gmail.com
70
65
  executables: []
71
-
72
- extensions:
66
+ extensions:
73
67
  - ext/charlock_holmes/extconf.rb
74
68
  extra_rdoc_files: []
75
-
76
- files:
69
+ files:
77
70
  - .gitignore
78
71
  - .rspec
79
72
  - Gemfile
@@ -105,42 +98,32 @@ files:
105
98
  - spec/fixtures/repl2.cljs
106
99
  - spec/spec_helper.rb
107
100
  - spec/string_method_spec.rb
108
- has_rdoc: true
109
101
  homepage: http://github.com/brianmario/charlock_holmes
110
102
  licenses: []
111
-
112
103
  post_install_message:
113
- rdoc_options:
104
+ rdoc_options:
114
105
  - --charset=UTF-8
115
- require_paths:
106
+ require_paths:
116
107
  - lib
117
- - ext
118
- required_ruby_version: !ruby/object:Gem::Requirement
108
+ required_ruby_version: !ruby/object:Gem::Requirement
119
109
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
- version: "0"
127
- required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
115
  none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 3
133
- segments:
134
- - 0
135
- version: "0"
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
136
120
  requirements: []
137
-
138
121
  rubyforge_project:
139
- rubygems_version: 1.6.2
122
+ rubygems_version: 1.8.23
140
123
  signing_key:
141
124
  specification_version: 3
142
125
  summary: Character encoding detection, brought to you by ICU
143
- test_files:
126
+ test_files:
144
127
  - spec/converter_spec.rb
145
128
  - spec/encoding_detector_spec.rb
146
129
  - spec/fixtures/AnsiGraph.psm1