bamboolab_contact_form 0.0.9 → 0.0.10

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/lib/create_notice.rb +9 -18
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c5c9b3d75f9403111c028dc09244eeca9ecab77
4
- data.tar.gz: 750c4bc68f8c2951cccd1606dccd4f69c32a2dc9
3
+ metadata.gz: 54ad3ee01c113a954fd554b3e567a7ce0b67c9fd
4
+ data.tar.gz: 8785243ea4bbcdf379cd8cb258f10231ce13c533
5
5
  SHA512:
6
- metadata.gz: 13dc3c6220447a041d741fa0111db075427026c27db5fa935d263eaba99e1a13e17b3f5fa480faa8a98443c881c940a55da1a94952c38bdfc02e63c092607880
7
- data.tar.gz: eafe5ea82f93a7e787d1f188762f759f8101faef66d840ec599389fded411a2d07e8ec8991a3c699f20bf180a9017531e8835762dbeca46766698fa35f1a923d
6
+ metadata.gz: cc18444e8db00ac3b98337e4955e8b815757dea4119e19f4b836e03789126b0a4beaa0700ba7a10ac427a9db614f8523f94e7401f696d8bb56fc8436dc5328db
7
+ data.tar.gz: 9decd7bc7d38da8ea21596e151c583d933b9677102c884950856a1b735ce93a3b82c0a216e5ee727af471e1980a3a3988a93bc20dde9b285d1c1abed7f395b8b
data/lib/create_notice.rb CHANGED
@@ -1,32 +1,24 @@
1
1
  def create_notice(name, fields, mailer)
2
- puts "--------------------------|"
3
- puts "| |"
2
+ puts "*******************************************************************************************************"
3
+ puts "---------------------------"
4
4
  puts "| BAMBOOLAB CONTACT FORM |"
5
- puts "| |"
6
5
  puts "---------------------------"
7
6
  puts ""
8
- puts " ----------------------------------------------------------------------------------------------------"
9
- puts "/ Add helper to controller where you want to use the form: /"
10
- puts "----------------------------------------------------------------------------------------------------"
7
+ puts ""
8
+ puts "=> Add helper to controller where you want to use the form:"
11
9
  puts " include #{name.capitalize}sHelper"
12
10
  puts " before_action :message_prepare_var"
13
11
  puts ""
14
12
 
15
- puts " ----------------------------------------------------------------------------------------------------"
16
- puts "/ Add this line to your config/routes file: /"
17
- puts "----------------------------------------------------------------------------------------------------"
13
+ puts "=> Add this line to your config/routes file:"
18
14
  puts " post 'send_#{name}', to: '#{name}s#send_#{name}'"
19
15
  puts ""
20
16
 
21
- puts " ----------------------------------------------------------------------------------------------------"
22
- puts "/ Add this line to your views: /"
23
- puts "----------------------------------------------------------------------------------------------------"
17
+ puts "=> Add this line to your views: "
24
18
  puts " <%= render '#{name}s/form' %>"
25
19
  puts ""
26
20
 
27
- puts " ----------------------------------------------------------------------------------------------------"
28
- puts "/ Add this code to you config/environments/development.rb and /production.rb with the right :host : /"
29
- puts "----------------------------------------------------------------------------------------------------"
21
+ puts "=> Add this code to you config/environments/development.rb and /production.rb with the right :host :"
30
22
  puts " config.action_mailer.raise_delivery_errors = false"
31
23
  puts " config.action_mailer.default_url_options = { :host => 'youthost.dev.bambooapp.eu' }"
32
24
  puts " config.action_mailer.delivery_method = :smtp"
@@ -42,7 +34,6 @@ def create_notice(name, fields, mailer)
42
34
  puts " }"
43
35
  puts ""
44
36
 
45
- puts " ----------------------------------------------------------------------------------------------------"
46
- puts "/ And add your personal sendgrid information to config/environment.rb ! /"
47
- puts "----------------------------------------------------------------------------------------------------"
37
+ puts "=> And add your personal sendgrid information to config/environment.rb !"
38
+ puts "*******************************************************************************************************"
48
39
  end
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mislav Kvesić