expressir 1.1.0 → 1.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/.github/workflows/rake.yml +47 -2
- data/.github/workflows/release.yml +8 -0
- data/.hound.yml +3 -0
- data/.rubocop.yml +6 -506
- data/expressir.gemspec +1 -1
- data/ext/express-parser/express_parser.cpp +4358 -2954
- data/ext/express-parser/extconf.rb +5 -3
- data/lib/expressir/model/repository.rb +3 -5
- data/lib/expressir/version.rb +1 -1
- metadata +5 -4
|
@@ -21,7 +21,7 @@ src_paths = [
|
|
|
21
21
|
if cross_build
|
|
22
22
|
rice_subdir = "rice-embed"
|
|
23
23
|
rice_root = Gem.loaded_specs["rice"].full_gem_path
|
|
24
|
-
rice_src = File.join(rice_root, "rice")
|
|
24
|
+
rice_src = File.join(rice_root, "include", "rice")
|
|
25
25
|
rice_embed = File.join(__dir__, rice_subdir)
|
|
26
26
|
unless File.exists?(rice_embed)
|
|
27
27
|
FileUtils.mkdir_p(rice_embed)
|
|
@@ -30,7 +30,7 @@ if cross_build
|
|
|
30
30
|
File.delete(*Dir.glob("#{rice_embed}/**/Makefile"))
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
src_paths.push("#{rice_subdir}/
|
|
33
|
+
src_paths.push("#{rice_subdir}/include")
|
|
34
34
|
|
|
35
35
|
$INCFLAGS << " -I#{__dir__}/#{rice_subdir}"
|
|
36
36
|
|
|
@@ -39,6 +39,8 @@ if cross_build
|
|
|
39
39
|
$CXXFLAGS << " -O3 -Wa,-mbig-obj"
|
|
40
40
|
# workaround for LoadError: 127: The specified procedure could not be found.
|
|
41
41
|
$DLDFLAGS << " -static -static-libgcc -static-libstdc++"
|
|
42
|
+
elsif RbConfig::CONFIG['target_os'] =~ /darwin/
|
|
43
|
+
$CXXFLAGS << " -mmacosx-version-min=10.14 -Wno-register"
|
|
42
44
|
end
|
|
43
45
|
else
|
|
44
46
|
require 'mkmf-rice'
|
|
@@ -46,7 +48,7 @@ else
|
|
|
46
48
|
dir_config(extension_name)
|
|
47
49
|
end
|
|
48
50
|
|
|
49
|
-
$CPPFLAGS << " -std=c++
|
|
51
|
+
$CPPFLAGS << " -std=c++17 -DANTLR4CPP_STATIC -DHAVE_CXX11"
|
|
50
52
|
$INCFLAGS << " -I#{__dir__}/#{antlr4_src}"
|
|
51
53
|
$srcs = []
|
|
52
54
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
module Expressir
|
|
2
2
|
module Model
|
|
3
|
-
|
|
4
|
-
# - section 10 Scope and visibility
|
|
5
|
-
# - section 10.3.13 Schema
|
|
3
|
+
# Multi-schema global scope
|
|
6
4
|
class Repository < ModelElement
|
|
7
|
-
model_attr_accessor :schemas, 'Array<Schema>'
|
|
5
|
+
model_attr_accessor :schemas, 'Array<Declarations::Schema>'
|
|
8
6
|
|
|
9
7
|
# @param [Hash] options
|
|
10
|
-
# @option options [Array<Schema>] :schemas
|
|
8
|
+
# @option options [Array<Declarations::Schema>] :schemas
|
|
11
9
|
def initialize(options = {})
|
|
12
10
|
@schemas = options[:schemas] || []
|
|
13
11
|
|
data/lib/expressir/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 4.0.3
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 4.0.3
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: asciidoctor
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -206,6 +206,7 @@ files:
|
|
|
206
206
|
- ".github/workflows/release.yml"
|
|
207
207
|
- ".gitignore"
|
|
208
208
|
- ".gitmodules"
|
|
209
|
+
- ".hound.yml"
|
|
209
210
|
- ".rspec"
|
|
210
211
|
- ".rubocop.yml"
|
|
211
212
|
- ".yardopts"
|