hadron 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/hadron +50 -0
- data/hadron.gemspec +2 -2
- data/lib/hadron/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5789e8b8a04dc4e123db597eebdc97e4fa0a97d5e1df1747cd8f6b78bed40ada
|
4
|
+
data.tar.gz: d27140dbc167d46189d967878db79cc429a47c8c4c36cb5fc83617cc48103d76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d6504fcfee5ebeb1020ad01e55960686fa04399cd39ffb74b5bdb3db3729911257645525a73d7eef68247753c8782739bf838abde8a53c1ff48c03ef38a2092
|
7
|
+
data.tar.gz: 61edf40b2de032a523f6a61d630cb759ef36f36e1877e27c1ed447a5639f77010d724abf03d6168c505b8deedc2c2221a87bc98968591f60b2e527ab4c2a21f4
|
data/Gemfile.lock
CHANGED
data/bin/hadron
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'thor'
|
4
|
+
require 'hadron'
|
5
|
+
|
6
|
+
# Define the `create` subcommand
|
7
|
+
command :create do |c|
|
8
|
+
c.desc "Create a new project"
|
9
|
+
c.arg_name "project_name"
|
10
|
+
|
11
|
+
c.action do |args, options|
|
12
|
+
project_name = args.first
|
13
|
+
Hadron.create_project(project_name)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# Define the `db` subcommand
|
18
|
+
command :db do |c|
|
19
|
+
# Define the `create` subcommand for `db`
|
20
|
+
c.command :create do |create|
|
21
|
+
create.desc "Create a database"
|
22
|
+
create.action do |args, options|
|
23
|
+
Hadron.create_database
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
# Define the `migrate` subcommand for `db`
|
28
|
+
c.command :migrate do |migrate|
|
29
|
+
migrate.desc "Migrate a database"
|
30
|
+
migrate.action do |args, options|
|
31
|
+
Hadron.migrate_database
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# Define the `generate` subcommand
|
37
|
+
command :generate do |c|
|
38
|
+
c.desc "Generate boilerplate code"
|
39
|
+
|
40
|
+
# Define the `scaffold` subcommand for `generate`
|
41
|
+
c.command :scaffold do |scaffold|
|
42
|
+
scaffold.desc "Generate scaffold code"
|
43
|
+
scaffold.arg_name "scaffold_name"
|
44
|
+
|
45
|
+
scaffold.action do |args, options|
|
46
|
+
scaffold_name = args.first
|
47
|
+
Hadron.generate_scaffold(scaffold_name)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/hadron.gemspec
CHANGED
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
|
|
26
26
|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
30
|
-
spec.executables =
|
29
|
+
|
30
|
+
spec.executables = ["hadron"]
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
33
|
# Uncomment to register a new dependency of your gem
|
data/lib/hadron/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hadron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvance
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
@@ -14,7 +14,8 @@ description: Ruby framework called Hadron that allows you to work with gRPC Ruby
|
|
14
14
|
easily.
|
15
15
|
email:
|
16
16
|
- kerandisylvance@gmail.com
|
17
|
-
executables:
|
17
|
+
executables:
|
18
|
+
- hadron
|
18
19
|
extensions: []
|
19
20
|
extra_rdoc_files: []
|
20
21
|
files:
|
@@ -26,6 +27,7 @@ files:
|
|
26
27
|
- Gemfile.lock
|
27
28
|
- README.md
|
28
29
|
- Rakefile
|
30
|
+
- bin/hadron
|
29
31
|
- hadron.gemspec
|
30
32
|
- lib/hadron.rb
|
31
33
|
- lib/hadron/version.rb
|