expressir 0.2.13-x64-mingw32 → 0.2.14-x64-mingw32

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: 893b08150342d7e5e7d8ec1f0edd111c916355ef2b619e5b99d6faac4e5cd967
4
- data.tar.gz: 20fec0d8ca1b42dce5dd650c50514bc8d6b1e3985278fd3a37613d51534fc0ae
3
+ metadata.gz: 5a68cb513f80ef0e6ced7a6493cea943d6b0e4044574102736972fa808bc8132
4
+ data.tar.gz: a6d453143c962a6a70935d4e02fe8a9c86081212e50da0d96271bd42d26c79cb
5
5
  SHA512:
6
- metadata.gz: 51dbf159b960e3d973b27239be90a2321598b0557c1c50bff4b74e305564fd8a06fc34efc534382524085102ede330e5961b5ec4a198fea721bf1ec4f9fbec36
7
- data.tar.gz: 40ae0df6545e9fd98271507696074d5d43339c62feefead2a21590ce7a60eb950037f0efb25deb8cad74f73f29b268fc44a73482fab597a076055a77ad264f8e
6
+ metadata.gz: 3f8fc6ccdd917303d86f468c8ae4373f073468db13f83adc8a543abee8f8e5d348b223e13e679ba8d77bff622e6f92ce4aad3370123815c67332cbe172b88598
7
+ data.tar.gz: d01920fcd97378c88bb87090e52aeca6bf0c4cb5b4f6ffbfab6ddaad01049a90e87f68984a74468a3341db4068765067b55524b2d1871adfa10c0453275e143e
@@ -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: x64-mingw32
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