mustermann-contrib 1.1.2 → 2.0.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: c202a9ceee82599ed40c6b8581a1e83a4ba1d546578d2b859dea2152123403d2
4
- data.tar.gz: b6ed465401e12a37e5b1ea6a089f9ffdd0da52a0e3078bcfb09287beb359ca7c
3
+ metadata.gz: ccc0c857cb3534d38a8d488bff974a6cf549a2aa18c02a952736c6beb0f2388f
4
+ data.tar.gz: 430f7a4934b69262d3430a6bf682ea012da99ec199e1fe2b8f8c549e470040d8
5
5
  SHA512:
6
- metadata.gz: 80b722c5b8cac5953cdf6a3c6de73242026a6ad84f771fe34c855d8799830e0dbe2f98dea84f9f5588ed08e6b0de8fc79a638f7476c5949f008076be9fcfe88a
7
- data.tar.gz: 9ebce6ebcac6f15ed21a589006a1f492756df6e3d9a2d22a188c6901baee4f87f3ba8d6ae174df913f34ec05992b7d48e36e8164b35b450de27fd2e7b47e35dc
6
+ metadata.gz: f9878a6616101376e5b71f5ac8218f71e6c694a1d0a126c3e1edad3d4998c1f3c8e087206fe9bf188212551ecbe90b55da0c3dc19d075e2e2d5031f172abf93d
7
+ data.tar.gz: 78d5b23a5e2c1d8447b8bd16563e44f73520f2e77b50fc2e8d1e5e102a484ca052139c7ba13fd1b7b3db1bbd6dbca6576f22501ade10b8346f1d820b21dbd4d9
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  require 'hansi'
3
- require 'mustermann'
4
3
  require 'mustermann/visualizer/highlighter'
5
4
  require 'mustermann/visualizer/renderer/ansi'
6
5
  require 'mustermann/visualizer/renderer/hansi_template'
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
- require 'mustermann'
3
2
  require 'mustermann/visualizer/highlight'
4
3
  require 'mustermann/visualizer/tree_renderer'
5
4
  require 'mustermann/visualizer/pattern_extension'
@@ -13,7 +13,6 @@ Gem::Specification.new do |s|
13
13
  s.required_ruby_version = '>= 2.2.0'
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
16
  s.add_dependency 'mustermann', Mustermann::VERSION
18
17
  s.add_dependency 'hansi', '~> 0.2.0'
19
18
  end
@@ -38,12 +38,14 @@ describe Mustermann::Visualizer::PatternExtension do
38
38
  let(:output) { StringIO.new }
39
39
 
40
40
  specify 'with color printer' do
41
- ColorPrinter.new(output, 79).pp(pattern)
41
+ printer = ColorPrinter.new(output, 79)
42
+ printer.guard_inspect_key { printer.pp(pattern) }
42
43
  output.string.should be == pattern.color_inspect
43
44
  end
44
45
 
45
46
  specify 'without color printer' do
46
- ::PP.new(output, 79).pp(pattern)
47
+ printer = ::PP.new(output, 79)
48
+ printer.guard_inspect_key { printer.pp(pattern) }
47
49
  output.string.should be == pattern.inspect
48
50
  end
49
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustermann-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-17 00:00:00.000000000 Z
12
+ date: 2022-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mustermann
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.2
20
+ version: 2.0.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.2
27
+ version: 2.0.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: hansi
30
30
  requirement: !ruby/object:Gem::Requirement