teneo_grpc 0.1.3 → 0.1.5

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +10 -11
  3. data/Gemfile.lock +0 -2
  4. metadata +19 -6
  5. data/Dockerfile +0 -16
  6. data/bin/app.rb +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38bbb7d751a6eaa5997333b428b30de4e446134742d4010375fedfd2f9df6f4c
4
- data.tar.gz: b441b1ac6ce34b77b833d79b450986bad6268e9ecb97c8ce1efe1865fa86b267
3
+ metadata.gz: 175d8a54e092662e21400c371a32748bbb4ded241d7b5a879573626afcdd595a
4
+ data.tar.gz: d2dc821e57960d193864c1911e44ac7276fc49908e537ad5381f6edf618ea062
5
5
  SHA512:
6
- metadata.gz: 7cf11c23a9903e292428a7d664990338c67d968cb838b69a2bf3274361aa2032e2b8e912e18a7faafb0033ad6d0b3bd32a852886b0db78f7425df90a734e3f83
7
- data.tar.gz: ad1e5349a16266fbc86f5a2eafa390ce4c52d10a3d3e1d9872debf42f6e5118994478e1282034c8cd5196933f0d2e2909f29ab956e17279957dc20c7c37c9c2d
6
+ metadata.gz: 9b2b5d31ce39eac6e53afbbcc727078865e3b25aba994370349a6a28a77766bb234b05636c1c3d7549cdf0e8a96479cc1780fd1c0154d1d4e8dc04e3ed80ad73
7
+ data.tar.gz: 4f970f30de576c6b6ed6e93a49e4b17da5b8105ca75931444d59e5a8ee721a25c21feae100af4ff882c99c2310352308a18ddc72985a3189b6f950bada55476e
data/Gemfile CHANGED
@@ -1,14 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
- gem "debug", require: false # requires libyaml-dev to be installed on system (Ubuntu)
6
- gem "grpc"
7
- gem "grpc-tools"
8
- gem "protobuf"
9
- gem "rake", "~> 13.0"
10
- gem "rspec", "~> 3.0"
11
- gem "rubocop", "~> 1.21"
12
- gem "rubocop-rake", require: false
13
- gem "securerandom"
14
- gem "teneo-grpc"
5
+ gem 'debug', require: false # requires libyaml-dev to be installed on system (Ubuntu)
6
+ gem 'grpc'
7
+ gem 'grpc-tools'
8
+ gem 'protobuf'
9
+ gem 'rake', '~> 13.0'
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rubocop', '~> 1.21'
12
+ gem 'rubocop-rake', require: false
13
+ gem 'securerandom'
data/Gemfile.lock CHANGED
@@ -103,7 +103,6 @@ GEM
103
103
  ruby-progressbar (1.13.0)
104
104
  securerandom (0.3.2)
105
105
  stringio (3.1.2)
106
- teneo-grpc (0.1.0)
107
106
  thor (1.3.2)
108
107
  thread_safe (0.3.6)
109
108
  tzinfo (2.0.6)
@@ -126,7 +125,6 @@ DEPENDENCIES
126
125
  rubocop (~> 1.21)
127
126
  rubocop-rake
128
127
  securerandom
129
- teneo-grpc
130
128
 
131
129
  BUNDLED WITH
132
130
  2.5.23
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teneo_grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Vanoverschelde
@@ -9,20 +9,33 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2025-02-24 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Microservices communication with gRPC and CloudEvents.
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: grpc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: This gem can be used to implement gRPC and CloudEvents communication
28
+ between microservices.
14
29
  email:
15
30
  executables: []
16
31
  extensions: []
17
32
  extra_rdoc_files: []
18
33
  files:
19
34
  - CHANGELOG.md
20
- - Dockerfile
21
35
  - Gemfile
22
36
  - Gemfile.lock
23
37
  - README.md
24
38
  - Rakefile
25
- - bin/app.rb
26
39
  - bin/bundle
27
40
  - bin/console
28
41
  - bin/grpc_tools_ruby_protoc
@@ -77,5 +90,5 @@ requirements: []
77
90
  rubygems_version: 3.3.5
78
91
  signing_key:
79
92
  specification_version: 4
80
- summary: Microservices communication with gRPC and CloudEvents.
93
+ summary: Provides communication logic using the gRPC protocol and CloudEvents format.
81
94
  test_files: []
data/Dockerfile DELETED
@@ -1,16 +0,0 @@
1
- ARG RUBY_VERSION=3.1
2
- ARG RUBY_IMAGE_VARIANT=slim-bookworm
3
-
4
- FROM docker.io/ruby:${RUBY_VERSION}-${RUBY_IMAGE_VARIANT}
5
-
6
- RUN apt-get update -qq && apt-get install -y build-essential
7
- RUN mkdir /app
8
- WORKDIR /app
9
- COPY Gemfile /app/Gemfile
10
- COPY Gemfile.lock /app/Gemfile.lock
11
-
12
- RUN bundle install
13
-
14
- COPY . /app
15
-
16
- CMD [ "/app/start.sh" ]
data/bin/app.rb DELETED
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/setup"
4
- require "yaml"
5
-
6
- require_relative "../lib/teneo_grpc"
7
-
8
- begin
9
- puts "loading config"
10
- c = YAML.load_file(ENV["TENEO_GRPC_CONFIG"])
11
- rescue TypeError
12
- abort("ERROR: config file not specified. use environment variable 'TENEO_GRPC_CONFIG' for this")
13
- rescue Errno::ENOENT
14
- abort("ERROR: no such file or directory - '#{ENV["TENEO_GRPC_CONFIG"]}'")
15
- rescue Errno::EACCES
16
- abort("ERROR: permission denied - '#{ENV["TENEO_GRPC_CONFIG"]}'")
17
- end
18
-
19
- puts "starting application"
20
-
21
- host = c["host"]
22
-
23
- server = Server.new(
24
- socket: "#{host["listen_address"]}:#{host["port"]}",
25
- remote_hosts: c["remote_hosts"]
26
- )
27
- server.start_listening_for_data