mumuki-haskell-runner 1.3.2 → 1.3.3

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: 6c2d5bc99cf4c9a7ab8c6b98bc987fee148719cd8ef34cd2f6cbd064b0a78088
4
- data.tar.gz: 4ef70d451b5efacbabc72fe3ffb81e87f0d041fcd3dea28327d209b2d4b166fb
3
+ metadata.gz: 9785b79812712c5a7f9478e388e76fcaee847b85d1bfa0705ed10853d19b7ea5
4
+ data.tar.gz: a192f6af6724218a0a55247775842d6c73fb7aa061001c5438bcafc5b6672712
5
5
  SHA512:
6
- metadata.gz: ae8e678aa9d58e63824db6c69a0e8bd1df9923d179d8386e0814da2d53940268b9f5d992045e4ac3b10d1b0fc3376e9876ac4603e9e08ff23bced9e9f67a67b1
7
- data.tar.gz: 3413eba76146b865d88c3978a00962afe7ee24664f8c5e1ea8e9cf3ac209b5f7b071b72e346e7cf8fb8e26125bc4350f934fb829eb75216f8750413b4c281305
6
+ metadata.gz: 17bb91b50d39b6bf132c4a2d91bf6bc28cc6d7af4ffc693154c6f4bf98eae35ff079ab71720ec77c3a8baff4663f7ce7e4da0f62f550e083cb1d996da657e737
7
+ data.tar.gz: 6858f505a3bd1dd6ba780d5f5442f4e59fca60b1613c283a7373fc59084b36e9ce7ea637ce2659d13bba6828efa9b71b52bed6f5517054e254283f90e6455493
@@ -4,4 +4,8 @@ class HaskellExpectationsHook < Mumukit::Templates::MulangExpectationsHook
4
4
  def language
5
5
  'Haskell'
6
6
  end
7
+
8
+ def default_smell_exceptions
9
+ LOGIC_SMELLS + %w(DoesTypeTest)
10
+ end
7
11
  end
@@ -0,0 +1,8 @@
1
+ class String
2
+ # Example: "coffee: \9749" for "coffee: ☕"
3
+ def with_unescaped_unicode_esque_sequences
4
+ self.force_encoding('UTF-8').gsub(/\\(\d+)/) { |m|
5
+ [$1.to_i.to_s(16).rjust(4, '0')].pack("H*").unpack("n*").pack("U*")
6
+ }
7
+ end
8
+ end
@@ -1,6 +1,10 @@
1
1
  class HaskellFileHook < Mumukit::Templates::FileHook
2
2
  isolated true
3
3
 
4
+ def cleanup_raw_result(result)
5
+ super result.with_unescaped_unicode_esque_sequences
6
+ end
7
+
4
8
  def tempfile_extension
5
9
  '.hs'
6
10
  end
@@ -13,3 +13,4 @@ require_relative './validation_hook'
13
13
  require_relative './metadata_hook'
14
14
  require_relative './test_hook'
15
15
  require_relative './query_hook'
16
+ require_relative './extensions/string'
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module HaskellVersionHook
2
- VERSION = '1.3.2'
2
+ VERSION = '1.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-haskell-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
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-05-28 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -102,6 +102,7 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - lib/expectations_hook.rb
105
+ - lib/extensions/string.rb
105
106
  - lib/haskell_file_hook.rb
106
107
  - lib/haskell_runner.rb
107
108
  - lib/metadata_hook.rb
@@ -128,8 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  - !ruby/object:Gem::Version
129
130
  version: '0'
130
131
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.7.7
132
+ rubygems_version: 3.0.2
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Haskell Runner for Mumuki