formify 0.2.0 → 0.2.1
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/lib/formify/version.rb +1 -1
- data/lib/generators/form/form_generator.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90fcfde040c229acd57dbd5efcaf24522560be1b9ee67a7d165d0dbf3802d253
|
4
|
+
data.tar.gz: 44fa8d83fe094e1d09a21649df88099aedea5ce871068eac57e19d0d78bb5a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ff3171f24e232fb3bfefe7449cba76dabe52e42afb0bae9f53546aaff4818e3cdd125b292ecffdd18c2fbd94ca2bb9e170c36452394694dd54f6f7e58a921f
|
7
|
+
data.tar.gz: 1ec7fac90735e9e60a080dd518f950daf9c255f7643f3803f936209f1bd7d1875dcd1083aee515f05d28d58301151b147151c2e02f7b511ad0db6c336b3d675c
|
data/Gemfile.lock
CHANGED
data/lib/formify/version.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
require 'rails/generators/named_base'
|
2
2
|
|
3
3
|
class FormGenerator < Rails::Generators::NamedBase
|
4
|
-
source_root File.expand_path('
|
4
|
+
source_root File.expand_path('templates', __dir__)
|
5
5
|
# check_class_collision
|
6
6
|
|
7
7
|
def generate_form
|
8
|
-
template
|
8
|
+
template 'form.rb', File.join('app/lib/forms', class_path, "#{file_name}.rb")
|
9
9
|
end
|
10
10
|
|
11
11
|
def generate_form_spec
|
12
|
-
template
|
12
|
+
template 'form_spec.rb', File.join('spec/lib/forms', class_path, "#{file_name}_spec.rb")
|
13
13
|
end
|
14
14
|
|
15
15
|
private
|