bamboolab_contact_form 0.0.10 → 0.0.11

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 +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54ad3ee01c113a954fd554b3e567a7ce0b67c9fd
4
- data.tar.gz: 8785243ea4bbcdf379cd8cb258f10231ce13c533
3
+ metadata.gz: 42b27616906be23851201d5b37ca46ca7ccec823
4
+ data.tar.gz: 9a8c277e276859a01c6b63d269a88bec7fad4392
5
5
  SHA512:
6
- metadata.gz: cc18444e8db00ac3b98337e4955e8b815757dea4119e19f4b836e03789126b0a4beaa0700ba7a10ac427a9db614f8523f94e7401f696d8bb56fc8436dc5328db
7
- data.tar.gz: 9decd7bc7d38da8ea21596e151c583d933b9677102c884950856a1b735ce93a3b82c0a216e5ee727af471e1980a3a3988a93bc20dde9b285d1c1abed7f395b8b
6
+ metadata.gz: 73f2e1213b1373dc4ae6a8901c9ec3c8acdba499461b1548cb1c02a01fa2574dba1e7450d94c7017f74f4be2cfbdd696abb860e8398ffd6cf51c6b08e28adcb5
7
+ data.tar.gz: b848f84c2b17df4eabceb9aa587f50aa03866a5fc59e937dde2a9c549ec4dde1c7d0652979f65b3bca30370fdb139d9889d64ea65c906682a0798a5877986912
data/lib/create_notice.rb CHANGED
@@ -4,10 +4,9 @@ def create_notice(name, fields, mailer)
4
4
  puts "| BAMBOOLAB CONTACT FORM |"
5
5
  puts "---------------------------"
6
6
  puts ""
7
- puts ""
8
7
  puts "=> Add helper to controller where you want to use the form:"
9
8
  puts " include #{name.capitalize}sHelper"
10
- puts " before_action :message_prepare_var"
9
+ puts " before_action :#{name}_prepare_var"
11
10
  puts ""
12
11
 
13
12
  puts "=> Add this line to your config/routes file:"
@@ -18,9 +17,9 @@ def create_notice(name, fields, mailer)
18
17
  puts " <%= render '#{name}s/form' %>"
19
18
  puts ""
20
19
 
21
- puts "=> Add this code to you config/environments/development.rb and /production.rb with the right :host :"
20
+ puts "=> Add this code to you config/environments/development.rb and /production.rb with the right host :"
22
21
  puts " config.action_mailer.raise_delivery_errors = false"
23
- puts " config.action_mailer.default_url_options = { :host => 'youthost.dev.bambooapp.eu' }"
22
+ puts " config.action_mailer.default_url_options = { :host => 'yourhost.dev.bambooapp.eu' }"
24
23
  puts " config.action_mailer.delivery_method = :smtp"
25
24
  puts " config.action_mailer.smtp_settings = {"
26
25
  puts " address: ENV['SMTP_SERVER'],"
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mislav Kvesić