expressir 1.3.0.pre.2-x86_64-linux-gnu → 1.3.0-x86_64-linux-gnu
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/.github/workflows/rake.yml +15 -12
- data/.github/workflows/release.yml +5 -11
- data/Rakefile +1 -1
- data/lib/expressir/express/2.7/express_parser.so +0 -0
- data/lib/expressir/express/3.0/express_parser.so +0 -0
- data/lib/expressir/express/3.1/express_parser.so +0 -0
- data/lib/expressir/express/3.2/express_parser.so +0 -0
- data/lib/expressir/express/parser.rb +6 -1
- data/lib/expressir/express/visitor.rb +8 -1
- data/lib/expressir/version.rb +1 -1
- data/rakelib/cross-ruby.rake +4 -3
- metadata +4 -5
- data/lib/expressir/express/extension.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 322f5d1939fa9d0bfe73584732197f178563846830de96316b31fa97030a4669
|
4
|
+
data.tar.gz: 5ab7b6a64f87f5d99de44419e961505185a6f3e7b3947761a78b8c4de764b7bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d348e525756917d897f0f1d1e31b64f8cb328f1773abb1a44f197383d7fc127e3b0a8e52079145e47c902f314d99cdc8a462c8ec00d6c3e87edd99be0d95b1f4
|
7
|
+
data.tar.gz: af51fba5cdb6db57b94839e020823dc8c24dc5c5934642f8a47174121ad1f6b230e6ad9b15f10256c319aaa5267a7688309090b20a18469739f3015ad24156c8
|
data/.github/workflows/rake.yml
CHANGED
@@ -7,7 +7,6 @@ on:
|
|
7
7
|
- 'docs/**'
|
8
8
|
- '**.adoc'
|
9
9
|
- '**.md'
|
10
|
-
- .github/workflows/alpine.yml
|
11
10
|
- .github/workflows/release.yml
|
12
11
|
pull_request:
|
13
12
|
workflow_dispatch:
|
@@ -69,7 +68,13 @@ jobs:
|
|
69
68
|
with:
|
70
69
|
ruby-version: ${{ matrix.ruby }}
|
71
70
|
bundler: ${{ env.BUNDLER_VER }}
|
72
|
-
bundler
|
71
|
+
# Rice gem has issues with bundler cache
|
72
|
+
# more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126
|
73
|
+
# but it is not the only issue
|
74
|
+
bundler-cache: false
|
75
|
+
|
76
|
+
- name: Bundle
|
77
|
+
run: bundle install --jobs 4 --retry 3
|
73
78
|
|
74
79
|
- name: Process cache
|
75
80
|
uses: actions/cache@v3
|
@@ -99,10 +104,9 @@ jobs:
|
|
99
104
|
- name: Setup Ruby
|
100
105
|
uses: ruby/setup-ruby@master
|
101
106
|
with:
|
102
|
-
ruby-version: '3.
|
103
|
-
# bundler-cache: true important to not use cache because it leads to "cannot find -lrice"
|
104
|
-
# more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126
|
107
|
+
ruby-version: '3.1'
|
105
108
|
bundler: ${{ env.BUNDLER_VER }}
|
109
|
+
bundler-cache: false
|
106
110
|
|
107
111
|
- name: Bundle
|
108
112
|
run: bundle install --jobs 4 --retry 3
|
@@ -131,9 +135,8 @@ jobs:
|
|
131
135
|
- name: Setup Ruby
|
132
136
|
uses: ruby/setup-ruby@master
|
133
137
|
with:
|
134
|
-
ruby-version: '3.
|
135
|
-
|
136
|
-
# more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126
|
138
|
+
ruby-version: '3.1'
|
139
|
+
bundler-cache: false
|
137
140
|
bundler: ${{ env.BUNDLER_VER }}
|
138
141
|
|
139
142
|
- name: Bundle
|
@@ -170,7 +173,7 @@ jobs:
|
|
170
173
|
uses: ruby/setup-ruby@master
|
171
174
|
with:
|
172
175
|
ruby-version: ${{ matrix.ruby }}
|
173
|
-
bundler-cache:
|
176
|
+
bundler-cache: false
|
174
177
|
bundler: ${{ env.BUNDLER_VER }}
|
175
178
|
|
176
179
|
- name: Checkout
|
@@ -209,7 +212,7 @@ jobs:
|
|
209
212
|
uses: ruby/setup-ruby@master
|
210
213
|
with:
|
211
214
|
ruby-version: ${{ matrix.ruby }}
|
212
|
-
bundler-cache:
|
215
|
+
bundler-cache: false
|
213
216
|
bundler: ${{ env.BUNDLER_VER }}
|
214
217
|
|
215
218
|
- name: Checkout
|
@@ -247,7 +250,7 @@ jobs:
|
|
247
250
|
uses: ruby/setup-ruby@master
|
248
251
|
with:
|
249
252
|
ruby-version: ${{ matrix.ruby }}
|
250
|
-
bundler-cache:
|
253
|
+
bundler-cache: false
|
251
254
|
bundler: ${{ env.BUNDLER_VER }}
|
252
255
|
|
253
256
|
- name: Checkout
|
@@ -285,7 +288,7 @@ jobs:
|
|
285
288
|
uses: ruby/setup-ruby@master
|
286
289
|
with:
|
287
290
|
ruby-version: ${{ matrix.ruby }}
|
288
|
-
bundler-cache:
|
291
|
+
bundler-cache: false
|
289
292
|
bundler: ${{ env.BUNDLER_VER }}
|
290
293
|
|
291
294
|
- name: Checkout
|
@@ -46,6 +46,7 @@ jobs:
|
|
46
46
|
- uses: actions/checkout@v4
|
47
47
|
with:
|
48
48
|
submodules: recursive
|
49
|
+
ref: main # https://github.com/actions/checkout/issues/439#issuecomment-830862188
|
49
50
|
|
50
51
|
- uses: ruby/setup-ruby@master
|
51
52
|
with:
|
@@ -129,6 +130,7 @@ jobs:
|
|
129
130
|
chmod 0600 ~/.gem/credentials
|
130
131
|
gem signin
|
131
132
|
for gem in pkg/*.gem; do gem push $gem -V; done
|
133
|
+
sleep(5)
|
132
134
|
|
133
135
|
verify:
|
134
136
|
name: Verify published gem on ${{ matrix.os }}
|
@@ -150,19 +152,15 @@ jobs:
|
|
150
152
|
uses: actions/download-artifact@v3
|
151
153
|
with:
|
152
154
|
name: version
|
153
|
-
path: version
|
154
155
|
|
155
156
|
- name: Install gem
|
156
157
|
run: gem install expressir -v $(cat version)
|
157
158
|
|
158
159
|
- name: Verify
|
159
|
-
run:
|
160
|
-
cd $(ruby -e "puts RbConfig::TOPDIR + '\/lib\/ruby\/gems\/' + RbConfig::CONFIG['ruby_version'] + '\/gems\/expressir*'")
|
161
|
-
ruby bin/rspec
|
162
|
-
cat .rspec_status || echo ".rspec_status was not found"
|
160
|
+
run: expressir version
|
163
161
|
|
164
162
|
verify-alpine:
|
165
|
-
name: Verify published gem on
|
163
|
+
name: Verify published gem on alpine
|
166
164
|
needs: publish
|
167
165
|
runs-on: ubuntu-latest
|
168
166
|
container:
|
@@ -175,13 +173,9 @@ jobs:
|
|
175
173
|
uses: actions/download-artifact@v3
|
176
174
|
with:
|
177
175
|
name: version
|
178
|
-
path: version
|
179
176
|
|
180
177
|
- name: Install gem
|
181
178
|
run: gem install expressir -v $(cat version)
|
182
179
|
|
183
180
|
- name: Verify
|
184
|
-
run:
|
185
|
-
cd $(ruby -e "puts RbConfig::TOPDIR + '\/lib\/ruby\/gems\/' + RbConfig::CONFIG['ruby_version'] + '\/gems\/expressir*'")
|
186
|
-
ruby bin/rspec
|
187
|
-
cat .rspec_status || echo ".rspec_status was not found"
|
181
|
+
run: expressir version
|
data/Rakefile
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
RUBY_VERSION =~ /(\d+\.\d+)/
|
3
|
+
require_relative "#{$1}/express_parser"
|
4
|
+
rescue LoadError
|
5
|
+
require_relative "express_parser"
|
6
|
+
end
|
2
7
|
require 'expressir/express/visitor'
|
3
8
|
require 'expressir/express/resolve_references_model_visitor'
|
4
9
|
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
RUBY_VERSION =~ /(\d+\.\d+)/
|
3
|
+
require_relative "#{$1}/express_parser"
|
4
|
+
rescue LoadError
|
5
|
+
require_relative "express_parser"
|
6
|
+
end
|
2
7
|
require "expressir/model"
|
3
8
|
require "set"
|
4
9
|
|
@@ -26,6 +31,8 @@ require "set"
|
|
26
31
|
# - prevents segfault in ANTLR4 C++ runtime, not sure why they are caused
|
27
32
|
# - e.g. see visit_schema_decl
|
28
33
|
|
34
|
+
require 'objspace'
|
35
|
+
|
29
36
|
module Expressir
|
30
37
|
module Express
|
31
38
|
class Visitor < ::ExpressParser::Visitor
|
data/lib/expressir/version.rb
CHANGED
data/rakelib/cross-ruby.rake
CHANGED
@@ -335,15 +335,16 @@ def pre_req(plat)
|
|
335
335
|
end
|
336
336
|
|
337
337
|
namespace "gem" do
|
338
|
-
CROSS_RUBIES.find_all { |cr| cr.windows? || cr.linux_gnu? || cr.darwin? }
|
338
|
+
CROSS_RUBIES.find_all { |cr| cr.windows? || cr.linux_gnu? || cr.darwin? }
|
339
|
+
.map { |cr| { platform: cr.platform, tag: cr.tag } }
|
339
340
|
.uniq { |hash| hash[:platform] }.each do |hash|
|
340
341
|
plat = hash[:platform]
|
341
342
|
tag = hash[:tag]
|
343
|
+
|
342
344
|
desc "build native gem for #{plat} platform"
|
343
345
|
task plat do
|
344
346
|
RakeCompilerDock.sh <<~RCD, platform: tag
|
345
|
-
#{pre_req(plat)} &&
|
346
|
-
gem install bundler --no-document &&
|
347
|
+
#{pre_req(plat)} && gem install bundler --no-document &&
|
347
348
|
bundle && bundle exec rake gem:#{plat}:builder MAKE="nice make -j`nproc`"
|
348
349
|
RCD
|
349
350
|
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: 1.3.0
|
4
|
+
version: 1.3.0
|
5
5
|
platform: x86_64-linux-gnu
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -245,7 +245,6 @@ files:
|
|
245
245
|
- lib/expressir/express/3.1/express_parser.so
|
246
246
|
- lib/expressir/express/3.2/express_parser.so
|
247
247
|
- lib/expressir/express/cache.rb
|
248
|
-
- lib/expressir/express/extension.rb
|
249
248
|
- lib/expressir/express/formatter.rb
|
250
249
|
- lib/expressir/express/hyperlink_formatter.rb
|
251
250
|
- lib/expressir/express/model_visitor.rb
|
@@ -380,9 +379,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
380
379
|
version: 3.3.dev
|
381
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
382
381
|
requirements:
|
383
|
-
- - "
|
382
|
+
- - ">="
|
384
383
|
- !ruby/object:Gem::Version
|
385
|
-
version:
|
384
|
+
version: '0'
|
386
385
|
requirements: []
|
387
386
|
rubygems_version: 3.3.26
|
388
387
|
signing_key:
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
begin
|
4
|
-
# native precompiled gems package shared libraries in <gem_dir>/lib/nokogiri/<ruby_version>
|
5
|
-
::RUBY_VERSION =~ /(\d+\.\d+)/
|
6
|
-
require_relative "#{Regexp.last_match(1)}/express_parser"
|
7
|
-
rescue LoadError => e
|
8
|
-
# if /musl/.match?(RUBY_PLATFORM)
|
9
|
-
# warn(<<~EOM)
|
10
|
-
#
|
11
|
-
# ERROR: It looks like you're trying to use Expressir as a precompiled native gem on a musl system.
|
12
|
-
#
|
13
|
-
# #{e.message}
|
14
|
-
#
|
15
|
-
# If that's the case, then please install Expressir via the `ruby` platform gem:
|
16
|
-
# gem install expressir --platform=ruby
|
17
|
-
# or:
|
18
|
-
# bundle config set force_ruby_platform true
|
19
|
-
#
|
20
|
-
#
|
21
|
-
# EOM
|
22
|
-
# raise e
|
23
|
-
# end
|
24
|
-
|
25
|
-
# use "require" instead of "require_relative" because non-native gems will place C extension files
|
26
|
-
# in Gem::BasicSpecification#extension_dir after compilation (during normal installation), which
|
27
|
-
# is in $LOAD_PATH but not necessarily relative to this file
|
28
|
-
require "expressir/express/express_parser"
|
29
|
-
end
|
30
|
-
|