nuance 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile CHANGED
@@ -1,13 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # Specify your gem's dependencies in nuance.gemspec
3
4
  gemspec
4
-
5
- # group :development do
6
- # gem "rspec"
7
- # gem "yard"
8
- # gem "rdoc"
9
- # gem "bundler"
10
- # gem "jeweler"
11
- # gem "simplecov"
12
- # gem "fakeweb"
13
- # end
data/README.md CHANGED
@@ -35,8 +35,17 @@ nuance_transcription.transcribe!(:file_contents => File.open('spec/DT-202c.wav')
35
35
  end
36
36
  end
37
37
  ```
38
+
39
+
40
+ ## Contributing
41
+
42
+ 1. Fork it
43
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
44
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
45
+ 4. Push to the branch (`git push origin my-new-feature`)
46
+ 5. Create new Pull Request
47
+
38
48
  Copyright
39
49
  ---------
40
50
 
41
51
  Copyright (c) 2013 Tropo, Inc. See LICENSE.txt for further details.
42
-
data/Rakefile CHANGED
@@ -1,42 +1,32 @@
1
- # encoding: utf-8
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core'
3
+ require 'rspec/core/rake_task'
4
+ require 'rake/clean'
2
5
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
6
+ desc "Chown pkg dir"
7
+ task :chown_files do
8
+ require 'fileutils'
9
+ FileUtils.chown_R 'tomcat', 'tomcat', 'pkg'
10
+ puts "Package chown'ed."
11
11
  end
12
- require 'rake'
13
12
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "nuance"
18
- gem.homepage = "http://github.com/voxeolabs/nuance"
19
- gem.license = "MIT"
20
- gem.summary = "A Ruby Gem for consuming the Nuance transcription and text to speech REST APIs"
21
- gem.description = "A Ruby Gem for consuming the Nuance transcription and text to speech REST APIs"
22
- gem.email = ["jason@goecke.net", "johntdyer@gmail.com"]
23
- gem.authors = ["Jason Goecke", "John Dyer"]
24
- # dependencies defined in Gemfile
13
+ desc "Remove pkg files"
14
+ task :delete_packages do
15
+ require 'fileutils'
16
+ FileUtils.rm_rf('pkg')
17
+ puts "Package files removed."
25
18
  end
26
- Jeweler::RubygemsDotOrgTasks.new
27
19
 
28
- require 'rspec/core'
29
- require 'rspec/core/rake_task'
30
- RSpec::Core::RakeTask.new(:spec) do |spec|
31
- spec.pattern = FileList['spec/**/*_spec.rb']
32
- end
33
20
 
34
- RSpec::Core::RakeTask.new(:rcov) do |spec|
35
- spec.pattern = 'spec/**/*_spec.rb'
36
- spec.simplecov = true
37
- end
38
21
 
39
- task :default => :spec
22
+ RSpec::Core::RakeTask.new(:spec) do |spec|
40
23
 
41
- require 'yard'
42
- YARD::Rake::YardocTask.new
24
+ ## Set environment
25
+ ENV['ATT_SPEECH_KEY']='1234'
26
+ ENV['ATT_SPEECH_SECRET']='4567'
27
+ ENV['NUANCE_APP_ID']='abcd'
28
+ ENV['NUANCE_APP_KEY']='0xf3 0x1c'
29
+ ENV['AWS_USER_KEY']='1234'
30
+ ENV['AWS_SECRET_KEY']='4567'
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
@@ -2,6 +2,7 @@
2
2
  faraday
3
3
  celluloid
4
4
  hashie
5
+ nuance/version
5
6
  nuance/transcription
6
7
  nuance/text_to_speech
7
8
  }.each { |lib| require lib }
@@ -0,0 +1,3 @@
1
+ module Nuance
2
+ VERSION = "0.0.4"
3
+ end
@@ -1,84 +1,38 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'nuance/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "nuance"
8
- s.version = "0.0.3"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "nuance"
8
+ spec.version = Nuance::VERSION
9
+ spec.authors = ["Jason Goecke", "John Dyer"]
10
+ spec.email = ["jason@goecke.net", "johntdyer@gmail.com"]
9
11
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jason Goecke", "John Dyer"]
12
- s.date = "2013-07-08"
13
- s.description = "A Ruby Gem for consuming the Nuance transcription and text to speech REST APIs"
14
- s.email = ["jason@goecke.net", "johntdyer@gmail.com"]
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".DS_Store",
21
- ".document",
22
- ".rspec",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE.txt",
26
- "README.md",
27
- "Rakefile",
28
- "VERSION",
29
- "examples/DT-202c.wav",
30
- "examples/transcribe.rb",
31
- "lib/nuance.rb",
32
- "lib/nuance/dictation-base64.cer",
33
- "lib/nuance/text_to_speech.rb",
34
- "lib/nuance/transcription.rb",
35
- "nuance.gemspec",
36
- "spec/.DS_Store",
37
- "spec/DT-202c.wav",
38
- "spec/nuance-text_to_speech_spec.rb",
39
- "spec/nuance-transcription_spec.rb",
40
- "spec/spec_helper.rb"
41
- ]
42
- s.homepage = "http://github.com/voxeolabs/nuance"
43
- s.licenses = ["MIT"]
44
- s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.23"
46
- s.summary = "A Ruby Gem for consuming the Nuance transcription and text to speech REST APIs"
12
+ spec.description = "A Ruby Gem for consuming the Nuance transcription and text to speech REST APIs"
13
+ spec.summary = "A Ruby Gem for consuming the Nuance transcription and text to speech REST APIs"
47
14
 
48
- if s.respond_to? :specification_version then
49
- s.specification_version = 3
15
+ spec.license = "MIT"
16
+ spec.homepage = "http://github.com/voxeolabs/nuance"
50
17
 
51
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
- s.add_runtime_dependency(%q<nuance>, [">= 0"])
53
- s.add_development_dependency(%q<rspec>, ["= 2.12.0"])
54
- s.add_development_dependency(%q<yard>, ["= 0.8.3"])
55
- s.add_development_dependency(%q<rdoc>, ["= 3.12"])
56
- s.add_development_dependency(%q<bundler>, ["= 1.3.5"])
57
- s.add_development_dependency(%q<facter>, ["= 1.7.1"])
58
- s.add_development_dependency(%q<jeweler>, ["= 1.8.4"])
59
- s.add_development_dependency(%q<simplecov>, ["= 0.7.1"])
60
- s.add_development_dependency(%q<fakeweb>, ["= 1.3.0"])
61
- else
62
- s.add_dependency(%q<nuance>, [">= 0"])
63
- s.add_dependency(%q<rspec>, ["= 2.12.0"])
64
- s.add_dependency(%q<yard>, ["= 0.8.3"])
65
- s.add_dependency(%q<rdoc>, ["= 3.12"])
66
- s.add_dependency(%q<bundler>, ["= 1.3.5"])
67
- s.add_dependency(%q<facter>, ["= 1.7.1"])
68
- s.add_dependency(%q<jeweler>, ["= 1.8.4"])
69
- s.add_dependency(%q<simplecov>, ["= 0.7.1"])
70
- s.add_dependency(%q<fakeweb>, ["= 1.3.0"])
71
- end
72
- else
73
- s.add_dependency(%q<nuance>, [">= 0"])
74
- s.add_dependency(%q<rspec>, ["= 2.12.0"])
75
- s.add_dependency(%q<yard>, ["= 0.8.3"])
76
- s.add_dependency(%q<rdoc>, ["= 3.12"])
77
- s.add_dependency(%q<bundler>, ["= 1.3.5"])
78
- s.add_dependency(%q<facter>, ["= 1.7.1"])
79
- s.add_dependency(%q<jeweler>, ["= 1.8.4"])
80
- s.add_dependency(%q<simplecov>, ["= 0.7.1"])
81
- s.add_dependency(%q<fakeweb>, ["= 1.3.0"])
82
- end
83
- end
18
+ spec.files = `git ls-files`.split($/)
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_runtime_dependency "hashie","=1.2.0"
24
+ spec.add_runtime_dependency "faraday", "= 0.8.7"
25
+ spec.add_runtime_dependency "celluloid", "= 0.12.4"
84
26
 
27
+ spec.add_development_dependency "bundler", "~> 1.3"
28
+ spec.add_development_dependency "rake"
29
+ spec.add_development_dependency "rspec", "= 2.12.0"
30
+ spec.add_development_dependency "yard", "= 0.8.3"
31
+ spec.add_development_dependency "rdoc", "= 3.12"
32
+ spec.add_development_dependency "bundler", "= 1.3.5"
33
+ spec.add_development_dependency "facter", "= 1.7.1"
34
+ spec.add_development_dependency "jeweler", "= 1.8.4"
35
+ spec.add_development_dependency "simplecov", "= 0.7.1"
36
+ spec.add_development_dependency "fakeweb", "= 1.3.0"
37
+
38
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,14 +13,78 @@ cert_chain: []
13
13
  date: 2013-07-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: nuance
16
+ name: hashie
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - '='
21
+ - !ruby/object:Gem::Version
22
+ version: 1.2.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - '='
29
+ - !ruby/object:Gem::Version
30
+ version: 1.2.0
31
+ - !ruby/object:Gem::Dependency
32
+ name: faraday
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - '='
37
+ - !ruby/object:Gem::Version
38
+ version: 0.8.7
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - '='
45
+ - !ruby/object:Gem::Version
46
+ version: 0.8.7
47
+ - !ruby/object:Gem::Dependency
48
+ name: celluloid
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.12.4
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - '='
61
+ - !ruby/object:Gem::Version
62
+ version: 0.12.4
63
+ - !ruby/object:Gem::Dependency
64
+ name: bundler
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: '1.3'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: '1.3'
79
+ - !ruby/object:Gem::Dependency
80
+ name: rake
17
81
  requirement: !ruby/object:Gem::Requirement
18
82
  none: false
19
83
  requirements:
20
84
  - - ! '>='
21
85
  - !ruby/object:Gem::Version
22
86
  version: '0'
23
- type: :runtime
87
+ type: :development
24
88
  prerelease: false
25
89
  version_requirements: !ruby/object:Gem::Requirement
26
90
  none: false
@@ -163,27 +227,23 @@ email:
163
227
  - johntdyer@gmail.com
164
228
  executables: []
165
229
  extensions: []
166
- extra_rdoc_files:
167
- - LICENSE.txt
168
- - README.md
230
+ extra_rdoc_files: []
169
231
  files:
170
- - .DS_Store
171
232
  - .document
233
+ - .gitignore
172
234
  - .rspec
173
235
  - Gemfile
174
- - Gemfile.lock
175
236
  - LICENSE.txt
176
237
  - README.md
177
238
  - Rakefile
178
- - VERSION
179
239
  - examples/DT-202c.wav
180
240
  - examples/transcribe.rb
181
241
  - lib/nuance.rb
182
242
  - lib/nuance/dictation-base64.cer
183
243
  - lib/nuance/text_to_speech.rb
184
244
  - lib/nuance/transcription.rb
245
+ - lib/nuance/version.rb
185
246
  - nuance.gemspec
186
- - spec/.DS_Store
187
247
  - spec/DT-202c.wav
188
248
  - spec/nuance-text_to_speech_spec.rb
189
249
  - spec/nuance-transcription_spec.rb
@@ -203,13 +263,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
263
  version: '0'
204
264
  segments:
205
265
  - 0
206
- hash: 1207236726200469224
266
+ hash: -4419268677901697390
207
267
  required_rubygems_version: !ruby/object:Gem::Requirement
208
268
  none: false
209
269
  requirements:
210
270
  - - ! '>='
211
271
  - !ruby/object:Gem::Version
212
272
  version: '0'
273
+ segments:
274
+ - 0
275
+ hash: -4419268677901697390
213
276
  requirements: []
214
277
  rubyforge_project:
215
278
  rubygems_version: 1.8.23
@@ -217,4 +280,9 @@ signing_key:
217
280
  specification_version: 3
218
281
  summary: A Ruby Gem for consuming the Nuance transcription and text to speech REST
219
282
  APIs
220
- test_files: []
283
+ test_files:
284
+ - spec/DT-202c.wav
285
+ - spec/nuance-text_to_speech_spec.rb
286
+ - spec/nuance-transcription_spec.rb
287
+ - spec/spec_helper.rb
288
+ has_rdoc:
data/.DS_Store DELETED
Binary file
@@ -1,50 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- nuance (0.0.2)
5
- nuance
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- diff-lcs (1.1.3)
11
- facter (1.7.1)
12
- fakeweb (1.3.0)
13
- git (1.2.5)
14
- jeweler (1.8.4)
15
- bundler (~> 1.0)
16
- git (>= 1.2.5)
17
- rake
18
- rdoc
19
- json (1.8.0)
20
- multi_json (1.7.7)
21
- rake (10.1.0)
22
- rdoc (3.12)
23
- json (~> 1.4)
24
- rspec (2.12.0)
25
- rspec-core (~> 2.12.0)
26
- rspec-expectations (~> 2.12.0)
27
- rspec-mocks (~> 2.12.0)
28
- rspec-core (2.12.2)
29
- rspec-expectations (2.12.1)
30
- diff-lcs (~> 1.1.3)
31
- rspec-mocks (2.12.2)
32
- simplecov (0.7.1)
33
- multi_json (~> 1.0)
34
- simplecov-html (~> 0.7.1)
35
- simplecov-html (0.7.1)
36
- yard (0.8.3)
37
-
38
- PLATFORMS
39
- ruby
40
-
41
- DEPENDENCIES
42
- bundler (= 1.3.5)
43
- facter (= 1.7.1)
44
- fakeweb (= 1.3.0)
45
- jeweler (= 1.8.4)
46
- nuance!
47
- rdoc (= 3.12)
48
- rspec (= 2.12.0)
49
- simplecov (= 0.7.1)
50
- yard (= 0.8.3)
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.3
Binary file