bamboolab_contact_form 0.0.22 → 0.0.23
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 +4 -4
- data/bin/bamboolab_contact_form +17 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a6f311f354679203f4044d2fb048a9d1f307a7a
|
4
|
+
data.tar.gz: dae144d97d577fab509c3794099bf464a7d2fdb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38d3eaff9aae7ed2e8997d7177de1cb5cc39e0e762184df96dd53f0da005804e9581b657ee9aebdcf6977f6a330906e29cb372fc8ce893233c2fc3eef2aab17b
|
7
|
+
data.tar.gz: 75008e454c339604cec8804e94b6fcc4a536ca87c65be721730c776613c339dd9ebe352e3dd5cb567553988842668270d97371cbf921ca8ec2b4e4b238ccd9d0
|
data/bin/bamboolab_contact_form
CHANGED
@@ -30,14 +30,20 @@ require 'bamboolab_contact_form'
|
|
30
30
|
form = Bamboolab_contact_form.new(name, fields, mailer, translations)
|
31
31
|
|
32
32
|
if save == "destroy"
|
33
|
+
puts "Start deleting"
|
33
34
|
system("rails destroy controller #{name}s")
|
34
35
|
system("rails destroy model #{name}")
|
35
36
|
system("rails destroy mailer #{name}s")
|
37
|
+
puts "End"
|
36
38
|
else
|
39
|
+
puts "rails generate controller #{name}s"
|
37
40
|
system("rails generate controller #{name}s")
|
38
41
|
|
42
|
+
puts "rails generate model #{name.capitalize}"
|
39
43
|
unless save
|
44
|
+
puts "filling the model #{name.capitalize}"
|
40
45
|
form.model
|
46
|
+
puts "filling the controller #{name}s"
|
41
47
|
form.controller
|
42
48
|
else
|
43
49
|
fields_string = ""
|
@@ -51,16 +57,25 @@ else
|
|
51
57
|
end
|
52
58
|
|
53
59
|
system("rails generate model #{name.capitalize}#{fields_string}")
|
60
|
+
puts "filling the model #{name.capitalize}"
|
54
61
|
form.model_save
|
62
|
+
puts "filling the controller #{name}s"
|
55
63
|
form.controller_save
|
56
64
|
end
|
57
65
|
|
66
|
+
puts "filling the helper #{name}"
|
58
67
|
form.helper
|
68
|
+
puts "filling the view #{name}s"
|
59
69
|
form.view
|
60
70
|
|
61
|
-
|
62
|
-
|
71
|
+
unless mailer_arg=="nil"
|
72
|
+
puts "rails generate mailer #{name}"
|
73
|
+
system("rails generate mailer #{name}s")
|
74
|
+
puts "filling the mailer #{name}"
|
75
|
+
form.mailer
|
76
|
+
end
|
63
77
|
|
78
|
+
puts "making the translation"
|
64
79
|
form.translation
|
65
80
|
|
66
81
|
form.notice
|