hgitaly 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/hgitaly.rb +7 -0
- data/lib/hgitaly/mercurial-repository_pb.rb +80 -0
- data/lib/hgitaly/mercurial-repository_services_pb.rb +44 -0
- data/lib/hgitaly/version.rb +4 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 70305aac291491ee412c8bc4bf1c22e854d670c5bd7e29842b202a71748a6348
|
4
|
+
data.tar.gz: 1ec3b54f5eac627898017a3bca7d3a4907083a1f1de467272a67965c1ddd3b12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ec48289b0f7227b4ac17f28bec96070473fef78e3663b897c5a7933c9f769d2b54f85c9e85818d7b4938a3f0cbc823515ef8c31f03a6e20539fde7eadd3c4d3f
|
7
|
+
data.tar.gz: 9e1b9c490e36bffd8dd5ee016d49b3e75863a3cd4b68dd47ef56b66d17fe0de35ffbe47357317fc234d0a29407051ec2a4910100293d2787747fa62eaed53a69
|
data/lib/hgitaly.rb
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: mercurial-repository.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'lint_pb'
|
7
|
+
require 'shared_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("mercurial-repository.proto", :syntax => :proto3) do
|
10
|
+
add_message "hgitaly.InitConfigRequest" do
|
11
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
12
|
+
optional :namespace_path, :string, 2
|
13
|
+
end
|
14
|
+
add_message "hgitaly.InitConfigResponse" do
|
15
|
+
end
|
16
|
+
add_message "hgitaly.HeptapodConfigSection" do
|
17
|
+
optional :allow_multiple_heads, :bool, 2
|
18
|
+
optional :allow_bookmarks, :bool, 3
|
19
|
+
optional :auto_publish, :enum, 4, "hgitaly.HeptapodConfigSection.AutoPublish"
|
20
|
+
end
|
21
|
+
add_enum "hgitaly.HeptapodConfigSection.AutoPublish" do
|
22
|
+
value :WITHOUT_TOPIC, 0
|
23
|
+
value :NOTHING, 1
|
24
|
+
value :ALL, 2
|
25
|
+
end
|
26
|
+
add_message "hgitaly.GetManagedConfigRequest" do
|
27
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
28
|
+
optional :local, :bool, 2
|
29
|
+
end
|
30
|
+
add_message "hgitaly.GetManagedConfigResponse" do
|
31
|
+
optional :inherit, :bool, 1
|
32
|
+
optional :heptapod, :message, 2, "hgitaly.HeptapodConfigSection"
|
33
|
+
end
|
34
|
+
add_message "hgitaly.SetManagedConfigRequest" do
|
35
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
36
|
+
optional :inherit, :bool, 2
|
37
|
+
optional :heptapod, :message, 3, "hgitaly.HeptapodConfigSection"
|
38
|
+
end
|
39
|
+
add_message "hgitaly.SetManagedConfigResponse" do
|
40
|
+
end
|
41
|
+
add_message "hgitaly.GetConfigItemRequest" do
|
42
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
43
|
+
optional :as_type, :enum, 2, "hgitaly.ConfigItemType"
|
44
|
+
optional :section, :string, 3
|
45
|
+
optional :name, :string, 4
|
46
|
+
end
|
47
|
+
add_message "hgitaly.GetConfigItemResponse" do
|
48
|
+
oneof :value do
|
49
|
+
optional :as_string, :string, 1
|
50
|
+
optional :as_bool, :bool, 2
|
51
|
+
end
|
52
|
+
end
|
53
|
+
add_message "hgitaly.RecoverRequest" do
|
54
|
+
optional :repository, :message, 1, "gitaly.Repository"
|
55
|
+
end
|
56
|
+
add_message "hgitaly.RecoverResponse" do
|
57
|
+
optional :not_needed, :bool, 1
|
58
|
+
end
|
59
|
+
add_enum "hgitaly.ConfigItemType" do
|
60
|
+
value :STRING, 0
|
61
|
+
value :BOOL, 1
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
module Hgitaly
|
67
|
+
InitConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.InitConfigRequest").msgclass
|
68
|
+
InitConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.InitConfigResponse").msgclass
|
69
|
+
HeptapodConfigSection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.HeptapodConfigSection").msgclass
|
70
|
+
HeptapodConfigSection::AutoPublish = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.HeptapodConfigSection.AutoPublish").enummodule
|
71
|
+
GetManagedConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetManagedConfigRequest").msgclass
|
72
|
+
GetManagedConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetManagedConfigResponse").msgclass
|
73
|
+
SetManagedConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.SetManagedConfigRequest").msgclass
|
74
|
+
SetManagedConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.SetManagedConfigResponse").msgclass
|
75
|
+
GetConfigItemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetConfigItemRequest").msgclass
|
76
|
+
GetConfigItemResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetConfigItemResponse").msgclass
|
77
|
+
RecoverRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverRequest").msgclass
|
78
|
+
RecoverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverResponse").msgclass
|
79
|
+
ConfigItemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ConfigItemType").enummodule
|
80
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: mercurial-repository.proto for package 'hgitaly'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'mercurial-repository_pb'
|
6
|
+
|
7
|
+
module Hgitaly
|
8
|
+
module MercurialRepositoryService
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'hgitaly.MercurialRepositoryService'
|
16
|
+
|
17
|
+
# Will back Rails method `hg_create_repository`,
|
18
|
+
# currently implemented on `Gitlab::Mercurial::HgGitRepository`
|
19
|
+
# Together with `RepositoryService.CreateRepository` (see hgitaly!64)
|
20
|
+
rpc :InitConfig, Hgitaly::InitConfigRequest, Hgitaly::InitConfigResponse
|
21
|
+
# Will back Rails method `hg_config_item_bool?` currently
|
22
|
+
# implemented on `Gitlab::Mercurial::HgGitRepository`
|
23
|
+
rpc :GetConfigItem, Hgitaly::GetConfigItemRequest, Hgitaly::GetConfigItemResponse
|
24
|
+
#
|
25
|
+
# Managed configuration methods.
|
26
|
+
#
|
27
|
+
#
|
28
|
+
# These are about the part of the repository-local configuration that is
|
29
|
+
# entirely managed by Heptapod
|
30
|
+
# (implemented as of this writing with the separate `.hg/hgrc.managed` file)
|
31
|
+
#
|
32
|
+
# Will back Rails methods `get_hgrc` and `get_hg_heptapod_config` currently
|
33
|
+
# implemented on `Gitlab::Mercurial::HgGitRepository`
|
34
|
+
rpc :GetManagedConfig, Hgitaly::GetManagedConfigRequest, Hgitaly::GetManagedConfigResponse
|
35
|
+
# Will back Rails methods `set_hgrc` currently implemented on
|
36
|
+
# `Gitlab::Mercurial::HgGitRepository` (but will be more restrictive,
|
37
|
+
# handling a closed list of sections and items, which is currently
|
38
|
+
# implemented by the upper layers of the Rails application).
|
39
|
+
rpc :SetManagedConfig, Hgitaly::SetManagedConfigRequest, Hgitaly::SetManagedConfigResponse
|
40
|
+
end
|
41
|
+
|
42
|
+
Stub = Service.rpc_stub_class
|
43
|
+
end
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hgitaly
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Georges Racinet
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-protobuf
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: grpc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Auto-generated gRPC client for the HGitaly protocol, an extension of
|
42
|
+
the Gitaly protocol. Definitions for the latter are not included in this gem.
|
43
|
+
email:
|
44
|
+
- georges.racinet@octobus.net
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/hgitaly.rb
|
50
|
+
- lib/hgitaly/mercurial-repository_pb.rb
|
51
|
+
- lib/hgitaly/mercurial-repository_services_pb.rb
|
52
|
+
- lib/hgitaly/version.rb
|
53
|
+
homepage: https://foss.heptapod.net/heptapod/hgitaly
|
54
|
+
licenses:
|
55
|
+
- LGPL-3.0+
|
56
|
+
metadata: {}
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
requirements: []
|
72
|
+
rubygems_version: 3.1.4
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: Auto-generated gRPC client for HGitaly
|
76
|
+
test_files: []
|