has-guarded-handlers 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -4,6 +4,6 @@ rvm:
4
4
  - 1.9.3
5
5
  - jruby-19mode # JRuby in 1.9 mode
6
6
  - rbx-19mode # currently in active development, may or may not work for your project
7
- - ruby-head
7
+ # - ruby-head
8
8
  notifications:
9
9
  irc: "irc.freenode.org#adhearsion"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/has-guarded-handlers)
2
2
 
3
+ # [1.3.1](https://github.com/adhearsion/has-guarded-handlers/compare/v1.3.0...v1.3.1) - [2012-07-19](https://rubygems.org/gems/has-guarded-handlers/versions/1.3.1)
4
+ * Removed dependency on uuid gem in favour of the Ruby built-in `SecureRandom.uuid`
5
+
3
6
  # [1.3.0](https://github.com/adhearsion/has-guarded-handlers/compare/v1.2.0...v1.3.0) - [2012-07-03](https://rubygems.org/gems/has-guarded-handlers/versions/1.3.0)
4
7
  * Feature: It is now possible to register a handler to process all events
5
8
  * Bugfix: Temporary handlers were being removed after the first event even if their guards didn't match
@@ -18,8 +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_dependency 'uuid'
22
-
23
21
  s.add_development_dependency 'bundler', ["~> 1.0"]
24
22
  s.add_development_dependency 'rspec', [">= 2.5.0"]
25
23
  s.add_development_dependency 'mocha', [">= 0"]
@@ -1,5 +1,5 @@
1
1
  require "has_guarded_handlers/version"
2
- require 'uuid'
2
+ require 'securerandom'
3
3
 
4
4
  module HasGuardedHandlers
5
5
  # Register a handler
@@ -114,7 +114,7 @@ module HasGuardedHandlers
114
114
  end
115
115
 
116
116
  def new_handler_id # :nodoc:
117
- UUID.new.generate.to_s
117
+ SecureRandom.uuid
118
118
  end
119
119
 
120
120
  # If any of the guards returns FALSE this returns true
@@ -1,3 +1,3 @@
1
1
  module HasGuardedHandlers
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'has_guarded_handlers'
3
- require 'mocha'
4
3
 
5
4
  Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
6
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has-guarded-handlers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,24 +10,8 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-03 00:00:00.000000000 Z
13
+ date: 2012-07-19 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: uuid
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '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: '0'
31
15
  - !ruby/object:Gem::Dependency
32
16
  name: bundler
33
17
  requirement: !ruby/object:Gem::Requirement
@@ -176,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
160
  version: '0'
177
161
  segments:
178
162
  - 0
179
- hash: -3018957415088485817
163
+ hash: 3518286049349315587
180
164
  required_rubygems_version: !ruby/object:Gem::Requirement
181
165
  none: false
182
166
  requirements:
@@ -185,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
169
  version: '0'
186
170
  segments:
187
171
  - 0
188
- hash: -3018957415088485817
172
+ hash: 3518286049349315587
189
173
  requirements: []
190
174
  rubyforge_project: has-guarded-handlers
191
175
  rubygems_version: 1.8.24
@@ -196,3 +180,4 @@ summary: A library for associating a set of event handlers, complete with guards
196
180
  test_files:
197
181
  - spec/has_guarded_handlers_spec.rb
198
182
  - spec/spec_helper.rb
183
+ has_rdoc: