phonos 1.2.1 → 1.2.2

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.1
1
+ 1.2.2
@@ -94,7 +94,7 @@ module Phonos
94
94
  data.each do |lang, words|
95
95
  table = @cache.read "#{lang}_phonos"
96
96
  unless table
97
- table = YAML.load_file "./share/#{lang}.yaml"
97
+ table = YAML.load_file File.expand_path("../../../share/#{lang}.yaml", __FILE__)
98
98
  @cache.write "#{lang}_phonos", table
99
99
  end
100
100
  words.join('').each_char do |c|
@@ -121,7 +121,6 @@ module Phonos
121
121
  end
122
122
  end
123
123
  SCALES.inject({}) do |r, scale|
124
- p f1, f2
125
124
  val = if f1[scale] && f2[scale]
126
125
  f1[scale] / f2[scale]
127
126
  else
data/phonos.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{phonos}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
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"]
data/test/test_phonos.rb CHANGED
@@ -39,6 +39,12 @@ class TestPhonos < Test::Unit::TestCase
39
39
  end
40
40
  end
41
41
 
42
+ context '#analyze' do
43
+ should 'return hash' do
44
+ assert subject.analyze("буба сука дебил").kind_of? Hash
45
+ end
46
+ end
47
+
42
48
  # context "Counter" do
43
49
  # should "return correct hash" do
44
50
  # assert_equal({
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 1
9
- version: 1.2.1
8
+ - 2
9
+ version: 1.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lumren Randir