expressir 0.2.13-arm64-darwin → 0.2.14-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad9bdb019911b86897a5a40fd6e4fb4d76bc687426b78584f8f32ba30839682c
4
- data.tar.gz: 2ffedeba944df494f9388788ea44bc1ccbe7393cd273fe526847b911f24d4a32
3
+ metadata.gz: bf9e8c647bf98788931baaa0d62d2063e0a78597ee88afdc897446458c2f270f
4
+ data.tar.gz: 57a94bf8ab13a65a22614ff8483dbd20f0cd989dbe083b299dbbd41dd31ef71f
5
5
  SHA512:
6
- metadata.gz: 0532c0148e0a0b88b91919ad1993e0d8dd3c3aca0816bcc60cf817270b5d8a05564cd2e182b39ed8b1e13f00489bb39a85624c428c8ba7279e7531ab7056ebaa
7
- data.tar.gz: 52c300c3f01a1c0ea3b3e80a11596495db0447a0a7238ad43d857e5ef5daa9a038f59cd70ead54ea3b9887e6e3b51b5ce84b401d8313bc8a1ed4663e2e1482a5
6
+ metadata.gz: 5de6d4eb4b0f9145ad329c2141af52b0fa9060ec7c80ad5c4f0e262958e7d01bb48a1ef430d7715f4d5e7546aa49974d0bab4742a3d7ae3d999d08a89a74827d
7
+ data.tar.gz: 6720bfc45da7dfa3811983b2477e8ed10f500a02a620d483e917f6bd72fd3851085403b7de36192cc6a09e65af5643a1e96ee481846352488370dc361aadb67a
@@ -34,6 +34,8 @@ module Expressir
34
34
  visitor = Visitor.new(parser.tokens)
35
35
  repo = visitor.visit(parse_tree)
36
36
 
37
+ repo.schemas.each{|schema| schema.file = file}
38
+
37
39
  repo
38
40
  end
39
41
 
@@ -1,6 +1,8 @@
1
1
  module Expressir
2
2
  module Model
3
3
  class Schema < ModelElement
4
+ attr_accessor :file
5
+
4
6
  include Identifier
5
7
 
6
8
  attr_accessor :head_source
@@ -16,6 +18,8 @@ module Expressir
16
18
  attr_accessor :rules
17
19
 
18
20
  def initialize(options = {})
21
+ @file = options[:file]
22
+
19
23
  @id = options[:id]
20
24
  @remarks = options.fetch(:remarks, [])
21
25
  @source = options[:source]
@@ -1,3 +1,3 @@
1
1
  module Expressir
2
- VERSION = "0.2.13".freeze
2
+ VERSION = "0.2.14".freeze
3
3
  end
@@ -8,10 +8,15 @@ RSpec.describe Expressir::ExpressExp::Parser do
8
8
 
9
9
  schemas = repo.schemas
10
10
  expect(schemas.count).to eq(5)
11
+ expect(schemas[0].file).to eq(sample_files[0])
11
12
  expect(schemas[0].id).to eq("syntax_schema")
13
+ expect(schemas[1].file).to eq(sample_files[1])
12
14
  expect(schemas[1].id).to eq("remark_schema")
15
+ expect(schemas[2].file).to eq(sample_files[2])
13
16
  expect(schemas[2].id).to eq("entity_schema")
17
+ expect(schemas[3].file).to eq(sample_files[2])
14
18
  expect(schemas[3].id).to eq("version_entity_schema")
19
+ expect(schemas[4].file).to eq(sample_files[2])
15
20
  expect(schemas[4].id).to eq("version_interface_entity_schema")
16
21
  end
17
22
  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: 0.2.13
4
+ version: 0.2.14
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri