mumuki-text-runner 1.6.0 → 1.7.0

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: 486815bf234d3b10dec624d384e8926afaf81b9ae7a6f4c74ea08d741e359f71
4
- data.tar.gz: 78a694eb41920fe2586da2a67f28c16355f7e5a8e41a9eeb494ed94603d0a50d
3
+ metadata.gz: 802db33d2d63de845d41759bf4370366a14d2e6e24a48277b3d9b1d52cc94b3a
4
+ data.tar.gz: 3d5e485be6a8c7680d52b9fbc1ba192abf618b3c223d869e2ade5daa34393d54
5
5
  SHA512:
6
- metadata.gz: 241b8b2d2cc1839a9a3faa830c7d4d0b5c412bf8078a97d7a2edea1029ec16a2d7194198f9d5a7c86b512e851ad423cd29c77e189becbf4ea5f850b7f60427df
7
- data.tar.gz: 948448f5ceac662501bded0f32ab93fc0bc562339557346b281db2c3690a8fdf62f9f0b81f027f9d0006f9ae4cc9e105f15281b4bf06561662093926f73ec984
6
+ metadata.gz: 57ef78eece55e775a38ecbe9bffbdbacfcdb71dd6a96a35709e8309b26d40e20721c01dc10ad12ec4074ff8d26899bad6ebb0209e57703c26e1496a6d4739f72
7
+ data.tar.gz: 98c22aeab067edd369c759f7417018240ad15ceca6bb78d77bc3c5d6baf53c2b4d30e36bd698dd265f6e63024739b5f7fb73fd84fadb0bee8683d7c08dc11ded
@@ -1,5 +1,5 @@
1
1
  module TextChecker::Multiline
2
2
  def self.apply(text)
3
- text.gsub("\r\n", "\n")
3
+ text.gsub("\r\n", "\n").chomp
4
4
  end
5
5
  end
data/lib/test_hook.rb CHANGED
@@ -17,7 +17,7 @@ class TextTestHook < Mumukit::Hook
17
17
  end
18
18
 
19
19
  def parse_test(tests)
20
- parsed_test = YAML.load(tests)
20
+ parsed_test = YAML.load(tests, permitted_classes: [Regexp, Symbol])
21
21
  if parsed_test.is_a? Array
22
22
  parse_multi_scenario_test(parsed_test)
23
23
  else
data/lib/version_hook.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TextVersionHook
2
- VERSION = '1.6.0'
2
+ VERSION = '1.7.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-text-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
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: 2022-09-22 00:00:00.000000000 Z
11
+ date: 2023-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
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
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -144,14 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
146
146
  - !ruby/object:Gem::Version
147
- version: '0'
147
+ version: '3.0'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubygems_version: 3.0.3
154
+ rubygems_version: 3.4.10
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Text Runner for Mumuki