punchblock 2.4.0 → 2.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b59ef9a626a919b1db35af9603f8d5d73edae6a8
4
- data.tar.gz: 47f018bf7cc1d9ba4e6d14acb0d4bc18e64622e2
3
+ metadata.gz: 4cf351841230c7cb7a3c6004a3a1dabb79f203df
4
+ data.tar.gz: 46911f3a2bd9e94791ea7506396b3e0e8dc8c9a7
5
5
  SHA512:
6
- metadata.gz: 8f143c3727b0bf9d205d3c9f8a09eec1eda96ad294af4dcca99b962de39c6aa47cce84ec24080a40ab4ca8ff78e244a444c66fa6571ba0e892871b475798549c
7
- data.tar.gz: 55b015a502dc38e174c59707701046c0138ccf8e0db6afd318da38b7e7672a4271023cef5fca0f7b90bf22eaf6d2c695b6d5aee1a5acc0223a5147a410c9f77c
6
+ metadata.gz: 7d625a9dede87541c2d9d49b5769415940f0fe0db4c90c6174387f8f854f00cdc8134f3e99295b1694d2b9e9257ae590dcef879fd64ff72a4231657cf1c51e5f
7
+ data.tar.gz: 5f33fbb9b113bcc8d6b34466ef4cfad0cab6badbdcb35739498f7c632e56404865d3b8bd8983fe4e38a40f7152e2916f4380b0be85ccef36c633b667fbc96532
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # [develop](https://github.com/adhearsion/punchblock)
2
2
 
3
+ # [v2.4.2](https://github.com/adhearsion/punchblock/compare/v2.4.0...v2.4.2) - [2014-03-04](https://rubygems.org/gems/punchblock/versions/2.4.2)
4
+ * Bugfix: Rayo events should not include their timestamp in comparison. This is not useful in applications, and makes testing more difficult.
5
+
6
+ Note: 2.4.1 was not released due to a tagging mishap. Its contents was released as 2.4.2.
7
+
3
8
  # [v2.4.0](https://github.com/adhearsion/punchblock/compare/v2.3.1...v2.4.0) - [2014-03-01](https://rubygems.org/gems/punchblock/versions/2.4.0)
4
9
  * Feature: Add support for requesting calls with a specific URI
5
10
  * Feature: Allow generation of a random call URI for a client
@@ -78,7 +78,7 @@ module Punchblock
78
78
  end
79
79
 
80
80
  def ==(o)
81
- o.is_a?(self.class) && self.to_hash == o.to_hash
81
+ o.is_a?(self.class) && self.comparable_attributes == o.comparable_attributes
82
82
  end
83
83
 
84
84
  ##
@@ -111,5 +111,13 @@ module Punchblock
111
111
  end
112
112
 
113
113
  alias :to_s :inspect
114
+
115
+ protected
116
+
117
+ def comparable_attributes
118
+ to_hash.tap do |hash|
119
+ hash.delete :timestamp
120
+ end
121
+ end
114
122
  end
115
123
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Punchblock
4
- VERSION = "2.4.0"
4
+ VERSION = "2.4.2"
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -28,9 +28,6 @@ RSpec.configure do |config|
28
28
  config.before do
29
29
  @uuid = SecureRandom.uuid
30
30
  Punchblock.stub new_request_id: @uuid
31
-
32
- @current_datetime = DateTime.now
33
- DateTime.stub now: @current_datetime
34
31
  end
35
32
 
36
33
  config.after :each do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punchblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Goecke
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-01 00:00:00.000000000 Z
13
+ date: 2014-03-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri