mumukit-core 1.5.1 → 1.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
  SHA256:
3
- metadata.gz: 576251395644fb5ee6349297978eda768c93bf5d0933b0ae32084327e5a06f35
4
- data.tar.gz: cf07f8e859db68413192eb854a21481cc53dd90a97bf8838c559a6107b0503f0
3
+ metadata.gz: e99a2f0c6ba6efefbec79036b8d2f8537ed11a9d5a6b76211c37d167a7f0b741
4
+ data.tar.gz: d8263121581b7593c287e06978524ca0c7c5551c94c0dbf6df6d5e9dd1f722e5
5
5
  SHA512:
6
- metadata.gz: 52b576f334f5e965f19c5d6bee280ed80cfd2cc637df2e37567094d4e7bbb6f36d1bc0cf2feac19b638bcbbda61a41f3cfcba4b9a7666a5a9d4ccf36ce186506
7
- data.tar.gz: aa94043e369525f18e05da1fd16636e66301cd3ac6c3f03953bd5c0a698cac17368d8aeec160ce1454fb827107fdd2d7717cb8dbd0e737f8f13981d527a98f4a
6
+ metadata.gz: c7ef96a6e83fc6e721e732d1f3ac620a45b14de3c6d396c4904a88d13d1c1bdc538408033dc0a1f14fbfe3bf935dec5688a986a71a84750a0c49ff6276089fef
7
+ data.tar.gz: e8c5c304a35c1ae703d0bfd9f6807345c5c83435f9cf39a3dc590090504d79c77f1b99826506bbe2d906143f3b7898683a9fa4ee7465cce8a3e514a3da32845b
@@ -13,19 +13,27 @@
13
13
  as_matcher_json(actual, options) == as_matcher_json(expected, options)
14
14
  end
15
15
 
16
- failure_message_for_should do |actual|
16
+ message = proc do |actual|
17
17
  <<-EOS
18
18
  expected: #{as_matcher_json(expected, options)} (#{expected.class})
19
19
  got: #{as_matcher_json(actual, options)} (#{actual.class})
20
20
  EOS
21
21
  end
22
22
 
23
- failure_message_for_should_not do |actual|
23
+ negated_message = proc do |actual|
24
24
  <<-EOS
25
25
  expected: value != #{as_matcher_json(expected, options)} (#{expected.class})
26
26
  got: #{as_matcher_json(actual, options)} (#{actual.class})
27
27
  EOS
28
28
  end
29
+
30
+ if respond_to? :failure_message
31
+ failure_message(&message)
32
+ failure_message_when_negated(&message)
33
+ else
34
+ failure_message_for_should(&:message)
35
+ failure_message_for_should_not(&:message)
36
+ end
29
37
  end
30
38
 
31
- end
39
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Core
3
- VERSION = '1.5.1'
3
+ VERSION = '1.5.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-12 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2'
55
55
  - !ruby/object:Gem::Dependency