grpc_server_template 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcb67dc53ebe20f3b8cc712445d4472600ed23706882154b973a9bf21fb30c92
4
- data.tar.gz: c16b0d1e4c670438ac494dbcac68e6af44838efbc3b7f19420916d9f40daa522
3
+ metadata.gz: f0b48077a283152f69d566d4d5d84a81b8d2510aee8bdfb9091ec3502ac36db4
4
+ data.tar.gz: ea804505420a961a63d2cc28ffa2fae449d586e748c5572548dc0ae9f75595d2
5
5
  SHA512:
6
- metadata.gz: 123c58186a71cee305bb56a98322a735d4e9c8972cf0c249653d173c98ac68d793563b4d030c553466b4c7b28d6202bb7a74733cff828bf11ed16fea4b196769
7
- data.tar.gz: 209ff857621df29de2bbc0c3db8e664315bab4c5d27e2cce87c33bd63cecea792adf9f0a2eb6c595c43378b15abfce823f8ab94a03f1674ae9b238298009d5b2
6
+ metadata.gz: 1f4d6faae4468b099fce21e8f946c05b8d6c472497dde4730b78b1bdd215b9ecd47057c3e85a6eeaefcaf016f32d2bf8fb0dbabb0ef34582fd049281d54eb449
7
+ data.tar.gz: 1f2f5c02d7a76cf40513e8180d2926044c314ffb374aadb7513fa5e9600c51ff86aeabc3b70829966c9de47c876654c5c1d895f4688fd6ef5dfadab6c2c3db35
data/Gemfile CHANGED
@@ -5,8 +5,12 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in grpc_server_template.gemspec
6
6
  gemspec
7
7
 
8
+ gem "erb", "~> 4.0"
9
+ gem "fileutils", "~> 1.7"
10
+ gem "grpc", "~> 1.50"
11
+ gem "grpc-tools", "~> 1.50"
12
+ gem "pry", "~> 0.14.2"
8
13
  gem "rake", "~> 13.0"
9
-
10
14
  gem "rspec", "~> 3.0"
11
-
12
15
  gem "rubocop", "~> 1.21"
16
+ gem "thor", "~> 1.2"
data/Gemfile.lock CHANGED
@@ -1,17 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grpc_server_template (0.1.0)
4
+ grpc_server_template (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
+ cgi (0.3.6)
11
+ coderay (1.1.3)
10
12
  diff-lcs (1.5.0)
13
+ erb (4.0.2)
14
+ cgi (>= 0.3.3)
15
+ fileutils (1.7.0)
16
+ google-protobuf (3.21.12)
17
+ google-protobuf (3.21.12-x86_64-linux)
18
+ googleapis-common-protos-types (1.5.0)
19
+ google-protobuf (~> 3.14)
20
+ grpc (1.50.0)
21
+ google-protobuf (~> 3.21)
22
+ googleapis-common-protos-types (~> 1.0)
23
+ grpc (1.50.0-x86_64-linux)
24
+ google-protobuf (~> 3.21)
25
+ googleapis-common-protos-types (~> 1.0)
26
+ grpc-tools (1.50.0)
11
27
  json (2.6.3)
28
+ method_source (1.0.0)
12
29
  parallel (1.22.1)
13
30
  parser (3.2.0.0)
14
31
  ast (~> 2.4.1)
32
+ pry (0.14.2)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
15
35
  rainbow (3.1.1)
16
36
  rake (13.0.6)
17
37
  regexp_parser (2.6.1)
@@ -42,6 +62,7 @@ GEM
42
62
  rubocop-ast (1.24.1)
43
63
  parser (>= 3.1.1.0)
44
64
  ruby-progressbar (1.11.0)
65
+ thor (1.2.1)
45
66
  unicode-display_width (2.4.2)
46
67
 
47
68
  PLATFORMS
@@ -50,10 +71,16 @@ PLATFORMS
50
71
  x86_64-linux
51
72
 
52
73
  DEPENDENCIES
74
+ erb (~> 4.0)
75
+ fileutils (~> 1.7)
76
+ grpc (~> 1.50)
77
+ grpc-tools (~> 1.50)
53
78
  grpc_server_template!
79
+ pry (~> 0.14.2)
54
80
  rake (~> 13.0)
55
81
  rspec (~> 3.0)
56
82
  rubocop (~> 1.21)
83
+ thor (~> 1.2)
57
84
 
58
85
  BUNDLED WITH
59
86
  2.3.15
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/grpc_server_template`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
5
  ## Installation
8
6
 
9
7
  Install the gem and add to the application's Gemfile by executing:
@@ -26,8 +24,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
26
24
 
27
25
  ## Contributing
28
26
 
29
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/grpc_server_template. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/grpc_server_template/blob/main/CODE_OF_CONDUCT.md).
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Sylvance/grpc_server_template. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/Sylvance/grpc_server_template/blob/main/CODE_OF_CONDUCT.md).
30
28
 
31
29
  ## Code of Conduct
32
30
 
33
- Everyone interacting in the GrpcServerTemplate project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/grpc_server_template/blob/main/CODE_OF_CONDUCT.md).
31
+ Everyone interacting in the GrpcServerTemplate project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Sylvance/grpc_server_template/blob/main/CODE_OF_CONDUCT.md).
data/exe/rpc ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "grpc_server_template"
6
+
7
+ GrpcServerTemplate::Cli.start(ARGV)
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "thor"
4
+ require "fileutils"
5
+ require "erb"
6
+
7
+ module GrpcServerTemplate
8
+ # Cli class
9
+ class Cli < Thor
10
+ desc "create PROJECT_NAME", "Creates a new gRPC Ruby server project with the given name"
11
+ def create(project_name)
12
+ system("echo 'Hello world #{project_name}'")
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrpcServerTemplate
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "grpc_server_template/version"
3
+ Dir[File.join(__dir__, "grpc_server_template", "*.rb")].sort.each { |file| require file }
4
4
 
5
5
  module GrpcServerTemplate
6
6
  class Error < StandardError; end
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc_server_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-10 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A template for the ruby grpc server.
14
14
  email:
15
15
  - kerandisylvance@gmail.com
16
- executables: []
16
+ executables:
17
+ - rpc
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
@@ -25,8 +26,10 @@ files:
25
26
  - Gemfile.lock
26
27
  - README.md
27
28
  - Rakefile
29
+ - exe/rpc
28
30
  - grpc_server_template.gemspec
29
31
  - lib/grpc_server_template.rb
32
+ - lib/grpc_server_template/cli.rb
30
33
  - lib/grpc_server_template/version.rb
31
34
  - sig/grpc_server_template.rbs
32
35
  homepage: https://github.com/Sylvance/grpc_server_template/blob/main/README.md