minisphinx 1.0.0 → 1.0.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,3 +1,5 @@
1
+ require 'minisphinx/charset'
2
+
1
3
  module Minisphinx
2
4
  def sphinx_source(name, opts)
3
5
  opts[:model_class] ||= self
@@ -1,4 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/test_helper'
2
+ require 'tmpdir'
2
3
 
3
4
  class MinisphinxTest < Test::Unit::TestCase
4
5
  class CreateTables < ActiveRecord::Migration
@@ -42,7 +43,6 @@ class MinisphinxTest < Test::Unit::TestCase
42
43
 
43
44
  context 'with a db connection' do
44
45
  setup do
45
- Dir.mkdir('/tmp/minisphinx-test')
46
46
  CreateTables.verbose = false
47
47
  CreateTables.up
48
48
  end
@@ -53,8 +53,10 @@ class MinisphinxTest < Test::Unit::TestCase
53
53
 
54
54
  should "write config" do
55
55
  Pet.initialize_sphinx
56
- Minisphinx.configure(:path => '/tmp/minisphinx-test')
57
- assert File.exists('/tmp/minisphinx-test/sphinx.conf')
56
+ Dir.mktmpdir("minisphinx-test") do |path|
57
+ Minisphinx.configure(:path => path)
58
+ assert File.exists?("#{path}/sphinx.conf")
59
+ end
58
60
  end
59
61
  end
60
62
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minisphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Balthrop
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-03 00:00:00 -07:00
18
+ date: 2013-06-07 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency