langusta 0.2.1 → 0.2.2
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/VERSION +1 -1
- data/langusta.gemspec +1 -1
- data/lib/langusta.rb +5 -1
- data/lib/langusta/language_detection_facade.rb +2 -2
- data/test/test_language_detection_facade.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/langusta.gemspec
CHANGED
data/lib/langusta.rb
CHANGED
@@ -3,9 +3,13 @@ $: << File.expand_path(File.dirname(__FILE__))
|
|
3
3
|
require 'rubygems'
|
4
4
|
|
5
5
|
require 'optparse'
|
6
|
-
require 'iconv' if RUBY_VERSION < "1.9"
|
7
6
|
require 'yajl'
|
8
7
|
|
8
|
+
if RUBY_VERSION < "1.9"
|
9
|
+
require 'iconv'
|
10
|
+
require 'oniguruma'
|
11
|
+
end
|
12
|
+
|
9
13
|
module Langusta
|
10
14
|
autoload :Guard, 'langusta/guard'
|
11
15
|
autoload :Inspector, 'langusta/inspector'
|
@@ -4,6 +4,6 @@ require 'test/helper'
|
|
4
4
|
class LanguageDetectionFacadeTest < Test::Unit::TestCase
|
5
5
|
def test_initialize_and_detect
|
6
6
|
facade = LanguageDetectionFacade.new
|
7
|
-
assert_equal("pl", facade.detect(
|
7
|
+
assert_equal("pl", facade.detect("Ich dalekopis fałszuje, gdy próby XQV nie wytrzymuje"))
|
8
8
|
end
|
9
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: langusta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yajl-ruby
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157030780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.8.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157030780
|
25
25
|
description: Highly accurate language detection library, uses naive bayesian filter.
|
26
26
|
email: jan.szumiec@gmail.com
|
27
27
|
executables:
|