mustermann-contrib 1.1.1 → 2.0.1

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: 0215f761748d9e4d687778fbb57324d272ebf606ce85480042f12ac73f839b84
4
- data.tar.gz: 6e2893b52853bc917c3730d2c1693258d395f3a3051eb55a775b3fa63682b8f9
3
+ metadata.gz: 00d383cca968798c7200df640865480d8f1e179c868b1fb8ed66620de475e39a
4
+ data.tar.gz: 6a9d8e4095d0f1c5d19ae8bdb41fe4e2295bd4cbae6a60d7d1444773c1542219
5
5
  SHA512:
6
- metadata.gz: 6421ee33d8386aa455048996cd8542a6d8805e0a44ffee575d5b7a9d48e665fa4fbae2ce33986ce768052027543a9d6727ec658b3d719810cb58bcce4b3a659b
7
- data.tar.gz: 10dd265b3143fd08daba276d0372c57d28e1d1cba92aa0fdea1538a601c700565628d839c6b34ebc5da023ad02c132b6f086acf6108c1e7f7971c73b1614dd11
6
+ metadata.gz: 87c3e77471f697e6d5e09a213747c514b45497618fd960d4dad5ccab71a873b8a5241f73a7740bf4de21f423d4f435b154e734990cb64e3047590dcf9e9759a0
7
+ data.tar.gz: dc1000fb81f7360f967f47819703daf1b5167e47945b4e5e04c2921ad1c73255cc5e9b66b37c09430a810ea9a668758d79e99922904ac7183cacb2b20b041c84
@@ -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'
@@ -6,8 +6,8 @@ module Mustermann
6
6
  # @!visibility private
7
7
  module Highlighter
8
8
  # Used to generate highlighting rules on the fly.
9
- # @see {Mustermann::Shell#highlighter}
10
- # @see {Mustermann::Simple#highlighter}
9
+ # @see Mustermann::Shell#highlighter
10
+ # @see Mustermann::Simple#highlighter}
11
11
  # @!visibility private
12
12
  class AdHoc
13
13
  # @!visibility private
@@ -27,8 +27,8 @@ module Mustermann
27
27
  end
28
28
 
29
29
  # Used to generate highlighting rules on the fly.
30
- # @see {Mustermann::Shell#highlighter}
31
- # @see {Mustermann::Simple#highlighter}
30
+ # @see Mustermann::Shell#highlighter
31
+ # @see Mustermann::Simple#highlighter
32
32
  # @!visibility private
33
33
  def create(&block)
34
34
  Class.new(AdHoc, &block)
@@ -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,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustermann-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  - Zachary Scott
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-03 00:00:00.000000000 Z
12
+ date: 2022-07-19 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.1
20
+ version: 2.0.1
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.1
27
+ version: 2.0.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: hansi
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +101,7 @@ homepage: https://github.com/sinatra/mustermann
101
101
  licenses:
102
102
  - MIT
103
103
  metadata: {}
104
- post_install_message:
104
+ post_install_message:
105
105
  rdoc_options: []
106
106
  require_paths:
107
107
  - lib
@@ -116,9 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.7.3
121
- signing_key:
119
+ rubygems_version: 3.2.22
120
+ signing_key:
122
121
  specification_version: 4
123
122
  summary: Collection of extensions for Mustermann
124
123
  test_files: