service_mock 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd5829528cb281f708339cec427521cfe9867da9
4
- data.tar.gz: f39cd3ccbb419a2385b99f55670bff022024ff12
3
+ metadata.gz: c01943433a45f68b91e1439611ec86965ab1efb0
4
+ data.tar.gz: 698fa62a5d83078d19aa2d5d215a21f4a691af27
5
5
  SHA512:
6
- metadata.gz: 4d9531b53023c5f1687410ec0aeb2b95a4aba0777ef831754f030bdc1fe98c5d5c552f7363e0f298b4873b89cdeadf273517789dc748a01b183cbaf96a456326
7
- data.tar.gz: e19cc0661d54fc0b9d8f69898e8314c9a338a0d8079933cb0a4fc308f076443f9cd3c101da54bf4c6426588179477f7bf59d119e552688c2cb1bce16246f1201
6
+ metadata.gz: 6b937cb89456d8d5c73b0d42d13614fcec311739c1c10ec292d526a27b51cfa9e7e3ec332ec0672f337659313bcf17d701572a32cd7b2885fe0e0655c02a840a
7
+ data.tar.gz: 1ffe3e9cf59ffd17c95ba02d66b1ba4cc34821ec2d1c3208021b0654ed6171e78ebbd6a8a7af51827ab3ff8cb8f7488b318b4e2be649b51d9711efb268b149b2
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ === Release 0.5.2
2
+ * Fixed defect with merging data where key doesn't exist
3
+
1
4
  === Release 0.5.1
2
5
  * Added ability to turn off all stubbing by setting disable_stubs
3
6
 
@@ -9,6 +9,6 @@ class String
9
9
  end
10
10
 
11
11
  def remove_whitespace
12
- self.gsub("\n", "").gsub("\r", "").gsub("\t", "").gsub(" ", "")
12
+ self.gsub(/\s/, "")
13
13
  end
14
14
  end
@@ -65,8 +65,8 @@ module ServiceMock
65
65
  end
66
66
 
67
67
  def merge_data(to_merge)
68
- data.each_key do |key|
69
- data[key].merge!(to_merge[key])
68
+ to_merge.each_key do |key|
69
+ data[key].merge!(to_merge[key]) if data[key]
70
70
  end
71
71
  end
72
72
 
@@ -1,3 +1,3 @@
1
1
  module ServiceMock
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess