charlock_holmes 0.6.9.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/test/helper.rb CHANGED
@@ -9,6 +9,13 @@ require 'charlock_holmes'
9
9
  # bring in minitest
10
10
  require 'minitest/autorun'
11
11
 
12
+ if Minitest.const_defined?('Test')
13
+ # We're on Minitest 5+. Nothing to do here.
14
+ else
15
+ # Minitest 4 doesn't have Minitest::Test yet.
16
+ Minitest::Test = MiniTest::Unit::TestCase
17
+ end
18
+
12
19
  # put lib and test dirs directly on load path
13
20
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
14
21
  $LOAD_PATH.unshift File.expand_path('..', __FILE__)
@@ -1,7 +1,7 @@
1
1
  require File.expand_path("../helper", __FILE__)
2
2
  require 'charlock_holmes/string'
3
3
 
4
- class StringMethodsTest < MiniTest::Unit::TestCase
4
+ class StringMethodsTest < MiniTest::Test
5
5
  def test_adds_detect_encoding_method
6
6
  str = 'test'
7
7
  str.respond_to? :detect_encoding
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require File.expand_path("../helper", __FILE__)
3
3
 
4
- class TransliteratorTest < MiniTest::Unit::TestCase
4
+ class TransliteratorTest < MiniTest::Test
5
5
  DONT_CONVERT = [
6
6
  "Vitrum edere possum; mihi non nocet.", # Latin
7
7
  "Je puis mangier del voirre. Ne me nuit.", # Old French
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charlock_holmes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9.4
5
- prerelease:
4
+ version: 0.7.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Lopez
@@ -10,57 +9,52 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2014-05-11 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rake-compiler
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 0.7.5
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: 0.7.5
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: minitest
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: chardet
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
- description:
56
+ description: charlock_holmes provides binary and text detection as well as text transcoding
57
+ using libicu
64
58
  email: seniorlopez@gmail.com
65
59
  executables: []
66
60
  extensions:
@@ -69,7 +63,6 @@ extra_rdoc_files: []
69
63
  files:
70
64
  - .gitignore
71
65
  - Gemfile
72
- - Gemfile.lock
73
66
  - MIT-LICENSE
74
67
  - README.md
75
68
  - Rakefile
@@ -81,8 +74,6 @@ files:
81
74
  - ext/charlock_holmes/encoding_detector.c
82
75
  - ext/charlock_holmes/ext.c
83
76
  - ext/charlock_holmes/extconf.rb
84
- - ext/charlock_holmes/src/file-5.08.tar.gz
85
- - ext/charlock_holmes/src/file-soft-check.patch
86
77
  - ext/charlock_holmes/transliterator.cpp
87
78
  - lib/charlock_holmes.rb
88
79
  - lib/charlock_holmes/encoding_detector.rb
@@ -94,35 +85,46 @@ files:
94
85
  - test/fixtures/TwigExtensionsDate.es.yml
95
86
  - test/fixtures/cl-messagepack.lisp
96
87
  - test/fixtures/core.rkt
88
+ - test/fixtures/foo.pdf
97
89
  - test/fixtures/hello_world
98
90
  - test/fixtures/laholator.py
91
+ - test/fixtures/octocat.ai
92
+ - test/fixtures/octocat.gif
93
+ - test/fixtures/octocat.jpg
94
+ - test/fixtures/octocat.png
95
+ - test/fixtures/octocat.psd
99
96
  - test/fixtures/repl2.cljs
97
+ - test/fixtures/utf16be.html
98
+ - test/fixtures/utf32be.html
99
+ - test/fixtures/utf32le.html
100
+ - test/fixtures/utf8.html
101
+ - test/fixtures/vimrc
100
102
  - test/helper.rb
101
103
  - test/string_methods_test.rb
102
104
  - test/transliterator_test.rb
103
- homepage: http://github.com/brianmario/charlock_holmes
104
- licenses: []
105
+ homepage: https://github.com/brianmario/charlock_holmes
106
+ licenses:
107
+ - MIT
108
+ metadata: {}
105
109
  post_install_message:
106
110
  rdoc_options:
107
111
  - --charset=UTF-8
108
112
  require_paths:
109
113
  - lib
110
114
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
115
  requirements:
113
- - - ! '>='
116
+ - - '>='
114
117
  - !ruby/object:Gem::Version
115
118
  version: '0'
116
119
  required_rubygems_version: !ruby/object:Gem::Requirement
117
- none: false
118
120
  requirements:
119
- - - ! '>='
121
+ - - '>='
120
122
  - !ruby/object:Gem::Version
121
123
  version: '0'
122
124
  requirements: []
123
125
  rubyforge_project:
124
- rubygems_version: 1.8.23
126
+ rubygems_version: 2.0.3
125
127
  signing_key:
126
- specification_version: 3
128
+ specification_version: 4
127
129
  summary: Character encoding detection, brought to you by ICU
128
130
  test_files: []
data/Gemfile.lock DELETED
@@ -1,22 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- charlock_holmes (0.6.9.4)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- chardet (0.9.0)
10
- minitest (4.6.2)
11
- rake (0.9.2)
12
- rake-compiler (0.7.9)
13
- rake
14
-
15
- PLATFORMS
16
- ruby
17
-
18
- DEPENDENCIES
19
- chardet
20
- charlock_holmes!
21
- minitest
22
- rake-compiler (>= 0.7.5)