tucana 0.0.0 → 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: ad076f2f161ada507545e49657a6ffbcf6d8af8a8508d1b4a7a5b81dac506fc0
4
- data.tar.gz: 9c08b8ce6dc1d84048072f3a9f75df8e77e43dfdad3e439b563ce8c04962b262
3
+ metadata.gz: 67aa28f7e56bae74b9adb7fcec7616bde5def9a1b740945d03855d5be5b1817f
4
+ data.tar.gz: 75ae0d4065f62c3e12fab33601dfa3388528f2883f8e8b392cb8e7b8b6454861
5
5
  SHA512:
6
- metadata.gz: b806d9d28c412480ee84447f4ae8e7b902d79b32b1c05a0ca18a82c9d0ee91a7da7c8f5a409cb2238b580d696920250dbf056d0d33c5a30f0881ade6eaacb363
7
- data.tar.gz: 62d0d794a9f6d5c0eb250315dc6888be30ee35f173da96bb7922ee2430c62d538b36d9aff17db6bc1769558abbadecc11e729e216d8565c1c6fb1e26151f1036
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
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # this file is managed with the "release:version" task.
4
+ # to update the version, run "bundle exec rake release:version[NEW_VERSION]".
5
+
3
6
  module Tucana
4
- VERSION = "0.0.0"
7
+ VERSION = "0.0.2"
5
8
  end
data/lib/tucana.rb CHANGED
@@ -4,5 +4,12 @@ require_relative "tucana/version"
4
4
 
5
5
  module Tucana
6
6
  class Error < StandardError; end
7
- # Your code goes here...
7
+
8
+ def self.require_protos(protocol)
9
+ this_dir = File.expand_path(File.dirname(__FILE__))
10
+ protocol_dir = File.join(this_dir, "tucana/#{protocol}")
11
+ $LOAD_PATH.unshift(protocol_dir) unless $LOAD_PATH.include?(protocol_dir)
12
+
13
+ Dir["#{protocol_dir}/*_pb.rb"].each { |file| require file }
14
+ end
8
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tucana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
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
- date: 2024-07-17 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -66,48 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- - !ruby/object:Gem::Dependency
70
- name: rubocop
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.21'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.21'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop-rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.6'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '0.6'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '2.29'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '2.29'
111
69
  description:
112
70
  email:
113
71
  - mc.taucher2003@gmail.com
@@ -115,12 +73,13 @@ executables: []
115
73
  extensions: []
116
74
  extra_rdoc_files: []
117
75
  files:
118
- - ".rspec"
119
- - ".rubocop.yml"
120
- - Gemfile
121
- - Gemfile.lock
122
- - Rakefile
123
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
124
83
  - lib/tucana/version.rb
125
84
  homepage: https://github.com/code0-tech/tucana
126
85
  licenses:
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,36 +0,0 @@
1
- require:
2
- - rubocop-rake
3
- - rubocop-rspec
4
-
5
- AllCops:
6
- TargetRubyVersion: 3.0.0
7
- NewCops: enable
8
-
9
- Gemspec/DevelopmentDependencies:
10
- EnforcedStyle: gemspec
11
-
12
- Metrics/AbcSize:
13
- Enabled: false
14
-
15
- Metrics/MethodLength:
16
- Enabled: false
17
-
18
- Metrics/CyclomaticComplexity:
19
- Enabled: false
20
-
21
- Metrics/PerceivedComplexity:
22
- Enabled: false
23
-
24
- Style/StringLiterals:
25
- Enabled: true
26
- EnforcedStyle: double_quotes
27
-
28
- Style/StringLiteralsInInterpolation:
29
- Enabled: true
30
- EnforcedStyle: double_quotes
31
-
32
- Layout/LineLength:
33
- Max: 120
34
-
35
- RSpec/ExampleLength:
36
- Enabled: false
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,90 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- tucana (0.0.0)
5
- grpc (~> 1.65)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- bigdecimal (3.1.8)
12
- diff-lcs (1.5.1)
13
- google-protobuf (4.27.2-x86_64-linux)
14
- bigdecimal
15
- rake (>= 13)
16
- googleapis-common-protos-types (1.15.0)
17
- google-protobuf (>= 3.18, < 5.a)
18
- grpc (1.65.1-x86_64-linux)
19
- google-protobuf (>= 3.25, < 5.0)
20
- googleapis-common-protos-types (~> 1.0)
21
- grpc-tools (1.65.1)
22
- json (2.7.2)
23
- language_server-protocol (3.17.0.3)
24
- parallel (1.25.1)
25
- parser (3.3.3.0)
26
- ast (~> 2.4.1)
27
- racc
28
- racc (1.8.0)
29
- rainbow (3.1.1)
30
- rake (13.2.1)
31
- regexp_parser (2.9.2)
32
- rexml (3.3.1)
33
- strscan
34
- rspec (3.13.0)
35
- rspec-core (~> 3.13.0)
36
- rspec-expectations (~> 3.13.0)
37
- rspec-mocks (~> 3.13.0)
38
- rspec-core (3.13.0)
39
- rspec-support (~> 3.13.0)
40
- rspec-expectations (3.13.0)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.13.0)
43
- rspec-mocks (3.13.0)
44
- diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.13.0)
46
- rspec-support (3.13.1)
47
- rubocop (1.64.1)
48
- json (~> 2.3)
49
- language_server-protocol (>= 3.17.0)
50
- parallel (~> 1.10)
51
- parser (>= 3.3.0.2)
52
- rainbow (>= 2.2.2, < 4.0)
53
- regexp_parser (>= 1.8, < 3.0)
54
- rexml (>= 3.2.5, < 4.0)
55
- rubocop-ast (>= 1.31.1, < 2.0)
56
- ruby-progressbar (~> 1.7)
57
- unicode-display_width (>= 2.4.0, < 3.0)
58
- rubocop-ast (1.31.3)
59
- parser (>= 3.3.1.0)
60
- rubocop-capybara (2.21.0)
61
- rubocop (~> 1.41)
62
- rubocop-factory_bot (2.26.1)
63
- rubocop (~> 1.61)
64
- rubocop-rake (0.6.0)
65
- rubocop (~> 1.0)
66
- rubocop-rspec (2.31.0)
67
- rubocop (~> 1.40)
68
- rubocop-capybara (~> 2.17)
69
- rubocop-factory_bot (~> 2.22)
70
- rubocop-rspec_rails (~> 2.28)
71
- rubocop-rspec_rails (2.29.1)
72
- rubocop (~> 1.61)
73
- ruby-progressbar (1.13.0)
74
- strscan (3.1.0)
75
- unicode-display_width (2.5.0)
76
-
77
- PLATFORMS
78
- x86_64-linux
79
-
80
- DEPENDENCIES
81
- grpc-tools (~> 1.65)
82
- rake (~> 13.0)
83
- rspec (~> 3.0)
84
- rubocop (~> 1.21)
85
- rubocop-rake (~> 0.6)
86
- rubocop-rspec (~> 2.29)
87
- tucana!
88
-
89
- BUNDLED WITH
90
- 2.4.12
data/Rakefile DELETED
@@ -1,38 +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
- require "rubocop/rake_task"
11
-
12
- RuboCop::RakeTask.new
13
-
14
- PROJECT_ROOT = File.expand_path("../..", __dir__)
15
- RUBY_ROOT = "#{PROJECT_ROOT}/build/ruby".freeze
16
- INPUT_INTERNAL_DIR = "#{PROJECT_ROOT}/internal".freeze
17
- OUTPUT_INTERNAL_DIR = "#{RUBY_ROOT}/lib/tucana/internal".freeze
18
-
19
- def system!(*args)
20
- system(*args, exception: true)
21
- end
22
-
23
- namespace :generate_ruby do
24
- desc "Generate ruby files for the internal protocol"
25
- task :internal do
26
- FileUtils.rm_rf(OUTPUT_INTERNAL_DIR)
27
- FileUtils.mkdir_p(OUTPUT_INTERNAL_DIR)
28
- FileUtils.chdir RUBY_ROOT do
29
- Dir["#{INPUT_INTERNAL_DIR}/*.proto"].each do |file|
30
- # rubocop:disable Layout/LineLength
31
- system!("bundle exec grpc_tools_ruby_protoc -I #{INPUT_INTERNAL_DIR} --ruby_out=#{OUTPUT_INTERNAL_DIR} --grpc_out=#{OUTPUT_INTERNAL_DIR} #{file}")
32
- # rubocop:enable Layout/LineLength
33
- end
34
- end
35
- end
36
- end
37
-
38
- task default: %i[spec rubocop]