hmvc-rails 1.0.2 → 1.0.3

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: 4e3f63d6d0eb0bd3e58b943f771c4226e1eb3a0b7f351be4b9b5cefd3adcc0a5
4
- data.tar.gz: 9284eb6d94ada3f6a1c239d6e6d88e4aeaf40ec1fc76dbe4698979251425c95b
3
+ metadata.gz: 9de7078e250ce789dde7bc905120bfa1df37c5b4331eb0e4af2b37d3693ebb76
4
+ data.tar.gz: 8407611d95791ec631cf0452f305c7668f7187fa637090e3c8664eb4b8e588b9
5
5
  SHA512:
6
- metadata.gz: 34d91c54b4c92ca4081c43c000ed57a115caf69daaf99284011d264f8af0ab97008a785c7e25e309624dbf288091852d3d3f624ca87a3e69313e40a2a18ac238
7
- data.tar.gz: ccaf73cd1843f383418dbfcb7c2a1ab52bc931d7736472d029fa5119e400aa3e3b94207e70bad1a51ba307058689bd575c3ab2e9bea157f928f2fbe34ea0be65
6
+ metadata.gz: d51f03cf45c693bb719f9e6f87fee95b226751a87f59f99ef603fd6a88543e198bbd427f8f8185ae9278f1ec0aa28b6144e2f924d3e3f583c8a8d1612ff0df01
7
+ data.tar.gz: 7aebc3eb2ba81f11b0a3a897c598234f0691571b025763388f4e65ec18c08a94b90b4a92abbabedc4484bf0d5ab3df7d75d212b052e361c1e683a17e72e16bd9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hmvc-rails (1.0.2)
4
+ hmvc-rails (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  Add this line to your application's Gemfile
20
20
 
21
21
  ```ruby
22
- gem 'hmvc-rails', '1.0.2', group: :development
22
+ gem 'hmvc-rails', '1.0.3', group: :development
23
23
  ```
24
24
 
25
25
  Then execute
@@ -69,12 +69,24 @@ insert app/controllers/application_controller.rb
69
69
  rails g hmvc_rails controller_name
70
70
  ```
71
71
 
72
+ ### Short command
73
+
74
+ ```
75
+ hmvc controller_name
76
+ ```
77
+
72
78
  Example
73
79
 
74
80
  ```
75
81
  rails g hmvc_rails admin
76
82
  ```
77
83
 
84
+ Or
85
+
86
+ ```
87
+ hmvc admin
88
+ ```
89
+
78
90
  ```
79
91
  create app/controllers/admin_controller.rb
80
92
  create app/operations/admin/index_operation.rb
@@ -94,7 +106,7 @@ create app/views/admin/new.html.erb
94
106
  create app/views/admin/edit.html.erb
95
107
  ```
96
108
 
97
- ### Options
109
+ ### Options (You can also use short command too)
98
110
 
99
111
  ##### 1. If you want to create with action other than default. You can use option `--action`
100
112
 
data/bin/hmvc ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "hmvc/rails"
5
+ require_relative "../lib/generators/hmvc_rails/hmvc_rails_generator"
6
+
7
+ HmvcRailsGenerator.start(ARGV)
Binary file
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hmvc
4
4
  module Rails
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hmvc-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thucpt
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-19 00:00:00.000000000 Z
11
+ date: 2023-12-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: hmvc-rails is a high-level model for the Rails MVC architecture
14
14
  email:
15
15
  - thuc.phan@tomosia.com
16
- executables: []
16
+ executables:
17
+ - hmvc
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
@@ -25,8 +26,10 @@ files:
25
26
  - LICENSE.txt
26
27
  - README.md
27
28
  - Rakefile
29
+ - bin/hmvc
28
30
  - hmvc-rails-1.0.0.gem
29
31
  - hmvc-rails-1.0.1.gem
32
+ - hmvc-rails-1.0.2.gem
30
33
  - lib/generators/hmvc_rails/hmvc_rails_generator.rb
31
34
  - lib/generators/hmvc_rails/install_generator.rb
32
35
  - lib/generators/hmvc_rails/templates/configures/hmvc_rails.rb.tt