ruby_ami 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/ruby_ami)
2
2
 
3
+ # [1.2.1](https://github.com/adhearsion/ruby_ami/compare/v1.2.0...v1.2.1) - [2012-07-19](https://rubygems.org/gems/ruby_ami/versions/1.2.1)
4
+ * Use SecureRandom for UUIDs
5
+
3
6
  # [1.2.0](https://github.com/adhearsion/ruby_ami/compare/v1.1.2...v1.2.0) - [2012-07-18](https://rubygems.org/gems/ruby_ami/versions/1.2.0)
4
7
  * Feature: Added parsers for (Async)AGI environment and result strings
5
8
  * Bugfix: Avoid a race condition in stream establishment and event receipt
@@ -10,7 +10,7 @@ module RubyAMI
10
10
  def initialize(name, headers = {}, &block)
11
11
  @name = name.to_s.downcase.freeze
12
12
  @headers = headers.freeze
13
- @action_id = UUIDTools::UUID.random_create.to_s
13
+ @action_id = RubyAMI.new_uuid
14
14
  @response = FutureResource.new
15
15
  @response_callback = block
16
16
  @state = :new
@@ -1,3 +1,3 @@
1
1
  module RubyAMI
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
data/lib/ruby_ami.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  %w{
2
- uuidtools
3
2
  future-resource
4
3
  logger
5
4
  girl_friday
@@ -12,6 +11,9 @@ class Logger
12
11
  end
13
12
 
14
13
  module RubyAMI
14
+ def self.new_uuid
15
+ SecureRandom.uuid
16
+ end
15
17
  end
16
18
 
17
19
  %w{
data/ruby_ami.gemspec CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_runtime_dependency %q<uuidtools>, [">= 0"]
22
21
  s.add_runtime_dependency %q<celluloid-io>, ["~> 0.11.0"]
23
22
  s.add_runtime_dependency %q<future-resource>, [">= 0"]
24
23
  s.add_runtime_dependency %q<girl_friday>, [">= 0"]
data/spec/spec_helper.rb CHANGED
@@ -30,7 +30,7 @@ RSpec.configure do |config|
30
30
  config.run_all_when_everything_filtered = true
31
31
 
32
32
  config.before :each do
33
- uuid = UUIDTools::UUID.random_create
34
- UUIDTools::UUID.stubs :random_create => uuid
33
+ uuid = RubyAMI.new_uuid
34
+ RubyAMI.stubs :new_uuid => uuid
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ami
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-18 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: uuidtools
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: celluloid-io
32
16
  requirement: !ruby/object:Gem::Requirement
@@ -330,7 +314,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
330
314
  version: '0'
331
315
  segments:
332
316
  - 0
333
- hash: 1172578337856307051
317
+ hash: 486749482907062449
334
318
  required_rubygems_version: !ruby/object:Gem::Requirement
335
319
  none: false
336
320
  requirements:
@@ -339,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
323
  version: '0'
340
324
  segments:
341
325
  - 0
342
- hash: 1172578337856307051
326
+ hash: 486749482907062449
343
327
  requirements: []
344
328
  rubyforge_project: ruby_ami
345
329
  rubygems_version: 1.8.24