bamboolab_contact_form 0.0.28 → 0.0.29

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_mailer.rb +2 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 661e589927af58ab5ce351a1d041c7171b0411cf
4
- data.tar.gz: 3c4e1076bad9e3ba5f966e8db29db33a4c636f65
3
+ metadata.gz: 2f12627086b044bbe7b52b7ddb9f74037534b413
4
+ data.tar.gz: c16ae849c403a2ee51a0b4c80c2568a2a6a608d0
5
5
  SHA512:
6
- metadata.gz: f7d1700a4b4d3edb738340af09d97959d5fc1373416dfe67afad918f510db6b19420bdc6f6fddb6d6fc269cba6c3ec71900ac7cc5ddad6b631a25171a27830e8
7
- data.tar.gz: 1db01df9903b528db11bd09b25595138e24b99d7857080efd4cc80caa13fc2e61d696ea9c5aa5155ef305a9113bcdafab5d43a2bb8da914d365e60296465279b
6
+ metadata.gz: 10fe14d3d13e6498580661c61b1e6266cc81aa9d725ef0e01d4d2c0cf4f3bcba042fb0e7966cdd2c169b0bed052945dc37dc0f4de44d86ea5157cefa68acca30
7
+ data.tar.gz: f0549b0dbb714ccfec26337c8adbd80afe393e0748b1c1038a6f9df015ee95aac27f31870ade7718880d8d434325b7029839c9fd384da509c967ae8b2c5d0f2c
data/lib/create_mailer.rb CHANGED
@@ -21,11 +21,8 @@ end"
21
21
  "
22
22
 
23
23
  dirname = File.dirname("app/views/#{name}s_mailer/#{name}_contact.html.erb")
24
- tokens = dirname.split(/[\/\\]/)
25
-
26
- 1.upto(tokens.size) do |n|
27
- dir = tokens[0...n]
28
- Dir.mkdir(dir) unless Dir.exist?(dir)
24
+ unless File.directory?(dirname)
25
+ FileUtils.mkdir_p(dirname)
29
26
  end
30
27
 
31
28
  File.open("app/views/#{name}s_mailer/#{name}_contact.html.erb", "w+") {|f| f.write(write_mailer_view) }
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.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mislav Kvesić