language_detection 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4458c90ef41ad87f046ea204849c94f68b7c770f1ff210a53135e70104b10b14
4
+ data.tar.gz: 931f7cbbae50ee8d4e2aa119c41a610ee222c6fc50722e7ec2637517b1b891d4
5
+ SHA512:
6
+ metadata.gz: e0d50b6ee77faf6c3c7b29254f9d3c80e822652530ba3b1f5d44ca944f9d05167841929e03e3f62208d67db43a8542432f42ce0931f37dd5140fdbb154be01c5
7
+ data.tar.gz: 82dee57902451034039a8445ada9e712319d12c75272e73da90ed04ddcc1c22f491e1be557f13032169f0e4dd3b647999c3b4a8e081bdff1aa5412dcb9fbc69a
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  *.gem
2
3
  *.rbc
3
4
  .bundle
@@ -17,3 +18,4 @@ test/version_tmp
17
18
  tmp
18
19
  ext/cld/*.o
19
20
  ext/cld/*.a
21
+ ext/cld/*.so
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ desc "Compile extension"
7
7
  task :compile do
8
8
  path = File.expand_path("ext/cld/cld.so", File.dirname(__FILE__))
9
9
 
10
- if !File.exists?(path) || ENV['RECOMPILE']
10
+ if !File.exist?(path) || ENV['RECOMPILE']
11
11
  puts "Compiling extension..."
12
12
  `cd #{File.expand_path("ext/cld/")} && make`
13
13
  else
data/ext/cld/Makefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # TODO: Generate Makefile
2
2
 
3
- CFLAGS=-fPIC -I. -O2 -DCLD_WINDOWS
3
+ CFLAGS=-fPIC -I. -O2 -DCLD_WINDOWS -ansi
4
4
  LDFLAGS=-L.
5
5
  CC=g++
6
6
  AR=ar
@@ -7,9 +7,13 @@ Gem::Specification.new do |gem|
7
7
  gem.name = "language_detection"
8
8
  gem.version = LanguageDetection::VERSION
9
9
  gem.authors = ["Vojtech Hyza"]
10
+ gem.license = 'MIT'
10
11
  gem.email = ["vhyza@vhyza.eu"]
11
12
  gem.description = %q{Ruby bindings for Chromium Compact Language Detector}
12
- gem.summary = %q{Ruby bindings for Chromium Compact Language Detector}
13
+ gem.summary = <<-EOF
14
+ Ruby bindings for Chromium Compact Language Detector ([source](http://src.chromium.org/viewvc/chrome/trunk/src/third_party/cld/)).
15
+ This gem is using source codes from [chromium-compact-language-detector](http://code.google.com/p/chromium-compact-language-detector/) port.
16
+ EOF
13
17
  gem.homepage = "https://github.com/vhyza/language_detection"
14
18
 
15
19
  gem.files = `git ls-files`.split($/)
@@ -18,10 +22,12 @@ Gem::Specification.new do |gem|
18
22
  gem.require_paths = ["lib"]
19
23
  gem.extensions = ["ext/cld/extconf.rb"]
20
24
 
21
- gem.add_dependency "ffi"
22
- gem.add_dependency "rake"
25
+ gem.add_runtime_dependency "ffi", "~> 1.12"
23
26
 
24
- gem.add_development_dependency "shoulda"
25
- gem.add_development_dependency "mocha"
26
- gem.add_development_dependency "turn"
27
+ gem.add_development_dependency "rake", "~> 13"
28
+ gem.add_development_dependency "shoulda", "~> 4"
29
+ gem.add_development_dependency "mocha", "~> 2"
30
+ gem.add_development_dependency "test-unit", "~> 3"
31
+
32
+ gem.required_ruby_version = [ ">= 2.5.0", "< 3.3.0" ]
27
33
  end
@@ -1,3 +1,3 @@
1
1
  module LanguageDetection
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
data/test/_helper.rb CHANGED
@@ -2,8 +2,7 @@ require 'bundler/setup'
2
2
 
3
3
  require 'test/unit'
4
4
  require 'shoulda'
5
- require 'turn' unless ENV["TM_FILEPATH"] || ENV["CI"]
6
- require 'mocha'
5
+ require 'mocha/test_unit'
7
6
  require File.join(File.expand_path('../../lib/language_detection.rb', __FILE__))
8
7
 
9
8
  class Test::Unit::TestCase
@@ -12,4 +11,4 @@ class Test::Unit::TestCase
12
11
  File.read File.expand_path("../fixtures/#{name}", __FILE__)
13
12
  end
14
13
 
15
- end
14
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- require '_helper'
3
+ require './test/_helper'
4
4
  require 'csv'
5
5
 
6
6
  class LanguageDetectionTest < Test::Unit::TestCase
@@ -84,4 +84,4 @@ class LanguageDetectionTest < Test::Unit::TestCase
84
84
  end
85
85
 
86
86
 
87
- end
87
+ end
metadata CHANGED
@@ -1,96 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: language_detection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Vojtech Hyza
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-09 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ffi
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '1.12'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '1.12'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
33
+ version: '13'
34
+ type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '0'
40
+ version: '13'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: shoulda
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: '4'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: '4'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: mocha
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: '0'
61
+ version: '2'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: '0'
68
+ version: '2'
78
69
  - !ruby/object:Gem::Dependency
79
- name: turn
70
+ name: test-unit
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: '0'
75
+ version: '3'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: '0'
82
+ version: '3'
94
83
  description: Ruby bindings for Chromium Compact Language Detector
95
84
  email:
96
85
  - vhyza@vhyza.eu
@@ -99,7 +88,7 @@ extensions:
99
88
  - ext/cld/extconf.rb
100
89
  extra_rdoc_files: []
101
90
  files:
102
- - .gitignore
91
+ - ".gitignore"
103
92
  - Gemfile
104
93
  - LICENSE.txt
105
94
  - README.md
@@ -124,7 +113,6 @@ files:
124
113
  - ext/cld/base/template_util.h
125
114
  - ext/cld/base/type_traits.h
126
115
  - ext/cld/base/vlog_is_on.h
127
- - ext/cld/cld.so
128
116
  - ext/cld/encodings/compact_lang_det/cldutil.cc
129
117
  - ext/cld/encodings/compact_lang_det/cldutil.h
130
118
  - ext/cld/encodings/compact_lang_det/cldutil_dbg.h
@@ -200,35 +188,33 @@ files:
200
188
  - test/fixtures/languages.csv
201
189
  - test/language_detection_test.rb
202
190
  homepage: https://github.com/vhyza/language_detection
203
- licenses: []
204
- post_install_message:
191
+ licenses:
192
+ - MIT
193
+ metadata: {}
194
+ post_install_message:
205
195
  rdoc_options: []
206
196
  require_paths:
207
197
  - lib
208
198
  required_ruby_version: !ruby/object:Gem::Requirement
209
- none: false
210
199
  requirements:
211
- - - ! '>='
200
+ - - ">="
212
201
  - !ruby/object:Gem::Version
213
- version: '0'
214
- segments:
215
- - 0
216
- hash: 3522077385673025298
202
+ version: 2.5.0
203
+ - - "<"
204
+ - !ruby/object:Gem::Version
205
+ version: 3.3.0
217
206
  required_rubygems_version: !ruby/object:Gem::Requirement
218
- none: false
219
207
  requirements:
220
- - - ! '>='
208
+ - - ">="
221
209
  - !ruby/object:Gem::Version
222
210
  version: '0'
223
- segments:
224
- - 0
225
- hash: 3522077385673025298
226
211
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 1.8.24
229
- signing_key:
230
- specification_version: 3
231
- summary: Ruby bindings for Chromium Compact Language Detector
212
+ rubygems_version: 3.3.7
213
+ signing_key:
214
+ specification_version: 4
215
+ summary: Ruby bindings for Chromium Compact Language Detector ([source](http://src.chromium.org/viewvc/chrome/trunk/src/third_party/cld/)).
216
+ This gem is using source codes from [chromium-compact-language-detector](http://code.google.com/p/chromium-compact-language-detector/)
217
+ port.
232
218
  test_files:
233
219
  - test/_helper.rb
234
220
  - test/fixtures/languages.csv
data/ext/cld/cld.so DELETED
Binary file