dtr_core 0.3.1 → 0.4.1

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: f4917a084a74054c729d66f2939d5c2a4166f08e38db858652e58a307119e1a8
4
- data.tar.gz: 510ac11b521aca79f9d42eb877d4a717c34cb56b0b2adb967496cc248c03f6cc
3
+ metadata.gz: a611417500f07d640a0c6e10bb1af4315d1ccefffaff46722b687efe7649366e
4
+ data.tar.gz: cf000e4539b97922cd039e66c2c50d3c9c765353f0b4b727d9dbcaf15d677b2f
5
5
  SHA512:
6
- metadata.gz: a4b482496bf39d6cf3986a914ea1ee399a60f17213e20febc6de7625101b5e316e5d4aaa3f5a2d32aedc732106a9dadd495d861bb6413a3d107d90fff693f5bd
7
- data.tar.gz: a6691c452e7056cdd017a91d9e8c4c794289b93e4361ffa0275d51b8ddc6a9a19fb2431aa67771e66d0659226b023d2236a95fe155285e549b07cef6240c1edb
6
+ metadata.gz: 7ec4a023b32eda4b6146b879067074c3e84bf19876d18ad7a7cc15f95abbb017f1d9671ddd2c7bea6f0af1321e5b869b69932b5c3f305f3ceeb7ba40c6464fea
7
+ data.tar.gz: 11af8723aa26260aca32f644a9106f6c4d0b814a18c157256727b883067541c11a28bd4389c9030a947cc5e29c0a254c32a0f4a8f38eb6840ff75667dff4431a
@@ -58,7 +58,8 @@ module DTRCore
58
58
  {
59
59
  instruction: instruction[/instruction:\s*(?<all>[^\s,]+)/, 1],
60
60
  inputs: parse_function_instruction_input(instruction),
61
- assign: instruction[/\s*assign:\s*(?<all>[^\s\,]+)/, 1]
61
+ assign: instruction[/\s*assign:\s*(?<all>[^\s\,]+)/, 1],
62
+ scope: instruction[/\s*scope:\s*(?<all>[^\s\,]+)/, 1].to_i || 0
62
63
  }
63
64
  end
64
65
 
@@ -21,7 +21,7 @@ module DTRCore
21
21
  validate_numeric!
22
22
 
23
23
  # TODO: check type
24
- when 'Symbol'
24
+ when 'Symbol', 'String'
25
25
  strip_and_remove_quotes(@initial_value)
26
26
  else
27
27
  raise 'Missing Invalid Type Name.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Core smart contract intermediate language (Digicus Textual Representation)
14
14
  parser.