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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbb7fb563aa44a7d916ef48ccd2b5e865ced0776ce36e5c238fddaf3c2dd61ac
4
- data.tar.gz: 487913925a727a1e20fa4651ffc3a3af669f3ba094655bb232c39dde6b92b4e2
3
+ metadata.gz: a9c09d989cf664f6fb54d70d6d94c8faed0174d1123ff510999650185d465be0
4
+ data.tar.gz: 51473be1f440a3e7ac4d3542be23d0061c283b7d645be197fba0f0f10b3e7bcb
5
5
  SHA512:
6
- metadata.gz: 979411f7682a574f9743ea7129bbf826d9c11657b97c2a9a95e9e9d066d530b99f95ffc228366f09fc8f86db3ec7596d4870bdab33de55aca094ef6ebef3d7ff
7
- data.tar.gz: dfd514fdfc7fd31dfddb4886545d2b763b1c53bea7b2eeed9a95b88274953f5996c5f606b180f5a783e5bb32e24a043903101315bc9de0b8d231bf89ac2f38fc
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
@@ -10,8 +10,8 @@ module Expressir
10
10
  @model = model
11
11
  @selected_schemas = selected_schemas
12
12
  @options = options
13
- initialize_identifier(@model, @options)
14
- super
13
+ initialize_identifier(@model)
14
+ super(model)
15
15
  end
16
16
 
17
17
  def file
@@ -5,9 +5,8 @@ require_relative "declarations/remark_item_drop"
5
5
  module Expressir
6
6
  module Liquid
7
7
  module IdentifierDrop
8
- def initialize_identifier(model, options = {})
8
+ def initialize_identifier(model)
9
9
  @model = model
10
- @options = options
11
10
  end
12
11
 
13
12
  def id
@@ -3,10 +3,8 @@
3
3
  module Expressir
4
4
  module Liquid
5
5
  class ModelElementDrop < ::Liquid::Drop
6
- def initialize(model, selected_schemas: nil, options: {}) # rubocop:disable Lint/MissingSuper
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
@@ -9,7 +9,7 @@ module Expressir
9
9
  @model = model
10
10
  @selected_schemas = selected_schemas
11
11
  @options = options
12
- super
12
+ super(model)
13
13
  end
14
14
 
15
15
  def schemas
@@ -1,3 +1,3 @@
1
1
  module Expressir
2
- VERSION = "2.1.5".freeze
2
+ VERSION = "2.1.6".freeze
3
3
  end
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.5
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-05 00:00:00.000000000 Z
11
+ date: 2024-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid