expressir 1.2.1 → 1.2.3

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: 0d86fbd41de1dfd68f88e96a7ceba97294906c9e939dbc08c21076af58fbda9b
4
- data.tar.gz: 19a699cb3bc9ffda1f358c26a23654086d38c5fed37a698dedb9ac94e7f46361
3
+ metadata.gz: ed22396a4091ea7d3a8566db42a74806abfc53fae2af66bdac4c2a0dc76080cb
4
+ data.tar.gz: 15b525668cbd513ec35e17e3ff73971923db791ecb1bab098a9d085440b8daf7
5
5
  SHA512:
6
- metadata.gz: 4544c2d02aaf02b22e65b4857bab4b471c7e5efcd5a09fee20d1d076abc6d21822e3c62d925ed63e785ea58574aa049416f6afc426b1d1ec4025700f2ef8b4db
7
- data.tar.gz: 8ec68dfb6734ecad313fd54860389b7cf5618734cdaa7b42b8b12ab4ddc092ba5109c15823bf52712d7b565cff12699a99e94c0de310fcf9005f32a30427fc01
6
+ metadata.gz: f2629d400d4d0892e79a3ae66693ae737b01d9234a585ee2ec40bc9be6a15c7de8c28698fefc6d9b78f65d50d730435e74fd3b4ac52b5d573a7b927931ffa4bf
7
+ data.tar.gz: 8956af3892298332b0f4c8b27ca2bbaf1132f199dc6216d7a66f35fcee3d13ad429ff514bc6fecd97acf4b11e0f07547359f335b4f3389b13014b89d83650129
data/.cross_rubies CHANGED
@@ -2,17 +2,20 @@
2
2
  3.1.0:x86_64-w64-mingw32
3
3
  3.1.0:i686-linux-gnu
4
4
  3.1.0:x86_64-linux-gnu
5
+ 3.1.0:aarch64-linux-gnu
5
6
  3.1.0:x86_64-darwin
6
7
  3.1.0:arm64-darwin
7
8
  3.0.0:i686-w64-mingw32
8
9
  3.0.0:x86_64-w64-mingw32
9
10
  3.0.0:i686-linux-gnu
10
11
  3.0.0:x86_64-linux-gnu
12
+ 3.0.0:aarch64-linux-gnu
11
13
  3.0.0:x86_64-darwin
12
14
  3.0.0:arm64-darwin
13
15
  2.7.0:i686-w64-mingw32
14
16
  2.7.0:x86_64-w64-mingw32
15
17
  2.7.0:i686-linux-gnu
16
18
  2.7.0:x86_64-linux-gnu
19
+ 2.7.0:aarch64-linux-gnu
17
20
  2.7.0:x86_64-darwin
18
21
  2.7.0:arm64-darwin
@@ -41,6 +41,7 @@ jobs:
41
41
  - uses: actions/checkout@v2
42
42
  with:
43
43
  submodules: recursive
44
+ ref: main # https://github.com/actions/checkout/issues/439#issuecomment-830862188
44
45
 
45
46
  - uses: ruby/setup-ruby@v1
46
47
  with:
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
1
  [submodule "ext/express-parser/antlr4-upstream"]
2
2
  path = ext/express-parser/antlr4-upstream
3
- url = git://github.com/antlr/antlr4
3
+ url = https://github.com/antlr/antlr4
data/expressir.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Ribose Inc."]
9
9
  spec.email = ["open.source@ribose.com'"]
10
10
 
11
- spec.summary = "ISO EXPRESS parser in Ruby, tools for accessing EXPRESS data models."
12
- spec.description = "ISO EXPRESS parser in Ruby, tools for accessing EXPRESS data models."
11
+ spec.summary = "ISO EXPRESS parser and tools in Ruby."
12
+ spec.description = "Expressir (“EXPRESS in Ruby”) is a Ruby parser for EXPRESS and a set of Ruby tools for accessing ISO EXPRESS data models."
13
13
  spec.homepage = "https://github.com/lutaml/expressir"
14
14
  spec.license = "MIT"
15
15
 
@@ -25,6 +25,8 @@ using namespace std;
25
25
  using namespace Rice;
26
26
  using namespace antlr4;
27
27
 
28
+ Module rb_mExpressParser;
29
+
28
30
  Class rb_cAttributeRefContext;
29
31
  Class rb_cAttributeIdContext;
30
32
  Class rb_cConstantRefContext;
