expressir 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/expressir/express/express_remarks_decorator.rb +0 -22
- data/lib/expressir/liquid/declarations/schema_drop.rb +2 -2
- data/lib/expressir/liquid/identifier_drop.rb +1 -2
- data/lib/expressir/liquid/model_element_drop.rb +1 -3
- data/lib/expressir/liquid/repository_drop.rb +1 -1
- data/lib/expressir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9c09d989cf664f6fb54d70d6d94c8faed0174d1123ff510999650185d465be0
|
4
|
+
data.tar.gz: 51473be1f440a3e7ac4d3542be23d0061c283b7d645be197fba0f0f10b3e7bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26fe94a7dce80fdce7103dcd92b7498e6cb777de874f9449b88035152115c11cf4bab70c9720d14c22070517a7378b9d77034cb4e76e3eed29a16e21257ddbe7
|
7
|
+
data.tar.gz: 7197262c7eba33aa9272bd427f1ba392a4e71da2eb930ce2867e9693172efc98916cd4b00029c7a2d40467226fedb8c38313b54d3d7373e925fbbe90efb446ff
|
@@ -16,9 +16,6 @@ module Expressir
|
|
16
16
|
|
17
17
|
def call
|
18
18
|
result = remark
|
19
|
-
if options["leveloffset"]
|
20
|
-
result = process_remark_offsets(result, options["leveloffset"].to_i)
|
21
|
-
end
|
22
19
|
if options["relative_path_prefix"]
|
23
20
|
result = update_relative_paths(result,
|
24
21
|
options["relative_path_prefix"])
|
@@ -52,25 +49,6 @@ module Expressir
|
|
52
49
|
"#{$1}#{$2}#{full_path}#{$4}"
|
53
50
|
end
|
54
51
|
end
|
55
|
-
|
56
|
-
def process_remark_offsets(string, offset)
|
57
|
-
string
|
58
|
-
.split("\n")
|
59
|
-
.map do |line|
|
60
|
-
if line.match?(/^=/)
|
61
|
-
set_string_offsets(line, offset)
|
62
|
-
else
|
63
|
-
line
|
64
|
-
end
|
65
|
-
end
|
66
|
-
.join("\n")
|
67
|
-
end
|
68
|
-
|
69
|
-
def set_string_offsets(string, offset)
|
70
|
-
return "#{'=' * offset}#{string}" if offset.positive?
|
71
|
-
|
72
|
-
string.gsub(/^={#{offset * -1}}/, "")
|
73
|
-
end
|
74
52
|
end
|
75
53
|
end
|
76
54
|
end
|
@@ -3,10 +3,8 @@
|
|
3
3
|
module Expressir
|
4
4
|
module Liquid
|
5
5
|
class ModelElementDrop < ::Liquid::Drop
|
6
|
-
def initialize(model
|
6
|
+
def initialize(model) # rubocop:disable Lint/MissingSuper
|
7
7
|
@model = model
|
8
|
-
@selected_schemas = selected_schemas
|
9
|
-
@options = options
|
10
8
|
end
|
11
9
|
|
12
10
|
def _class
|
data/lib/expressir/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expressir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|