mumukit-core 1.2.1 → 1.2.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 +4 -4
- data/lib/mumukit/core/rspec.rb +2 -5
- data/lib/mumukit/core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 471cc401533ab83628e68793fbb1187d2db6eab6fe137b5468854337773c0380
|
|
4
|
+
data.tar.gz: 7082b342ffd02bdd0fcdeff931c27ae096d41a8f59667a86b7dfbae37f248268
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f757729d58f2ec4987a5f51a7b1cb1d1e721765234316a6b5b2d0a18a406201be82f3ace4dbfa470378e6acccfc5fd6b8d71e4787978a11534b28f561ac7855c
|
|
7
|
+
data.tar.gz: 96ab65df17be6b3e49609de3fc2a20f69bde7350ef4e5bf986aa6e5643b44f98d98ce73a4e6614f0a8f0352a607b6501a672dfcb596f14547d9757a5d48db239
|
data/lib/mumukit/core/rspec.rb
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
[:json_eq, :json_like].each do |it|
|
|
2
2
|
|
|
3
3
|
def as_matcher_json(obj, options = {})
|
|
4
|
-
new_options = options.with_indifferent_access
|
|
5
|
-
new_options['only'] = [*new_options['only']].map &:to_s if new_options['only']
|
|
6
|
-
new_options['except'] = [*new_options['except']].map &:to_s if new_options['except']
|
|
7
4
|
if obj.instance_of? String
|
|
8
|
-
JSON.parse(obj).as_json
|
|
5
|
+
JSON.parse(obj).with_indifferent_access.as_json options
|
|
9
6
|
else
|
|
10
|
-
|
|
7
|
+
obj.as_json options
|
|
11
8
|
end
|
|
12
9
|
end
|
|
13
10
|
|
data/lib/mumukit/core/version.rb
CHANGED
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.2.
|
|
4
|
+
version: 1.2.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:
|
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
version: '0'
|
|
168
168
|
requirements: []
|
|
169
169
|
rubyforge_project:
|
|
170
|
-
rubygems_version: 2.7.
|
|
170
|
+
rubygems_version: 2.7.4
|
|
171
171
|
signing_key:
|
|
172
172
|
specification_version: 4
|
|
173
173
|
summary: Ruby core extensions for mumuki on top of active support
|