mega_scaffold 0.1.0 → 0.1.1

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: 702f2689fb4ca9497026509a03ebf15fa89c1ced0e74835b1e9660e4d55780b9
4
- data.tar.gz: d818c54ba05bb8d91090a0680b626a285a07a9e6cdcfc7e4047862ee53f3634b
3
+ metadata.gz: 7d2b65caac8d3321654d861a4dd25a6d7db825a167308625ee29e0e188bdad06
4
+ data.tar.gz: 93a8db7e87b5cec416ed01ca232836fb41da30dab1d3ed7112a8f4158514fa2e
5
5
  SHA512:
6
- metadata.gz: 4e15fa19562298c8dcad4cf7f70136e8aaeaad16baf5e15a186a4350de32a061174d854a8c675eb0f01d75c62798c2c9061f5638c69aed4dfe180359ff2f4b20
7
- data.tar.gz: 710922460e48cc82c8873d259b336866ffa20986955c921d324246ad14b4381f84cec8b6a4077886361aae02b86340afb77458d7d1f9f0f5056c09bcd3bee0a4
6
+ metadata.gz: 1d3fead1f8d5256321353185e27d23230b523c5988a4ef457d8808b8607b1b534cfe37a884a3dce91e06c2fd2d084333cf7104cf50dcfbec8a302abb64a243a5
7
+ data.tar.gz: f9f2e289515b55c6984b73915ca56900d9b20e111a8f79b0821575bc2ed7866d15ec03541d89313009f04999f794ef6b3fc2bb6213b468180b8f53064c60dab5
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # mega_scaffold
2
2
 
3
+ [![RailsJazz](https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/my_other.svg?raw=true)](https://www.railsjazz.com)
4
+
3
5
  This is the FASTEST way how to add CRUD functionality for your models. Literally by just adding ONE LINE of code in `routes.rb`.
4
6
 
5
7
  With additional customization options it allows you to build quickly admin panels or simple controllers to output data.
@@ -29,6 +31,11 @@ It works with existing models so all your validations, associations, etc will wo
29
31
  - specify which fields where to show
30
32
  - provide additional options for form fields
31
33
 
34
+ How CRUD looks - simple but created in 2 minutes:
35
+
36
+ ![rails scaffold generator](docs/index.png)
37
+ ![rails scaffold generator](docs/edit.png)
38
+
32
39
  If you need examples of customization (see `test/dummy` as an example):
33
40
 
34
41
  ```ruby
@@ -137,6 +144,7 @@ Rails.application.routes.draw do
137
144
  - work with I18n to translate labels?
138
145
  - how to customize views
139
146
  - view customization per controller
147
+ - refactor how controller is generated on the fly (combine into one file)
140
148
 
141
149
  ## Contributing
142
150
 
@@ -81,7 +81,7 @@ module MegaScaffold
81
81
  end
82
82
 
83
83
  def record_params
84
- params.require(mega_scaffold.model.to_s.downcase).permit(mega_scaffold_permits)
84
+ params.require(mega_scaffold.model.to_s.underscore).permit(mega_scaffold_permits)
85
85
  end
86
86
 
87
87
  end
@@ -1,3 +1,3 @@
1
1
  module MegaScaffold
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mega_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-05-05 00:00:00.000000000 Z
12
+ date: 2022-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -67,20 +67,6 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: country_select
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
70
  - !ruby/object:Gem::Dependency
85
71
  name: sassc
86
72
  requirement: !ruby/object:Gem::Requirement
@@ -242,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
228
  - !ruby/object:Gem::Version
243
229
  version: '0'
244
230
  requirements: []
245
- rubygems_version: 3.2.3
231
+ rubygems_version: 3.3.7
246
232
  signing_key:
247
233
  specification_version: 4
248
234
  summary: Fastest way to add CRUD functionality to your models.