dimples 6.2.2 → 6.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21a60d2b84e1719f4e61d24bf855fbcf51ebb21a
4
- data.tar.gz: fdc5daaa67484d85c6fa745f8a4df44184543fb2
3
+ metadata.gz: 85ded40d24e588b3548c0a6ba6fa4db163a2685a
4
+ data.tar.gz: 530f631fc2d9636b7b99bb69f1a6f0cb22f26abc
5
5
  SHA512:
6
- metadata.gz: 485c8d88d322a27221e219de92ba0144d76bc7358c2f1026261efc22672451770d8fbb3b72143f15a20b795452714b12c2a3ed374fb2b7f0db23051ac4998bd3
7
- data.tar.gz: 5333091633ef50a30261559a3ee0c53bfc199c37e7793f9d581c38c8145a85c78b6a9c1cf8d2b4b1a0309c2ecba5f5e4f5ce7c5f133dcd49722d687394281a15
6
+ metadata.gz: cdeb5970e309864e4fe0f91a9f560d9823516c5a0fd9d8ec114fab6024fc0cb97b1036adfbe2551dc881a63989461e77bb81ebb162e1037114946943c653aaa6
7
+ data.tar.gz: ceaff9abb541fa96e00f064e18c8d016bd600db7dd0f1b83e60e04426a29d0e1efbdd4d6cc7728c8895478a281e8dddce100daf15f5c98804368487cf6f297bd
@@ -70,7 +70,7 @@ module Dimples
70
70
  end
71
71
 
72
72
  def read_files(path)
73
- Dir.glob(File.join(path, '**', '*.*')).sort
73
+ Dir[File.join(path, '**', '*.*')].sort
74
74
  end
75
75
 
76
76
  def read_templates
@@ -114,10 +114,10 @@ module Dimples
114
114
 
115
115
  def create_output_directory
116
116
  if Dir.exist?(@paths[:destination])
117
- FileUtils.remove_dir(@paths[:destination])
117
+ FileUtils.rm_r(@paths[:destination], secure: true)
118
+ else
119
+ FileUtils.mkdir_p(@paths[:destination])
118
120
  end
119
-
120
- FileUtils.mkdir_p(@paths[:destination])
121
121
  rescue StandardError => e
122
122
  message = "Couldn't prepare the output directory (#{e.message})"
123
123
  raise GenerationError, message
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '6.2.2'
4
+ VERSION = '6.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.2
4
+ version: 6.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-29 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie