fbe 0.1.0 → 0.2.0
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 +4 -4
- data/.rubocop.yml +2 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +29 -27
- data/REUSE.toml +7 -2
- data/fbe.gemspec +1 -1
- data/lib/fbe/award.rb +6 -16
- data/lib/fbe/iterate.rb +1 -1
- data/lib/fbe.rb +1 -1
- data/rules/basic.fe +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44dddb35ca02d476dd5dfe586952118aa9f3a4fa5387c1daf272d26c168b09bf
|
4
|
+
data.tar.gz: 0bf256a95f4f3cfa1fed6a131d7b247e2efb3ffe47466877ec0aad7d203cba12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c629481c01b322d26dbb23ad9831e0274a4c9abc4246e3c64311ec54885ba52b1b751fd496b877a7e5fe9bd5ef54da8ff92b4ba0b02cc77b676677a34b381878
|
7
|
+
data.tar.gz: 5811f6cc833dafcfb9904f094b2fa85b5c56af6b52650a68c25d03050b127fa3a106302093a79b6c592d6c71f76be9ca139cb9808a0cdcf121fd80158bb13bd3
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,16 +6,16 @@
|
|
6
6
|
source 'https://rubygems.org'
|
7
7
|
gemspec
|
8
8
|
|
9
|
-
gem 'minitest', '5.25.
|
9
|
+
gem 'minitest', '5.25.5', require: false
|
10
10
|
gem 'minitest-reporters', '>=1.7', require: false
|
11
11
|
gem 'rake', '>=13', require: false
|
12
12
|
gem 'rspec-rails', '>0', require: false
|
13
|
-
gem 'rubocop', '1.73.
|
13
|
+
gem 'rubocop', '1.73.2', require: false
|
14
14
|
gem 'rubocop-minitest', '>0', require: false
|
15
15
|
gem 'rubocop-performance', '>0', require: false
|
16
16
|
gem 'rubocop-rake', '>0', require: false
|
17
17
|
gem 'rubocop-rspec', '>0', require: false
|
18
18
|
gem 'simplecov', '0.22.0', require: false
|
19
19
|
gem 'simplecov-cobertura', '2.1.0', require: false
|
20
|
-
gem 'webmock', '3.25.
|
20
|
+
gem 'webmock', '3.25.1', require: false
|
21
21
|
gem 'yard', '0.9.37', require: false
|
data/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@ PATH
|
|
5
5
|
backtrace (~> 0)
|
6
6
|
baza.rb (~> 0)
|
7
7
|
decoor (~> 0)
|
8
|
-
factbase (>= 0.
|
8
|
+
factbase (>= 0.9.1)
|
9
9
|
faraday (~> 2)
|
10
10
|
faraday-http-cache (~> 2)
|
11
11
|
faraday-multipart (~> 1)
|
@@ -22,9 +22,9 @@ PATH
|
|
22
22
|
GEM
|
23
23
|
remote: https://rubygems.org/
|
24
24
|
specs:
|
25
|
-
actionpack (8.0.
|
26
|
-
actionview (= 8.0.
|
27
|
-
activesupport (= 8.0.
|
25
|
+
actionpack (8.0.2)
|
26
|
+
actionview (= 8.0.2)
|
27
|
+
activesupport (= 8.0.2)
|
28
28
|
nokogiri (>= 1.8.5)
|
29
29
|
rack (>= 2.2.4)
|
30
30
|
rack-session (>= 1.0.1)
|
@@ -32,13 +32,13 @@ GEM
|
|
32
32
|
rails-dom-testing (~> 2.2)
|
33
33
|
rails-html-sanitizer (~> 1.6)
|
34
34
|
useragent (~> 0.16)
|
35
|
-
actionview (8.0.
|
36
|
-
activesupport (= 8.0.
|
35
|
+
actionview (8.0.2)
|
36
|
+
activesupport (= 8.0.2)
|
37
37
|
builder (~> 3.1)
|
38
38
|
erubi (~> 1.11)
|
39
39
|
rails-dom-testing (~> 2.2)
|
40
40
|
rails-html-sanitizer (~> 1.6)
|
41
|
-
activesupport (8.0.
|
41
|
+
activesupport (8.0.2)
|
42
42
|
base64
|
43
43
|
benchmark (>= 0.3)
|
44
44
|
bigdecimal
|
@@ -89,14 +89,14 @@ GEM
|
|
89
89
|
erubi (1.13.1)
|
90
90
|
ethon (0.16.0)
|
91
91
|
ffi (>= 1.15.0)
|
92
|
-
factbase (0.
|
93
|
-
backtrace (
|
94
|
-
decoor (
|
92
|
+
factbase (0.9.1)
|
93
|
+
backtrace (>= 0.4.0)
|
94
|
+
decoor (>= 0.0.1)
|
95
95
|
json (~> 2.7)
|
96
|
-
loog (
|
96
|
+
loog (>= 0.6.0)
|
97
97
|
nokogiri (~> 1.10)
|
98
|
-
others (
|
99
|
-
tago (
|
98
|
+
others (>= 0.0.3)
|
99
|
+
tago (>= 0.0.2)
|
100
100
|
yaml (~> 0.3)
|
101
101
|
faraday (2.12.2)
|
102
102
|
faraday-net_http (>= 2.0, < 3.5)
|
@@ -117,7 +117,7 @@ GEM
|
|
117
117
|
fiber-storage (1.0.0)
|
118
118
|
gli (2.22.2)
|
119
119
|
ostruct
|
120
|
-
graphql (2.4.
|
120
|
+
graphql (2.4.13)
|
121
121
|
base64
|
122
122
|
fiber-storage
|
123
123
|
logger
|
@@ -133,13 +133,13 @@ GEM
|
|
133
133
|
rdoc (>= 4.0.0)
|
134
134
|
reline (>= 0.4.2)
|
135
135
|
iri (0.10.0)
|
136
|
-
json (2.10.
|
137
|
-
judges (0.
|
136
|
+
json (2.10.2)
|
137
|
+
judges (0.36.3)
|
138
138
|
backtrace (~> 0)
|
139
139
|
baza.rb (~> 0)
|
140
140
|
concurrent-ruby (~> 1.2)
|
141
141
|
elapsed (~> 0)
|
142
|
-
factbase (>= 0.
|
142
|
+
factbase (>= 0.9.1)
|
143
143
|
gli (~> 2.21)
|
144
144
|
iri (~> 0)
|
145
145
|
loog (~> 0)
|
@@ -149,6 +149,7 @@ GEM
|
|
149
149
|
retries (~> 0)
|
150
150
|
tago (~> 0)
|
151
151
|
timeout (~> 0)
|
152
|
+
total (~> 0)
|
152
153
|
typhoeus (~> 1.3)
|
153
154
|
language_server-protocol (3.17.0.4)
|
154
155
|
lint_roller (1.1.0)
|
@@ -158,7 +159,7 @@ GEM
|
|
158
159
|
crass (~> 1.0.2)
|
159
160
|
nokogiri (>= 1.12.0)
|
160
161
|
loog (0.6.0)
|
161
|
-
minitest (5.25.
|
162
|
+
minitest (5.25.5)
|
162
163
|
minitest-reporters (1.7.1)
|
163
164
|
ansi
|
164
165
|
builder
|
@@ -194,7 +195,7 @@ GEM
|
|
194
195
|
stringio
|
195
196
|
public_suffix (6.0.1)
|
196
197
|
racc (1.8.1)
|
197
|
-
rack (3.1.
|
198
|
+
rack (3.1.12)
|
198
199
|
rack-session (2.1.0)
|
199
200
|
base64 (>= 0.1.0)
|
200
201
|
rack (>= 3.0.0)
|
@@ -209,9 +210,9 @@ GEM
|
|
209
210
|
rails-html-sanitizer (1.6.2)
|
210
211
|
loofah (~> 2.21)
|
211
212
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
212
|
-
railties (8.0.
|
213
|
-
actionpack (= 8.0.
|
214
|
-
activesupport (= 8.0.
|
213
|
+
railties (8.0.2)
|
214
|
+
actionpack (= 8.0.2)
|
215
|
+
activesupport (= 8.0.2)
|
215
216
|
irb (~> 1.13)
|
216
217
|
rackup (>= 1.0.0)
|
217
218
|
rake (>= 12.2)
|
@@ -243,7 +244,7 @@ GEM
|
|
243
244
|
rspec-mocks (~> 3.13)
|
244
245
|
rspec-support (~> 3.13)
|
245
246
|
rspec-support (3.13.2)
|
246
|
-
rubocop (1.73.
|
247
|
+
rubocop (1.73.2)
|
247
248
|
json (~> 2.3)
|
248
249
|
language_server-protocol (~> 3.17.0.2)
|
249
250
|
lint_roller (~> 1.1.0)
|
@@ -288,6 +289,7 @@ GEM
|
|
288
289
|
tago (0.0.2)
|
289
290
|
thor (1.3.2)
|
290
291
|
timeout (0.4.3)
|
292
|
+
total (0.4.1)
|
291
293
|
typhoeus (1.4.1)
|
292
294
|
ethon (>= 0.9.0)
|
293
295
|
tzinfo (2.0.6)
|
@@ -300,7 +302,7 @@ GEM
|
|
300
302
|
verbose (0.0.2)
|
301
303
|
loog (~> 0.2)
|
302
304
|
tago (~> 0.0)
|
303
|
-
webmock (3.25.
|
305
|
+
webmock (3.25.1)
|
304
306
|
addressable (>= 2.8.0)
|
305
307
|
crack (>= 0.3.2)
|
306
308
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -319,18 +321,18 @@ PLATFORMS
|
|
319
321
|
|
320
322
|
DEPENDENCIES
|
321
323
|
fbe!
|
322
|
-
minitest (= 5.25.
|
324
|
+
minitest (= 5.25.5)
|
323
325
|
minitest-reporters (>= 1.7)
|
324
326
|
rake (>= 13)
|
325
327
|
rspec-rails (> 0)
|
326
|
-
rubocop (= 1.73.
|
328
|
+
rubocop (= 1.73.2)
|
327
329
|
rubocop-minitest (> 0)
|
328
330
|
rubocop-performance (> 0)
|
329
331
|
rubocop-rake (> 0)
|
330
332
|
rubocop-rspec (> 0)
|
331
333
|
simplecov (= 0.22.0)
|
332
334
|
simplecov-cobertura (= 2.1.0)
|
333
|
-
webmock (= 3.25.
|
335
|
+
webmock (= 3.25.1)
|
334
336
|
yard (= 0.9.37)
|
335
337
|
|
336
338
|
BUNDLED WITH
|
data/REUSE.toml
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
version = 1
|
5
5
|
[[annotations]]
|
6
6
|
path = [
|
7
|
+
"**.json",
|
8
|
+
"**.md",
|
9
|
+
"**.txt",
|
7
10
|
"**/*.csv",
|
8
11
|
"**/*.fe",
|
9
12
|
"**/*.jpg",
|
@@ -15,13 +18,15 @@ path = [
|
|
15
18
|
"**/*.svg",
|
16
19
|
"**/*.txt",
|
17
20
|
"**/*.vm",
|
21
|
+
"**/.DS_Store",
|
18
22
|
"**/.gitignore",
|
23
|
+
"**/.pdd",
|
19
24
|
"**/CNAME",
|
25
|
+
"**/Gemfile.lock",
|
26
|
+
".DS_Store",
|
20
27
|
".gitattributes",
|
21
28
|
".gitignore",
|
22
|
-
".gitleaksignore",
|
23
29
|
".pdd",
|
24
|
-
".xcop",
|
25
30
|
"Gemfile.lock",
|
26
31
|
"README.md",
|
27
32
|
"renovate.json",
|
data/fbe.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_dependency 'backtrace', '~>0'
|
26
26
|
s.add_dependency 'baza.rb', '~>0'
|
27
27
|
s.add_dependency 'decoor', '~>0'
|
28
|
-
s.add_dependency 'factbase', '>=0.
|
28
|
+
s.add_dependency 'factbase', '>=0.9.1'
|
29
29
|
s.add_dependency 'faraday', '~>2'
|
30
30
|
s.add_dependency 'faraday-http-cache', '~>2'
|
31
31
|
s.add_dependency 'faraday-multipart', '~>1'
|
data/lib/fbe/award.rb
CHANGED
@@ -41,7 +41,8 @@ class Fbe::Award
|
|
41
41
|
# @param [Hash] vars Hash of variables
|
42
42
|
# @return [Fbe::Award::Bill] The bill
|
43
43
|
def bill(vars = {})
|
44
|
-
term = Factbase::Syntax.new(
|
44
|
+
term = Factbase::Syntax.new(@query).to_term
|
45
|
+
term.redress!(Fbe::Award::BTerm)
|
45
46
|
bill = Bill.new
|
46
47
|
vars.each { |k, v| bill.set(k, v) }
|
47
48
|
term.bill_to(bill)
|
@@ -51,20 +52,15 @@ class Fbe::Award
|
|
51
52
|
# Build a bylaw object from this award query.
|
52
53
|
# @return [Fbe::Award::Bylaw] The bylaw
|
53
54
|
def bylaw
|
54
|
-
term = Factbase::Syntax.new(
|
55
|
+
term = Factbase::Syntax.new(@query).to_term
|
56
|
+
term.redress!(Fbe::Award::PTerm)
|
55
57
|
bylaw = Bylaw.new
|
56
58
|
term.publish_to(bylaw)
|
57
59
|
bylaw
|
58
60
|
end
|
59
61
|
|
60
62
|
# A term for bill.
|
61
|
-
|
62
|
-
def initialize(_fb, operator, operands)
|
63
|
-
super(nil, nil, nil)
|
64
|
-
@op = operator
|
65
|
-
@operands = operands
|
66
|
-
end
|
67
|
-
|
63
|
+
module BTerm
|
68
64
|
def to_s
|
69
65
|
"(#{@op} #{@operands.join(' ')})"
|
70
66
|
end
|
@@ -164,13 +160,7 @@ class Fbe::Award
|
|
164
160
|
end
|
165
161
|
|
166
162
|
# A term for bylaw.
|
167
|
-
|
168
|
-
def initialize(_fb, operator, operands)
|
169
|
-
super(nil, nil, nil)
|
170
|
-
@op = operator
|
171
|
-
@operands = operands
|
172
|
-
end
|
173
|
-
|
163
|
+
module PTerm
|
174
164
|
def to_s
|
175
165
|
case @op
|
176
166
|
when :total
|
data/lib/fbe/iterate.rb
CHANGED
@@ -126,7 +126,7 @@ class Fbe::Iterate
|
|
126
126
|
).one
|
127
127
|
@fb.query("(and (eq what '#{@label}') (eq where 'github') (eq repository #{rid}))").delete!
|
128
128
|
before = before.nil? ? @since : before.first
|
129
|
-
nxt = @fb.query(@query).one(before:, repository: rid)
|
129
|
+
nxt = @fb.query(@query).one(@fb, before:, repository: rid)
|
130
130
|
after =
|
131
131
|
if nxt.nil?
|
132
132
|
@loog.debug("Next element after ##{before} not suggested, re-starting from ##{@since}: #{@query}")
|
data/lib/fbe.rb
CHANGED
data/rules/basic.fe
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: backtrace
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.
|
60
|
+
version: 0.9.1
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0.
|
67
|
+
version: 0.9.1
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: faraday
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|