tucana 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0db9537ae181914339ee2453d54faaf55db3070d8849fa6f8ed55fed930fa5fa
4
- data.tar.gz: a4c7b9b24d15ad822ab86dc9d55f329fe1af0c24c6309c5668962d1d984774ed
3
+ metadata.gz: 67aa28f7e56bae74b9adb7fcec7616bde5def9a1b740945d03855d5be5b1817f
4
+ data.tar.gz: 75ae0d4065f62c3e12fab33601dfa3388528f2883f8e8b392cb8e7b8b6454861
5
5
  SHA512:
6
- metadata.gz: 214ac4c06bafdc58996a08baeca0e19ac821c987cb9835e614e050583be27a0789b8533fb2e331409c60aae136b7021c42cc5676246e675f0fa5d78e3f8f28f3
7
- data.tar.gz: ddba51602da9ae8dfefe41a4756bff3686b1514586ebc5c43c008482bdde1c602e317a1274818a1c1521a7c85c10ebafb6226129cf9442166391c43a0ce8065f
6
+ metadata.gz: 180fccd9f904c57bc69a19c40fd797a565b398ee6f9911365f5e477636f29a654a128c7d0a5c1107ba1b3338cc57defe6384216cb8a14ac63231765498dfae98
7
+ data.tar.gz: 1627e6d9a0cd478a6e9b6cf32683642d631b989a4321672f939e79cac27c4cdeccac8ddd5925422787e2f70755c2140792f5d59223a3db92db6964cc43e22e29
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: flow.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'node_pb'
8
+ require 'type_pb'
9
+ require 'variable_pb'
10
+
11
+
12
+ descriptor_data = "\n\nflow.proto\x12\x08internal\x1a\nnode.proto\x1a\ntype.proto\x1a\x0evariable.proto\"\x98\x01\n\x04\x46low\x12\x0f\n\x07\x66low_id\x18\x01 \x01(\x03\x12%\n\rstarting_node\x18\x02 \x01(\x0b\x32\x0e.internal.Node\x12\x1d\n\x05types\x18\x03 \x03(\x0b\x32\x0e.internal.Type\x12#\n\x07\x63ontext\x18\x04 \x03(\x0b\x32\x12.internal.Variable\x12\x14\n\x0clast_updated\x18\x05 \x01(\x03\"9\n\x11\x46lowUpdateRequest\x12$\n\x0cupdated_flow\x18\x01 \x01(\x0b\x32\x0e.internal.Flow\"%\n\x12\x46lowUpdateResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"$\n\x11\x46lowDeleteRequest\x12\x0f\n\x07\x66low_id\x18\x01 \x01(\x03\"%\n\x12\x46lowDeleteResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"\"\n\x0e\x46lowGetRequest\x12\x10\n\x08\x66low_ids\x18\x01 \x03(\x03\"R\n\x0f\x46lowGetResponse\x12%\n\rupdated_flows\x18\x01 \x03(\x0b\x32\x0e.internal.Flow\x12\x18\n\x10\x64\x65leted_flow_ids\x18\x02 \x03(\x03\x32\xa1\x01\n\x11\x46lowAquilaService\x12\x45\n\x06Update\x12\x1b.internal.FlowUpdateRequest\x1a\x1c.internal.FlowUpdateResponse\"\x00\x12\x45\n\x06\x44\x65lete\x12\x1b.internal.FlowDeleteRequest\x1a\x1c.internal.FlowDeleteResponse\"\x00\x32V\n\x16\x46lowSagittariusService\x12<\n\x03Get\x12\x18.internal.FlowGetRequest\x1a\x19.internal.FlowGetResponse\"\x00\x42\x13\xea\x02\x10Tucana::Internalb\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+ pool.add_serialized_file(descriptor_data)
16
+
17
+ module Tucana
18
+ module Internal
19
+ Flow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.Flow").msgclass
20
+ FlowUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.FlowUpdateRequest").msgclass
21
+ FlowUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.FlowUpdateResponse").msgclass
22
+ FlowDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.FlowDeleteRequest").msgclass
23
+ FlowDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.FlowDeleteResponse").msgclass
24
+ FlowGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.FlowGetRequest").msgclass
25
+ FlowGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.FlowGetResponse").msgclass
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: flow.proto for package 'Tucana.Internal'
3
+
4
+ require 'grpc'
5
+ require 'flow_pb'
6
+
7
+ module Tucana
8
+ module Internal
9
+ module FlowAquilaService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'internal.FlowAquilaService'
17
+
18
+ rpc :Update, ::Tucana::Internal::FlowUpdateRequest, ::Tucana::Internal::FlowUpdateResponse
19
+ rpc :Delete, ::Tucana::Internal::FlowDeleteRequest, ::Tucana::Internal::FlowDeleteResponse
20
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ module FlowSagittariusService
25
+ class Service
26
+
27
+ include ::GRPC::GenericService
28
+
29
+ self.marshal_class_method = :encode
30
+ self.unmarshal_class_method = :decode
31
+ self.service_name = 'internal.FlowSagittariusService'
32
+
33
+ rpc :Get, ::Tucana::Internal::FlowGetRequest, ::Tucana::Internal::FlowGetResponse
34
+ end
35
+
36
+ Stub = Service.rpc_stub_class
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: node.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'variable_pb'
8
+
9
+
10
+ descriptor_data = "\n\nnode.proto\x12\x08internal\x1a\x0evariable.proto\"\xc4\x01\n\x04Node\x12\x0f\n\x07node_id\x18\x01 \x01(\x03\x12&\n\tparameter\x18\x02 \x03(\x0b\x32\x13.internal.Parameter\x12\x18\n\x0breturn_type\x18\x03 \x01(\tH\x00\x88\x01\x01\x12&\n\tnext_node\x18\x04 \x01(\x0b\x32\x0e.internal.NodeH\x01\x88\x01\x01\x12#\n\x07\x63ontext\x18\x05 \x03(\x0b\x32\x12.internal.VariableB\x0e\n\x0c_return_typeB\x0c\n\n_next_node\"\xb3\x01\n\tParameter\x12\x14\n\x0cparameter_id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x12\n\x05value\x18\x04 \x01(\tH\x00\x88\x01\x01\x12%\n\x08sub_node\x18\x05 \x01(\x0b\x32\x0e.internal.NodeH\x01\x88\x01\x01\x12\x15\n\x08type_ref\x18\x06 \x01(\x05H\x02\x88\x01\x01\x42\x08\n\x06_valueB\x0b\n\t_sub_nodeB\x0b\n\t_type_refB\x13\xea\x02\x10Tucana::Internalb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Tucana
16
+ module Internal
17
+ Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.Node").msgclass
18
+ Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.Parameter").msgclass
19
+ end
20
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: rule.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\nrule.proto\x12\x08internal\"8\n\x04Rule\x12 \n\x04type\x18\x01 \x01(\x0e\x32\x12.internal.RuleType\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\t*?\n\x08RuleType\x12\t\n\x05REGEX\x10\x00\x12\x10\n\x0cNUMBER_RANGE\x10\x01\x12\x16\n\x12ITEM_OF_COLLECTION\x10\x02\x42\x13\xea\x02\x10Tucana::Internalb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Tucana
14
+ module Internal
15
+ Rule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.Rule").msgclass
16
+ RuleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.RuleType").enummodule
17
+ end
18
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: type.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'rule_pb'
8
+
9
+
10
+ descriptor_data = "\n\ntype.proto\x12\x08internal\x1a\nrule.proto\"\x8f\x01\n\x04Type\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x12\n\x05\x61rray\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x1d\n\x05rules\x18\x04 \x03(\x0b\x32\x0e.internal.Rule\x12#\n\x06parent\x18\x05 \x01(\x0b\x32\x0e.internal.TypeH\x01\x88\x01\x01\x42\x08\n\x06_arrayB\t\n\x07_parentB\x13\xea\x02\x10Tucana::Internalb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Tucana
16
+ module Internal
17
+ Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.Type").msgclass
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: variable.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x0evariable.proto\x12\x08internal\"&\n\x08Variable\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\tB\x13\xea\x02\x10Tucana::Internalb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Tucana
14
+ module Internal
15
+ Variable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("internal.Variable").msgclass
16
+ end
17
+ end
@@ -4,5 +4,5 @@
4
4
  # to update the version, run "bundle exec rake release:version[NEW_VERSION]".
5
5
 
6
6
  module Tucana
7
- VERSION = "0.0.1"
7
+ VERSION = "0.0.2"
8
8
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tucana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklas van Schrick
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
@@ -73,11 +73,13 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".rspec"
77
- - Gemfile
78
- - Gemfile.lock
79
- - Rakefile
80
76
  - lib/tucana.rb
77
+ - lib/tucana/internal/flow_pb.rb
78
+ - lib/tucana/internal/flow_services_pb.rb
79
+ - lib/tucana/internal/node_pb.rb
80
+ - lib/tucana/internal/rule_pb.rb
81
+ - lib/tucana/internal/type_pb.rb
82
+ - lib/tucana/internal/variable_pb.rb
81
83
  - lib/tucana/version.rb
82
84
  homepage: https://github.com/code0-tech/tucana
83
85
  licenses:
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in tucana.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,46 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- tucana (0.0.1)
5
- grpc (~> 1.65)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- bigdecimal (3.1.8)
11
- diff-lcs (1.5.1)
12
- google-protobuf (4.27.2-x86_64-linux)
13
- bigdecimal
14
- rake (>= 13)
15
- googleapis-common-protos-types (1.15.0)
16
- google-protobuf (>= 3.18, < 5.a)
17
- grpc (1.65.1-x86_64-linux)
18
- google-protobuf (>= 3.25, < 5.0)
19
- googleapis-common-protos-types (~> 1.0)
20
- grpc-tools (1.65.1)
21
- rake (13.2.1)
22
- rspec (3.13.0)
23
- rspec-core (~> 3.13.0)
24
- rspec-expectations (~> 3.13.0)
25
- rspec-mocks (~> 3.13.0)
26
- rspec-core (3.13.0)
27
- rspec-support (~> 3.13.0)
28
- rspec-expectations (3.13.0)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.13.0)
31
- rspec-mocks (3.13.0)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.13.0)
34
- rspec-support (3.13.1)
35
-
36
- PLATFORMS
37
- x86_64-linux
38
-
39
- DEPENDENCIES
40
- grpc-tools (~> 1.65)
41
- rake (~> 13.0)
42
- rspec (~> 3.0)
43
- tucana!
44
-
45
- BUNDLED WITH
46
- 2.4.12
data/Rakefile DELETED
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "fileutils"
4
-
5
- require "bundler/gem_tasks"
6
- require "rspec/core/rake_task"
7
-
8
- RSpec::Core::RakeTask.new(:spec)
9
-
10
- PROJECT_ROOT = File.expand_path("../..", __dir__)
11
- RUBY_ROOT = "#{PROJECT_ROOT}/build/ruby".freeze
12
- INPUT_INTERNAL_DIR = "#{PROJECT_ROOT}/internal".freeze
13
- OUTPUT_INTERNAL_DIR = "#{RUBY_ROOT}/lib/tucana/internal".freeze
14
-
15
- def system!(*args)
16
- system(*args, exception: true)
17
- end
18
-
19
- namespace :generate_ruby do
20
- desc "Generate ruby files for the internal protocol"
21
- task :internal do
22
- FileUtils.rm_rf(OUTPUT_INTERNAL_DIR)
23
- FileUtils.mkdir_p(OUTPUT_INTERNAL_DIR)
24
- FileUtils.chdir RUBY_ROOT do
25
- Dir["#{INPUT_INTERNAL_DIR}/*.proto"].each do |file|
26
- # rubocop:disable Layout/LineLength
27
- system!("bundle exec grpc_tools_ruby_protoc -I #{INPUT_INTERNAL_DIR} --ruby_out=#{OUTPUT_INTERNAL_DIR} --grpc_out=#{OUTPUT_INTERNAL_DIR} #{file}")
28
- # rubocop:enable Layout/LineLength
29
- end
30
- end
31
- end
32
-
33
- desc "Generate ruby files for all protocols"
34
- task all: ["generate_ruby:internal"]
35
- end
36
-
37
- namespace :release do
38
- desc "Set the version for the gem"
39
- task :version, [:version] do |_, args|
40
- File.write("#{RUBY_ROOT}/lib/tucana/version.rb", <<~RUBY)
41
- # frozen_string_literal: true
42
-
43
- # this file is managed with the "release:version" task.
44
- # to update the version, run "bundle exec rake release:version[NEW_VERSION]".
45
-
46
- module Tucana
47
- VERSION = "#{args[:version]}"
48
- end
49
- RUBY
50
-
51
- system!("bundle")
52
- end
53
- end
54
-
55
- task default: %i[spec]