tucana 0.0.0 → 0.0.1

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: 0db9537ae181914339ee2453d54faaf55db3070d8849fa6f8ed55fed930fa5fa
4
+ data.tar.gz: a4c7b9b24d15ad822ab86dc9d55f329fe1af0c24c6309c5668962d1d984774ed
5
5
  SHA512:
6
- metadata.gz: b806d9d28c412480ee84447f4ae8e7b902d79b32b1c05a0ca18a82c9d0ee91a7da7c8f5a409cb2238b580d696920250dbf056d0d33c5a30f0881ade6eaacb363
7
- data.tar.gz: 62d0d794a9f6d5c0eb250315dc6888be30ee35f173da96bb7922ee2430c62d538b36d9aff17db6bc1769558abbadecc11e729e216d8565c1c6fb1e26151f1036
6
+ metadata.gz: 214ac4c06bafdc58996a08baeca0e19ac821c987cb9835e614e050583be27a0789b8533fb2e331409c60aae136b7021c42cc5676246e675f0fa5d78e3f8f28f3
7
+ data.tar.gz: ddba51602da9ae8dfefe41a4756bff3686b1514586ebc5c43c008482bdde1c602e317a1274818a1c1521a7c85c10ebafb6226129cf9442166391c43a0ce8065f
data/.rspec CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,13 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tucana (0.0.0)
4
+ tucana (0.0.1)
5
5
  grpc (~> 1.65)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.2)
11
10
  bigdecimal (3.1.8)
12
11
  diff-lcs (1.5.1)
13
12
  google-protobuf (4.27.2-x86_64-linux)
@@ -19,18 +18,7 @@ GEM
19
18
  google-protobuf (>= 3.25, < 5.0)
20
19
  googleapis-common-protos-types (~> 1.0)
21
20
  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
21
  rake (13.2.1)
31
- regexp_parser (2.9.2)
32
- rexml (3.3.1)
33
- strscan
34
22
  rspec (3.13.0)
35
23
  rspec-core (~> 3.13.0)
36
24
  rspec-expectations (~> 3.13.0)
@@ -44,35 +32,6 @@ GEM
44
32
  diff-lcs (>= 1.2.0, < 2.0)
45
33
  rspec-support (~> 3.13.0)
46
34
  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
35
 
77
36
  PLATFORMS
78
37
  x86_64-linux
@@ -81,9 +40,6 @@ DEPENDENCIES
81
40
  grpc-tools (~> 1.65)
82
41
  rake (~> 13.0)
83
42
  rspec (~> 3.0)
84
- rubocop (~> 1.21)
85
- rubocop-rake (~> 0.6)
86
- rubocop-rspec (~> 2.29)
87
43
  tucana!
88
44
 
89
45
  BUNDLED WITH
data/Rakefile CHANGED
@@ -7,10 +7,6 @@ require "rspec/core/rake_task"
7
7
 
8
8
  RSpec::Core::RakeTask.new(:spec)
9
9
 
10
- require "rubocop/rake_task"
11
-
12
- RuboCop::RakeTask.new
13
-
14
10
  PROJECT_ROOT = File.expand_path("../..", __dir__)
15
11
  RUBY_ROOT = "#{PROJECT_ROOT}/build/ruby".freeze
16
12
  INPUT_INTERNAL_DIR = "#{PROJECT_ROOT}/internal".freeze
@@ -33,6 +29,27 @@ namespace :generate_ruby do
33
29
  end
34
30
  end
35
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
36
53
  end
37
54
 
38
- task default: %i[spec rubocop]
55
+ task default: %i[spec]
@@ -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.1"
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklas van Schrick
8
8
  autorequire:
9
9
  bindir: exe
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
@@ -116,7 +74,6 @@ extensions: []
116
74
  extra_rdoc_files: []
117
75
  files:
118
76
  - ".rspec"
119
- - ".rubocop.yml"
120
77
  - Gemfile
121
78
  - Gemfile.lock
122
79
  - Rakefile
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