diarize-ruby 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b41925aa6e504b2dcce4782d53d5207919f46870
4
- data.tar.gz: 6f261ba244f3d7db91b219701c4e21712af1880d
3
+ metadata.gz: fe4e7894eb287bffc0a6a79d0a9b239e9111aee7
4
+ data.tar.gz: 8dc9c7b97fddcef82a6dbcd99d631eb80609f597
5
5
  SHA512:
6
- metadata.gz: e1499e38b077b2de6e019f976ff1dd1f27145f3f6f5c972fb8c7dc4951006c005f1eed11342451b90c7145b08cefa88f7a92947e0d267870c26b6f85d5b3da55
7
- data.tar.gz: 28d1f7e61ddb7cb3ad9446b8fcf191017a9988e4044bf98e4bf6734696c5547b0e33d01d459c55b3be3dadd513cdfed4b5da789c8ff7492519c431da5e5772d2
6
+ metadata.gz: d6f95d67b154afbf2797515590f616543ab65427ae1acbb095da02ba2fc6db48b70f70a1e31fc0d3dea0f34f4a19bc4c34a2bf77795988f62ce971796082ca2c
7
+ data.tar.gz: e1481384513a416e4b222e23a5625f1ec4c25566747813fbcdb37703ed4d0c5265d9dbea57b07a56f1bdb93087db5540c3d365689b416aae05fa44f0fcad17ce
@@ -1,3 +1,8 @@
1
+ ## [v0.4.1] - 2016-11-16
2
+
3
+ - Provider DRb server `build_speaker`
4
+ - Relax Gli dependency
5
+
1
6
  ## [v0.4.1] - 2016-11-15
2
7
 
3
8
  - Relax GSL version in gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "to-rdf", "~> 0"
31
31
  spec.add_dependency "gsl"
32
32
 
33
- spec.add_runtime_dependency('gli', '~> 2.13.0')
33
+ spec.add_runtime_dependency 'gli', '~> 2.13', '>= 2.13.0'
34
34
  end
@@ -5,5 +5,9 @@ module Diarize
5
5
  Audio.new(url_or_uri)
6
6
  end
7
7
 
8
+ def build_speaker(uri = nil, gender = nil, model_file = nil)
9
+ Speaker.new(uri, gender, model_file)
10
+ end
11
+
8
12
  end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module Diarize
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -8,4 +8,14 @@ class ServerTest < Test::Unit::TestCase
8
8
  assert_equal Diarize::Audio, audio.class
9
9
  end
10
10
 
11
+ def test_build_speaker_server_wrapper
12
+ server = Diarize::Server.new
13
+ # build with uri and gender
14
+ speaker = server.build_speaker("http://www.example.com", "M")
15
+ assert_equal Diarize::Speaker, speaker.class
16
+ # load from model
17
+ speaker = server.build_speaker(nil, nil, File.join(File.dirname(__FILE__), 'data', 'speaker1.gmm'))
18
+ assert_equal Diarize::Speaker, speaker.class
19
+ end
20
+
11
21
  end
@@ -3,7 +3,7 @@ require 'test_helper'
3
3
  class VersionTest < Test::Unit::TestCase
4
4
 
5
5
  def test_current_version
6
- assert_equal "0.4.1", Diarize::VERSION
6
+ assert_equal "0.4.2", Diarize::VERSION
7
7
  end
8
8
 
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diarize-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Raimond
@@ -114,6 +114,9 @@ dependencies:
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '2.13'
119
+ - - ">="
117
120
  - !ruby/object:Gem::Version
118
121
  version: 2.13.0
119
122
  type: :runtime
@@ -121,6 +124,9 @@ dependencies:
121
124
  version_requirements: !ruby/object:Gem::Requirement
122
125
  requirements:
123
126
  - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '2.13'
129
+ - - ">="
124
130
  - !ruby/object:Gem::Version
125
131
  version: 2.13.0
126
132
  description: A library for Ruby wrapping the LIUM Speaker Diarization and including