sweet-moon 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/README.md +116 -13
- data/components/injections/injections_503.rb +2 -1
- data/components/injections/injections_514.rb +2 -1
- data/components/injections/injections_542.rb +2 -1
- data/components/interpreters/50/function.rb +14 -50
- data/components/interpreters/50/interpreter.rb +12 -6
- data/components/interpreters/50/reader.rb +2 -62
- data/components/interpreters/50/table.rb +11 -48
- data/components/interpreters/50/writer.rb +2 -40
- data/components/interpreters/51/function.rb +3 -49
- data/components/interpreters/51/interpreter.rb +8 -7
- data/components/interpreters/51/reader.rb +2 -62
- data/components/interpreters/51/table.rb +2 -56
- data/components/interpreters/51/writer.rb +2 -40
- data/components/interpreters/54/function.rb +80 -24
- data/components/interpreters/54/interpreter.rb +9 -6
- data/components/interpreters/54/reader.rb +11 -10
- data/components/interpreters/54/table.rb +17 -12
- data/components/interpreters/54/writer.rb +4 -4
- data/config/tests.sample.yml +7 -7
- data/controllers/state.rb +13 -3
- data/dsl/errors.rb +9 -1
- data/dsl/fennel.rb +1 -2
- data/dsl/state.rb +5 -1
- data/logic/spec.rb +1 -1
- metadata +2 -2
data/dsl/state.rb
CHANGED
@@ -7,7 +7,7 @@ module DSL
|
|
7
7
|
include DSL::Concerns::Packages
|
8
8
|
include DSL::Concerns::Fennel
|
9
9
|
|
10
|
-
attr_reader :meta
|
10
|
+
attr_reader :meta, :api
|
11
11
|
|
12
12
|
def initialize(api_component, interpreter_component, controller, options = {})
|
13
13
|
@api = api_component[:api]
|
@@ -22,6 +22,10 @@ module DSL
|
|
22
22
|
add_package_cpath(options[:package_cpath]) if options[:package_cpath]
|
23
23
|
end
|
24
24
|
|
25
|
+
def raw
|
26
|
+
@state
|
27
|
+
end
|
28
|
+
|
25
29
|
def eval(input, outputs = 1)
|
26
30
|
@controller[:eval!].(@api, @interpreter, state, input, outputs)[:output]
|
27
31
|
end
|
data/logic/spec.rb
CHANGED
@@ -2,7 +2,7 @@ module Logic
|
|
2
2
|
Spec = {
|
3
3
|
name: 'sweet-moon',
|
4
4
|
command: 'sweet-moon',
|
5
|
-
version: '0.0.
|
5
|
+
version: '0.0.5',
|
6
6
|
author: 'gbaptista',
|
7
7
|
summary: 'Lua / Fennel from Ruby and vice versa. Support to LuaJIT, Lua 5.0, ' \
|
8
8
|
'and 5.1. Lua C API for Lua 5, 4, and 3. LuaRocks and fnx integration.',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sweet-moon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gbaptista
|
8
8
|
autorequire:
|
9
9
|
bindir: ports/in/shell
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|