yandex_mystem 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  Mystem is a software that provided by the Yandex only for non-commercial project. With use of it you can detect base forms of the words in a text, make a simple morphological analysis of russian words.
6
6
 
7
+ ## Installation
8
+
9
+ gem install yandex_mystem
10
+
7
11
  ## License
8
12
 
9
13
  First of all, read license on http://company.yandex.ru/technologies/mystem/
@@ -1,3 +1,3 @@
1
1
  module YandexMystem
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/yandex_mystem.rb CHANGED
@@ -30,22 +30,25 @@ module YandexMystem
30
30
  private
31
31
 
32
32
  def self.command
33
- postfix = if RUBY_PLATFORM =~ /(win|w)32$/
34
- 'win.exe'
35
- elsif RUBY_PLATFORM =~ /32.+linux$/
36
- 'linux-32'
37
- elsif RUBY_PLATFORM =~ /64.+linux$/
38
- 'linux-64'
39
- elsif RUBY_PLATFORM =~ /darwin/
40
- 'mac'
41
- elsif RUBY_PLATFORM =~ /freebsd/
42
- raise 'Create an issue or add pull request on a github.'
43
- else
44
- raise 'Unknown OS'
45
- end
46
-
47
33
  path = Pathname.new(__FILE__) + '../../app/'
48
- path + "mystem-#{postfix}"
34
+ path + "mystem-#{command_postfix}"
35
+ end
36
+
37
+ def self.command_postfix
38
+ @command_postfix ||= case RUBY_PLATFORM
39
+ when /(win|w)32$/
40
+ 'win.exe'
41
+ when /32.+linux$/ || /i486.+linux$/
42
+ 'linux-32'
43
+ when /64.+linux$/
44
+ 'linux-64'
45
+ when /darwin/
46
+ 'mac'
47
+ when /freebsd/
48
+ raise 'Create an issue or add pull request on a github.'
49
+ else
50
+ raise 'Unknown OS'
51
+ end
49
52
  end
50
53
  end
51
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_mystem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-09 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &18846940 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '2.8'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *18846940
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.8'
25
30
  description: Mystem is a software that provided by the Yandex only for non-commercial
26
31
  project. With use of it you can detect base forms of the words in a text, make a
27
32
  simple morphological analysis of russian words.
@@ -66,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
71
  version: '0'
67
72
  requirements: []
68
73
  rubyforge_project:
69
- rubygems_version: 1.8.10
74
+ rubygems_version: 1.8.24
70
75
  signing_key:
71
76
  specification_version: 3
72
77
  summary: Yandex Mystem makes morphological analysis of a russian text