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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3635b4c290e0c0541d93b3417b3e670e41a399d06e7ebfd58c646aacb0aa0017
4
- data.tar.gz: 6ee4dbe5fa63f9811af0acd69a1858a54aeb28f57f2c2320e806426d55a2f447
3
+ metadata.gz: 5789e8b8a04dc4e123db597eebdc97e4fa0a97d5e1df1747cd8f6b78bed40ada
4
+ data.tar.gz: d27140dbc167d46189d967878db79cc429a47c8c4c36cb5fc83617cc48103d76
5
5
  SHA512:
6
- metadata.gz: 77f68999a1921eb7ed0e0c6916ecdcb184ba4084b3abdd2e1cb92f6971d528ace8daed32d9c0c8d4edda5c0e07ff8c5db4cf40f96744f114a5ff5ae4a6cba722
7
- data.tar.gz: fc18af214068259c36c9e0f121acd97986c0fd63a1e4ac2406b9f33f762a650ac1126b0928090b3adbcfd2510a069a994b764928abb340d02a7ba25825c1f6b1
6
+ metadata.gz: 6d6504fcfee5ebeb1020ad01e55960686fa04399cd39ffb74b5bdb3db3729911257645525a73d7eef68247753c8782739bf838abde8a53c1ff48c03ef38a2092
7
+ data.tar.gz: 61edf40b2de032a523f6a61d630cb759ef36f36e1877e27c1ed447a5639f77010d724abf03d6168c505b8deedc2c2221a87bc98968591f60b2e527ab4c2a21f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hadron (0.1.2)
4
+ hadron (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+
30
+ spec.executables = ["hadron"]
31
31
  spec.require_paths = ["lib"]
32
32
 
33
33
  # Uncomment to register a new dependency of your gem
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hadron
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvance
8
8
  autorequire:
9
- bindir: exe
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