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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/bamboolab_contact_form +17 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e4b5a7f016b94531515d3c29c082a9beb930232
4
- data.tar.gz: 34b5822ff3eaf4625358b1516618e8c51677cc21
3
+ metadata.gz: 4a6f311f354679203f4044d2fb048a9d1f307a7a
4
+ data.tar.gz: dae144d97d577fab509c3794099bf464a7d2fdb4
5
5
  SHA512:
6
- metadata.gz: e0be62f4b534c272ef59e1311f69a95462af12b3cde75faf3b09f4f26f83ce32b2634565a6d98703c78b6994c05725d6930f01288f19db8e56fbca8d98c9b0f0
7
- data.tar.gz: 2b94fe45f9c045bc1f302ce059a4e7825c9a08e6230104b2b6499921c4b4e82abcfef323fb33795b56a2714e369db05167ed48a5193e78c0992aff69d67ac361
6
+ metadata.gz: 38d3eaff9aae7ed2e8997d7177de1cb5cc39e0e762184df96dd53f0da005804e9581b657ee9aebdcf6977f6a330906e29cb372fc8ce893233c2fc3eef2aab17b
7
+ data.tar.gz: 75008e454c339604cec8804e94b6fcc4a536ca87c65be721730c776613c339dd9ebe352e3dd5cb567553988842668270d97371cbf921ca8ec2b4e4b238ccd9d0
@@ -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
- system("rails generate mailer #{name}s") unless mailer_arg=="nil"
62
- form.mailer unless mailer_arg=="nil"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bamboolab_contact_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mislav Kvesić