hmvc-rails 1.0.2 → 1.0.4

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: 73b11af8ee390e829e9341a2bce486029d5308c93335f181bba090c4aef77938
4
+ data.tar.gz: b235decd6a5cec961b5fae5c718d91af3bad716f0ad2545acde4a0e42084072a
5
5
  SHA512:
6
- metadata.gz: 34d91c54b4c92ca4081c43c000ed57a115caf69daaf99284011d264f8af0ab97008a785c7e25e309624dbf288091852d3d3f624ca87a3e69313e40a2a18ac238
7
- data.tar.gz: ccaf73cd1843f383418dbfcb7c2a1ab52bc931d7736472d029fa5119e400aa3e3b94207e70bad1a51ba307058689bd575c3ab2e9bea157f928f2fbe34ea0be65
6
+ metadata.gz: 4e956f0455cb368080edc29d7cba1099da1b0a75ccd5b895cc3fdc8372cc004a4e4c33196f82576b830a96c450169d1d8ae8a562654f6cbc00b0fe55514de041
7
+ data.tar.gz: 618dcc83e19aeb72e397b26bf90c54b55acd241b5c12d7a67040256900f3defbfc4c06fd8e628cae1695ebcd0c636207a870ea1a7a16be624707c57d952817cf
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,10 +69,22 @@ 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
82
+
83
+ ---
84
+
85
+ OR
86
+
87
+ hmvc admin
76
88
  ```
77
89
 
78
90
  ```
@@ -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
 
@@ -176,6 +188,8 @@ If you want to rollback the hmvc-rails generator. You can run command
176
188
  rails d hmvc_rails controller_name
177
189
  ```
178
190
 
191
+ - - -
192
+
179
193
  ## Test and debug gem on development environment
180
194
 
181
195
  - Add gem and run `bundle` (link to gem hmvc-rails project)
data/bin/hmvc ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "#{Dir.pwd}/config/environment"
5
+ require "hmvc/rails"
6
+ require_relative "../lib/generators/hmvc_rails/hmvc_rails_generator"
7
+
8
+ Hmvc::Rails.configuration
9
+ HmvcRailsGenerator.start(ARGV)
Binary file
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.4"
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.4
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,11 @@ 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
33
+ - hmvc-rails-1.0.3.gem
30
34
  - lib/generators/hmvc_rails/hmvc_rails_generator.rb
31
35
  - lib/generators/hmvc_rails/install_generator.rb
32
36
  - lib/generators/hmvc_rails/templates/configures/hmvc_rails.rb.tt