@@ -18134,7 +18136,7 @@ Object ContextProxy::wrapParseTree(tree::ParseTree* node) {
18134
18136
 
18135
18137
  extern "C"
18136
18138
  void Init_express_parser() {
18137
- Module rb_mExpressParser = define_module("ExpressParser");
18139
+ rb_mExpressParser = define_module("ExpressParser");
18138
18140
 
18139
18141
  rb_cToken = define_class_under<Token>(rb_mExpressParser, "Token")
18140
18142
  .define_method("text", &Token::getText)
@@ -40,7 +40,8 @@ if cross_build
40
40
  # workaround for LoadError: 127: The specified procedure could not be found.
41
41
  $DLDFLAGS << " -static -static-libgcc -static-libstdc++"
42
42
  elsif RbConfig::CONFIG['target_os'] =~ /darwin/
43
- $CXXFLAGS << " -mmacosx-version-min=10.14 -Wno-register"
43
+ $CXXFLAGS << " -mmacosx-version-min=10.14 -Wno-register -fno-c++-static-destructors"
44
+ $DLDFLAGS << " -mmacosx-version-min=10.14"
44
45
  end
45
46
  else
46
47
  require 'mkmf-rice'
@@ -1,3 +1,3 @@
1
1
  module Expressir
2
- VERSION = "1.2.1".freeze
2
+ VERSION = "1.2.3".freeze
3
3
  end
@@ -44,6 +44,8 @@ CrossRuby = Struct.new(:version, :host) do
44
44
  "x86-mingw32"
45
45
  when /\Ax86_64.*linux/
46
46
  "x86_64-linux"
47
+ when /\A(arm64|aarch64).*linux/
48
+ "aarch64-linux"
47
49
  when /\Ai[3-6]86.*linux/
48
50
  "x86-linux"
49
51
  when /\Ax86_64-darwin/
@@ -63,6 +65,8 @@ CrossRuby = Struct.new(:version, :host) do
63
65
  "i686-w64-mingw32-"
64
66
  when "x86_64-linux"
65
67
  "x86_64-redhat-linux-"
68
+ when "aarch64-linux"
69
+ "aarch64-redhat-linux-"
66
70
  when "x86-linux"
67
71
  "i686-redhat-linux-"
68
72
  when /x86_64.*darwin/
@@ -82,6 +86,8 @@ CrossRuby = Struct.new(:version, :host) do
82
86
  "pei-i386"
83
87
  when "x86_64-linux"
84
88
  "elf64-x86-64"
89
+ when "aarch64-linux"
90
+ "elf64-arm64"
85
91
  when "x86-linux"
86
92
  "elf32-i386"
87
93
  when "x86_64-darwin"
@@ -245,12 +251,14 @@ def gem_builder(plat)
245
251
  end
246
252
 
247
253
  namespace "gem" do
254
+ REDHAT_PREREQ = "sudo yum install -y git"
255
+ UBUNTU_PREREQ = "sudo apt-get update -y && sudo apt-get install -y automake autoconf libtool build-essential"
248
256
  CROSS_RUBIES.find_all { |cr| cr.windows? || cr.linux? || cr.darwin? }.map(&:platform).uniq.each do |plat|
249
257
  pre_req = case plat
250
258
  when /\linux/
251
- "sudo yum install -y git"
259
+ "if [[ $(awk -F= '/^NAME/{print $2}' /etc/os-release) == '\"Ubuntu\"' ]]; then #{UBUNTU_PREREQ}; else #{REDHAT_PREREQ}; fi"
252
260
  else
253
- "sudo apt-get update -y && sudo apt-get install -y automake autoconf libtool build-essential"
261
+ "#{UBUNTU_PREREQ}"
254
262
  end
255
263
  desc "build native gem for #{plat} platform"
256
264
  task plat do
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.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -192,7 +192,8 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: 1.7.0
195
- description: ISO EXPRESS parser in Ruby, tools for accessing EXPRESS data models.
195
+ description: Expressir (“EXPRESS in Ruby”) is a Ruby parser for EXPRESS and a set
196
+ of Ruby tools for accessing ISO EXPRESS data models.
196
197
  email:
197
198
  - open.source@ribose.com'
198
199
  executables:
@@ -742,8 +743,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
742
743
  - !ruby/object:Gem::Version
743
744
  version: '0'
744
745
  requirements: []
745
- rubygems_version: 3.2.32
746
+ rubygems_version: 3.2.33
746
747
  signing_key:
747
748
  specification_version: 4
748
- summary: ISO EXPRESS parser in Ruby, tools for accessing EXPRESS data models.
749
+ summary: ISO EXPRESS parser and tools in Ruby.
749
750
  test_files: []