phonos 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
@@ -1,6 +1,8 @@
1
1
  # encoding: utf-8
2
2
  $KCODE='u'
3
3
 
4
+ require 'pp'
5
+
4
6
  module Phonos
5
7
  require 'mathn'
6
8
 
@@ -12,7 +14,7 @@ module Phonos
12
14
 
13
15
  PATTERNS = {
14
16
  :ru => { :detect => /[а-я]/, :select => [
15
- [/[^а-я]/, ''],
17
+ [/[^а-яё]/, ''],
16
18
  [/[бвгджзклмнпрстфхцчшщ][еёиьюя]/, Proc.new { |match| match.mb_chars.capitalize }]
17
19
  ] }
18
20
  }
@@ -96,8 +98,9 @@ module Phonos
96
98
  data.each do |lang, words|
97
99
  table = @cache.read "#{lang}_phonos"
98
100
  unless table
99
- table = YAML.load_file File.expand_path("../../../share/#{lang}.yaml", __FILE__)
100
- @cache.write "#{lang}_phonos", table
101
+ table = Phonos::Language::RUSSIAN
102
+ # table = YAML.load_file File.expand_path("../../../share/#{lang}.yaml", __FILE__)
103
+ # @cache.write "#{lang}_phonos", table
101
104
  end
102
105
  words.join('').each_char do |c|
103
106
  char = stats[lang][c]
data/phonos.gemspec CHANGED
@@ -1,52 +1,49 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{phonos}
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Lumren Randir"]
12
- s.date = %q{2010-08-19}
12
+ s.date = %q{2011-02-17}
13
13
  s.description = %q{Phonos, the Phonosemantics Analyser}
14
14
  s.email = %q{lumrandir@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/phonos.rb",
27
- "lib/phonos/analyzer.rb",
28
- "lib/phonos/language.rb",
29
- "lib/string_crutch.rb",
30
- "phonos.gemspec",
31
- "share/ru.yaml",
32
- "test/helper.rb",
33
- "test/test_phonos.rb"
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/phonos.rb",
26
+ "lib/phonos/analyzer.rb",
27
+ "lib/phonos/language.rb",
28
+ "lib/string_crutch.rb",
29
+ "phonos.gemspec",
30
+ "test/helper.rb",
31
+ "test/test_phonos.rb"
34
32
  ]
35
33
  s.homepage = %q{http://feeltoday.ru/}
36
- s.rdoc_options = ["--charset=UTF-8"]
37
34
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.6}
35
+ s.rubygems_version = %q{1.3.7}
39
36
  s.summary = %q{Phonos Phonosemantics Gem}
40
37
  s.test_files = [
41
- "test/test_phonos.rb",
42
- "test/helper.rb"
38
+ "test/helper.rb",
39
+ "test/test_phonos.rb"
43
40
  ]
44
41
 
45
42
  if s.respond_to? :specification_version then
46
43
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
47
44
  s.specification_version = 3
48
45
 
49
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
47
  s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
51
48
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
52
49
  s.add_runtime_dependency(%q<i18n>, [">= 0"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonos
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 2
8
- - 3
9
- version: 1.2.3
9
+ - 4
10
+ version: 1.2.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - Lumren Randir
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-19 00:00:00 +06:00
18
+ date: 2011-02-17 00:00:00 +05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: shoulda
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 33
27
30
  segments:
28
31
  - 2
29
32
  - 10
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: activesupport
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 3
41
46
  segments:
42
47
  - 0
43
48
  version: "0"
@@ -47,9 +52,11 @@ dependencies:
47
52
  name: i18n
48
53
  prerelease: false
49
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
59
+ hash: 3
53
60
  segments:
54
61
  - 0
55
62
  version: "0"
@@ -66,7 +73,6 @@ extra_rdoc_files:
66
73
  - README.rdoc
67
74
  files:
68
75
  - .document
69
- - .gitignore
70
76
  - LICENSE
71
77
  - README.rdoc
72
78
  - Rakefile
@@ -76,7 +82,6 @@ files:
76
82
  - lib/phonos/language.rb
77
83
  - lib/string_crutch.rb
78
84
  - phonos.gemspec
79
- - share/ru.yaml
80
85
  - test/helper.rb
81
86
  - test/test_phonos.rb
82
87
  has_rdoc: true
@@ -84,31 +89,35 @@ homepage: http://feeltoday.ru/
84
89
  licenses: []
85
90
 
86
91
  post_install_message:
87
- rdoc_options:
88
- - --charset=UTF-8
92
+ rdoc_options: []
93
+
89
94
  require_paths:
90
95
  - lib
91
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
+ none: false
92
98
  requirements:
93
99
  - - ">="
94
100
  - !ruby/object:Gem::Version
101
+ hash: 3
95
102
  segments:
96
103
  - 0
97
104
  version: "0"
98
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
99
107
  requirements:
100
108
  - - ">="
101
109
  - !ruby/object:Gem::Version
110
+ hash: 3
102
111
  segments:
103
112
  - 0
104
113
  version: "0"
105
114
  requirements: []
106
115
 
107
116
  rubyforge_project:
108
- rubygems_version: 1.3.6
117
+ rubygems_version: 1.3.7
109
118
  signing_key:
110
119
  specification_version: 3
111
120
  summary: Phonos Phonosemantics Gem
112
121
  test_files:
113
- - test/test_phonos.rb
114
122
  - test/helper.rb
123
+ - test/test_phonos.rb
data/.gitignore DELETED
@@ -1,23 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
- nbproject
21
- .rvmrc
22
-
23
- ## PROJECT::SPECIFIC