langusta 0.2.2 → 0.2.3

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/lib/langusta.rb CHANGED
@@ -10,6 +10,8 @@ if RUBY_VERSION < "1.9"
10
10
  require 'oniguruma'
11
11
  end
12
12
 
13
+ require 'langusta/version'
14
+
13
15
  module Langusta
14
16
  autoload :Guard, 'langusta/guard'
15
17
  autoload :Inspector, 'langusta/inspector'
@@ -0,0 +1,3 @@
1
+ module Langusta
2
+ VERSION = "0.2.3"
3
+ end
data/test/helper.rb CHANGED
@@ -8,7 +8,7 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
  require 'test/unit'
11
- require 'mocha'
11
+ require 'mocha/setup'
12
12
 
13
13
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
14
  $LOAD_PATH.unshift(File.dirname(__FILE__))
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.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,41 +9,69 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-04 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
16
- requirement: &2157030780 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - =
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.8.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157030780
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.8.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: mocha
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
25
62
  description: Highly accurate language detection library, uses naive bayesian filter.
26
- email: jan.szumiec@gmail.com
63
+ email:
64
+ - jan.szumiec@gmail.com
27
65
  executables:
28
66
  - langusta
29
67
  extensions: []
30
- extra_rdoc_files:
31
- - LICENSE.txt
32
- - README.md
68
+ extra_rdoc_files: []
33
69
  files:
34
- - .document
35
- - .travis.yml
36
- - Gemfile
37
- - Gemfile.lock
38
- - LICENSE.txt
39
70
  - README.md
40
- - Rakefile
41
- - VERSION
71
+ - LICENSE.txt
42
72
  - bin/langusta
43
73
  - data/messages.properties
44
74
  - data/uppercase.bin
45
- - langusta.gemspec
46
- - lib/langusta.rb
47
75
  - lib/langusta/codepoints.rb
48
76
  - lib/langusta/command.rb
49
77
  - lib/langusta/detector.rb
@@ -58,6 +86,8 @@ files:
58
86
  - lib/langusta/regex_helper.rb
59
87
  - lib/langusta/tag_extractor.rb
60
88
  - lib/langusta/unicode_block.rb
89
+ - lib/langusta/version.rb
90
+ - lib/langusta.rb
61
91
  - profiles/af
62
92
  - profiles/ar
63
93
  - profiles/bg
@@ -168,9 +198,8 @@ files:
168
198
  - test/test_n_gram.rb
169
199
  - test/test_tag_extractor.rb
170
200
  - test/test_unicode_block.rb
171
- homepage: http://github.com/jasiek/langusta
172
- licenses:
173
- - Apache 2.0
201
+ homepage: http://jasiek.github.com/langusta/
202
+ licenses: []
174
203
  post_install_message:
175
204
  rdoc_options: []
176
205
  require_paths:
@@ -181,16 +210,83 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
210
  - - ! '>='
182
211
  - !ruby/object:Gem::Version
183
212
  version: '0'
213
+ segments:
214
+ - 0
215
+ hash: 3954642164474585379
184
216
  required_rubygems_version: !ruby/object:Gem::Requirement
185
217
  none: false
186
218
  requirements:
187
219
  - - ! '>='
188
220
  - !ruby/object:Gem::Version
189
221
  version: '0'
222
+ segments:
223
+ - 0
224
+ hash: 3954642164474585379
190
225
  requirements: []
191
226
  rubyforge_project:
192
- rubygems_version: 1.8.10
227
+ rubygems_version: 1.8.24
193
228
  signing_key:
194
229
  specification_version: 3
195
230
  summary: Language detection library based on http://code.google.com/p/language-detection/.
