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 +4 -4
- data/lib/mustermann/visualizer/highlight.rb +0 -1
- data/lib/mustermann/visualizer/highlighter/ad_hoc.rb +2 -2
- data/lib/mustermann/visualizer/highlighter.rb +2 -2
- data/lib/mustermann/visualizer.rb +0 -1
- data/mustermann-contrib.gemspec +0 -1
- data/spec/pattern_extension_spec.rb +4 -2
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d383cca968798c7200df640865480d8f1e179c868b1fb8ed66620de475e39a
|
4
|
+
data.tar.gz: 6a9d8e4095d0f1c5d19ae8bdb41fe4e2295bd4cbae6a60d7d1444773c1542219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c3e77471f697e6d5e09a213747c514b45497618fd960d4dad5ccab71a873b8a5241f73a7740bf4de21f423d4f435b154e734990cb64e3047590dcf9e9759a0
|
7
|
+
data.tar.gz: dc1000fb81f7360f967f47819703daf1b5167e47945b4e5e04c2921ad1c73255cc5e9b66b37c09430a810ea9a668758d79e99922904ac7183cacb2b20b041c84
|
@@ -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
|
10
|
-
# @see
|
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
|
31
|
-
# @see
|
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)
|
data/mustermann-contrib.gemspec
CHANGED
@@ -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)
|
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)
|
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:
|
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:
|
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:
|
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:
|
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
|
-
|
120
|
-
|
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:
|