webmock 1.9.2 → 1.9.3

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.
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.3
4
+
5
+ * Fixed issue with unavailable constant Mutex in Ruby < 1.9
6
+
7
+ Thanks to [Lucas Dohmen](https://github.com/moonglum) for reporting this issue.
8
+
3
9
  ## 1.9.2
4
10
 
5
11
  * Added support for Excon's :response_block parameter
data/README.md CHANGED
@@ -721,6 +721,7 @@ People who submitted patches and new features or suggested improvements. Many th
721
721
  * Travis Beauvais
722
722
  * Mokevnin Kirill
723
723
  * Alex Grant
724
+ * Lucas Dohmen
724
725
 
725
726
  For a full list of contributors you can visit the
726
727
  [contributors](https://github.com/bblimke/webmock/contributors) page.
@@ -1,3 +1,5 @@
1
+ require 'thread'
2
+
1
3
  module WebMock
2
4
  module Util
3
5
  class Util::HashCounter
@@ -6,7 +8,7 @@ module WebMock
6
8
  self.hash = {}
7
9
  @order = {}
8
10
  @max = 0
9
- @lock = Mutex.new
11
+ @lock = ::Mutex.new
10
12
  end
11
13
  def put key, num=1
12
14
  @lock.synchronize do
@@ -1,3 +1,3 @@
1
1
  module WebMock
2
- VERSION = '1.9.2' unless defined?(::WebMock::VERSION)
2
+ VERSION = '1.9.3' unless defined?(::WebMock::VERSION)
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 9
9
- - 2
10
- version: 1.9.2
9
+ - 3
10
+ version: 1.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bartosz Blimke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-17 00:00:00 Z
18
+ date: 2013-02-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: addressable