196
- test_files: []
231
+ test_files:
232
+ - test/helper.rb
233
+ - test/quality/test_falsified.rb
234
+ - test/test_command.rb
235
+ - test/test_data/af
236
+ - test/test_data/ar
237
+ - test/test_data/bg
238
+ - test/test_data/bn
239
+ - test/test_data/cs
240
+ - test/test_data/da
241
+ - test/test_data/de
242
+ - test/test_data/el
243
+ - test/test_data/en
244
+ - test/test_data/es
245
+ - test/test_data/fa
246
+ - test/test_data/fi
247
+ - test/test_data/fr
248
+ - test/test_data/gu
249
+ - test/test_data/he
250
+ - test/test_data/hi
251
+ - test/test_data/hr
252
+ - test/test_data/hu
253
+ - test/test_data/id
254
+ - test/test_data/it
255
+ - test/test_data/ja
256
+ - test/test_data/kn
257
+ - test/test_data/ko
258
+ - test/test_data/mk
259
+ - test/test_data/ml
260
+ - test/test_data/mr
261
+ - test/test_data/ne
262
+ - test/test_data/nl
263
+ - test/test_data/no
264
+ - test/test_data/pa
265
+ - test/test_data/pl
266
+ - test/test_data/pt
267
+ - test/test_data/ro
268
+ - test/test_data/ru
269
+ - test/test_data/sk
270
+ - test/test_data/so
271
+ - test/test_data/sq
272
+ - test/test_data/sv
273
+ - test/test_data/sw
274
+ - test/test_data/ta
275
+ - test/test_data/te
276
+ - test/test_data/th
277
+ - test/test_data/tl
278
+ - test/test_data/tr
279
+ - test/test_data/uk
280
+ - test/test_data/ur
281
+ - test/test_data/vi
282
+ - test/test_data/zh-tw
283
+ - test/test_detector.rb
284
+ - test/test_detector_factory.rb
285
+ - test/test_java_property_reader.rb
286
+ - test/test_lang_profile.rb
287
+ - test/test_language.rb
288
+ - test/test_language_detection_facade.rb
289
+ - test/test_langusta.rb
290
+ - test/test_n_gram.rb
291
+ - test/test_tag_extractor.rb
292
+ - test/test_unicode_block.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- before_install: "sudo apt-get -y install libonig-dev libyajl-dev"
2
- language: ruby
3
- rvm:
4
- - 1.8.7
5
- - 1.9.2
6
- - 1.9.3
7
-
data/Gemfile DELETED
@@ -1,14 +0,0 @@
1
- source :gemcutter
2
-
3
- platform :mri_18 do
4
- gem "oniguruma", "1.1.0"
5
- end
6
-
7
- gem "yajl-ruby", "0.8.2", :require => 'yajl'
8
-
9
- gem "bundler"
10
- gem "jeweler"
11
-
12
- group :test do
13
- gem "mocha"
14
- end
data/Gemfile.lock DELETED
@@ -1,28 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- git (1.2.5)
5
- jeweler (1.8.3)
6
- bundler (~> 1.0)
7
- git (>= 1.2.5)
8
- rake
9
- rdoc
10
- json (1.6.5)
11
- metaclass (0.0.1)
12
- mocha (0.10.5)
13
- metaclass (~> 0.0.1)
14
- oniguruma (1.1.0)
15
- rake (0.9.2.2)
16
- rdoc (3.12)
17
- json (~> 1.4)
18
- yajl-ruby (0.8.2)
19
-
20
- PLATFORMS
21
- ruby
22
-
23
- DEPENDENCIES
24
- bundler
25
- jeweler
26
- mocha
27
- oniguruma (= 1.1.0)
28
- yajl-ruby (= 0.8.2)
data/Rakefile DELETED
@@ -1,48 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "langusta"
16
- gem.homepage = "http://github.com/jasiek/langusta"
17
- gem.license = "Apache 2.0"
18
- gem.summary = %Q{Language detection library based on http://code.google.com/p/language-detection/.}
19
- gem.description = %Q{Highly accurate language detection library, uses naive bayesian filter.}
20
- gem.email = "jan.szumiec@gmail.com"
21
- gem.authors = ["Jan Szumiec"]
22
- end
23
- Jeweler::RubygemsDotOrgTasks.new
24
-
25
- require 'rake/testtask'
26
- Rake::TestTask.new(:test) do |test|
27
- test.libs << 'lib' << 'test' << '.'
28
- test.pattern = 'test/test_*.rb'
29
- test.verbose = true
30
- end
31
-
32
- task :default => :test
33
-
34
- require 'rdoc/task'
35
- Rake::RDocTask.new do |rdoc|
36
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
37
-
38
- rdoc.rdoc_dir = 'rdoc'
39
- rdoc.title = "langusta #{version}"
40
- rdoc.rdoc_files.include('README*')
41
- rdoc.rdoc_files.include('lib/**/*.rb')
42
- end
43
-
44
- Rake::TestTask.new('test:quality') do |test|
45
- test.libs << 'test/quality' << 'lib' << '.'
46
- test.pattern = 'test/quality/test_*.rb'
47
- test.verbose = true
48
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.2
data/langusta.gemspec DELETED
@@ -1,180 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "langusta"
8
- s.version = "0.2.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jan Szumiec"]
12
- s.date = "2012-03-04"
13
- s.description = "Highly accurate language detection library, uses naive bayesian filter."
14
- s.email = "jan.szumiec@gmail.com"
15
- s.executables = ["langusta"]
16
- s.extra_rdoc_files = [
17
- "LICENSE.txt",
18
- "README.md"
19
- ]
20
- s.files = [
21
- ".document",
22
- ".travis.yml",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE.txt",
26
- "README.md",
27
- "Rakefile",
28
- "VERSION",
29
- "bin/langusta",
30
- "data/messages.properties",
31
- "data/uppercase.bin",
32
- "langusta.gemspec",
33
- "lib/langusta.rb",
34
- "lib/langusta/codepoints.rb",
35
- "lib/langusta/command.rb",
36
- "lib/langusta/detector.rb",
37
- "lib/langusta/detector_factory.rb",
38
- "lib/langusta/guard.rb",
39
- "lib/langusta/inspector.rb",
40
- "lib/langusta/java_property_reader.rb",
41
- "lib/langusta/lang_profile.rb",
42
- "lib/langusta/language.rb",
43
- "lib/langusta/language_detection_facade.rb",
44
- "lib/langusta/n_gram.rb",
45
- "lib/langusta/regex_helper.rb",
46
- "lib/langusta/tag_extractor.rb",
47
- "lib/langusta/unicode_block.rb",
48
- "profiles/af",
49
- "profiles/ar",
50
- "profiles/bg",
51
- "profiles/bn",
52
- "profiles/cs",
53
- "profiles/da",
54
- "profiles/de",
55
- "profiles/el",
56
- "profiles/en",
57
- "profiles/es",
58
- "profiles/fa",
59
- "profiles/fi",
60
- "profiles/fr",
61
- "profiles/gu",
62
- "profiles/he",
63
- "profiles/hi",
64
- "profiles/hr",
65
- "profiles/hu",
66
- "profiles/id",
67
- "profiles/it",
68
- "profiles/ja",
69
- "profiles/kn",
70
- "profiles/ko",
71
- "profiles/mk",
72
- "profiles/ml",
73
- "profiles/mr",
74
- "profiles/ne",
75
- "profiles/nl",
76
- "profiles/no",
77
- "profiles/pa",
78
- "profiles/pl",
79
- "profiles/pt",
80
- "profiles/ro",
81
- "profiles/ru",
82
- "profiles/sk",
83
- "profiles/so",
84
- "profiles/sq",
85
- "profiles/sv",
86
- "profiles/sw",
87
- "profiles/ta",
88
- "profiles/te",
89
- "profiles/th",
90
- "profiles/tl",
91
- "profiles/tr",
92
- "profiles/uk",
93
- "profiles/ur",
94
- "profiles/vi",
95
- "profiles/zh-cn",
96
- "profiles/zh-tw",
97
- "test/helper.rb",
98
- "test/quality/test_falsified.rb",
99
- "test/test_command.rb",
100
- "test/test_data/af",
101
- "test/test_data/ar",
102
- "test/test_data/bg",
103
- "test/test_data/bn",
104
- "test/test_data/cs",
105
- "test/test_data/da",
106
- "test/test_data/de",
107
- "test/test_data/el",
108
- "test/test_data/en",
109
- "test/test_data/es",
110
- "test/test_data/fa",
111
- "test/test_data/fi",
112
- "test/test_data/fr",
113
- "test/test_data/gu",
114
- "test/test_data/he",
115
- "test/test_data/hi",
116
- "test/test_data/hr",
117
- "test/test_data/hu",
118
- "test/test_data/id",
119
- "test/test_data/it",
120
- "test/test_data/ja",
121
- "test/test_data/kn",
122
- "test/test_data/ko",
123
- "test/test_data/mk",
124
- "test/test_data/ml",
125
- "test/test_data/mr",
126
- "test/test_data/ne",
127
- "test/test_data/nl",
128
- "test/test_data/no",
129
- "test/test_data/pa",
130
- "test/test_data/pl",
131
- "test/test_data/pt",
132
- "test/test_data/ro",
133
- "test/test_data/ru",
134
- "test/test_data/sk",
135
- "test/test_data/so",
136
- "test/test_data/sq",
137
- "test/test_data/sv",
138
- "test/test_data/sw",
139
- "test/test_data/ta",
140
- "test/test_data/te",
141
- "test/test_data/th",
142
- "test/test_data/tl",
143
- "test/test_data/tr",
144
- "test/test_data/uk",
145
- "test/test_data/ur",
146
- "test/test_data/vi",
147
- "test/test_data/zh-tw",
148
- "test/test_detector.rb",
149
- "test/test_detector_factory.rb",
150
- "test/test_java_property_reader.rb",
151
- "test/test_lang_profile.rb",
152
- "test/test_language.rb",
153
- "test/test_language_detection_facade.rb",
154
- "test/test_langusta.rb",
155
- "test/test_n_gram.rb",
156
- "test/test_tag_extractor.rb",
157
- "test/test_unicode_block.rb"
158
- ]
159
- s.homepage = "http://github.com/jasiek/langusta"
160
- s.licenses = ["Apache 2.0"]
161
- s.require_paths = ["lib"]
162
- s.rubygems_version = "1.8.17"
163
- s.summary = "Language detection library based on http://code.google.com/p/language-detection/."
164
-
165
- if s.respond_to? :specification_version then
166
- s.specification_version = 3
167
-
168
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
169
- s.add_runtime_dependency(%q<oniguruma>, ["= 1.1.0"]) if RUBY_VERSION < "1.9"
170
- s.add_runtime_dependency(%q<yajl-ruby>, ["= 0.8.2"])
171
- else
172
- s.add_dependency(%q<oniguruma>, ["= 1.1.0"]) if RUBY_VERSION < "1.9"
173
- s.add_dependency(%q<yajl-ruby>, ["= 0.8.2"])
174
- end
175
- else
176
- s.add_dependency(%q<oniguruma>, ["= 1.1.0"]) if RUBY_VERSION < "1.9"
177
- s.add_dependency(%q<yajl-ruby>, ["= 0.8.2"])
178
- end
179
- end
180
-