fbe 0.43.1 → 0.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f86b0b823bccdb5e723fbdecd310066acc0cdb215773075a643f21f4cb96b539
4
- data.tar.gz: a0941fa478e756ab1971bf483033d9cd77378ffff033ba53bebc810e7e7e91d9
3
+ metadata.gz: 382fab73e0c2ab5fbf2f219bf9d40d6cf46e748f0ebef046c8497b1850dcf015
4
+ data.tar.gz: 24203f3894c023ede33c9306b03bb416d5a94c6fbc35aaf75600e165f56fcee5
5
5
  SHA512:
6
- metadata.gz: e8ee05be4225d796f89567d8e8c15d956d6d1b2fcbb3cafbd1ff603d88a1b4be2bd5f4a1f397984a5202cacc8bfb336ebdac7eb51837fd507a5d6f87e70804e9
7
- data.tar.gz: a5bc81d808a2475f74ac46801a5d472ca752716eabb210815b8aa767029bcb5d172b1c5ca8954c2aed036eb509659b0950368f1aa1ca8bba2191568cb5bb4f3f
6
+ metadata.gz: 86983802b65da05db81719d66afaa231b9410ddf4cd86846dc59bb5a955b803306e9bb0f9f94fc238ba10f55f31e4d8b35ef6fad7c71dea693a68fc47978a41b
7
+ data.tar.gz: d0ac651c8ec8a4647eae3d80f8f5274a21343a36375aed8037b134ff284a04df24e53a927f45ea5dceff278d40c6bb9e5e6dc16e5a87460cfcc8b4ce8d27f59d
@@ -20,4 +20,4 @@ jobs:
20
20
  runs-on: ubuntu-24.04
21
21
  steps:
22
22
  - uses: actions/checkout@v6
23
- - uses: DavidAnson/markdownlint-cli2-action@v21.0.0
23
+ - uses: DavidAnson/markdownlint-cli2-action@v22.0.0
data/lib/fbe/pmp.rb CHANGED
@@ -46,13 +46,13 @@ def Fbe.pmp(fb: Fbe.fb, global: $global, options: $options, loog: $loog)
46
46
  xml = Nokogiri::XML(File.read(File.join(__dir__, '../../assets/pmp.xml')))
47
47
  pmpv =
48
48
  Class.new(SimpleDelegator) do
49
- def initialize(value, dv)
50
- super(value)
51
- @dv = dv
52
- end
49
+ attr_reader :default, :type, :memo
53
50
 
54
- def default
55
- @dv
51
+ def initialize(value, default, type, memo)
52
+ super(value)
53
+ @default = default
54
+ @type = type
55
+ @memo = memo
56
56
  end
57
57
  end
58
58
  Class.new do
@@ -72,18 +72,21 @@ def Fbe.pmp(fb: Fbe.fb, global: $global, options: $options, loog: $loog)
72
72
  f = Fbe.fb(global:, fb:, options:, loog:).query("(and (eq what 'pmp') (eq area '#{area}'))").each.first
73
73
  r = f&.[](param)&.first
74
74
  prop = node.at_xpath("p[name='#{param}']")
75
- dv = nil
75
+ default = nil
76
+ type = nil
77
+ memo = nil
76
78
  if prop
77
- d = prop.at_xpath('default').text
78
- t = prop.at_xpath('type').text
79
- dv =
79
+ default = prop.at_xpath('default').text
80
+ type = prop.at_xpath('type').text
81
+ memo = prop.at_xpath('memo').text
82
+ default =
80
83
  case t
81
- when 'int' then d.to_i
82
- when 'float' then d.to_f
83
- else d
84
+ when 'int' then default.to_i
85
+ when 'float' then default.to_f
86
+ else default
84
87
  end
85
88
  end
86
- pmpv.new(r || dv, dv)
89
+ pmpv.new(r || default, default, type, memo)
87
90
  end
88
91
  end.new
89
92
  end
data/lib/fbe.rb CHANGED
@@ -10,5 +10,5 @@
10
10
  # License:: MIT
11
11
  module Fbe
12
12
  # Current version of the gem (changed by +.rultor.yml+ on every release)
13
- VERSION = '0.43.1' unless const_defined?(:VERSION)
13
+ VERSION = '0.43.2' unless const_defined?(:VERSION)
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.1
4
+ version: 0.43.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko