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 +4 -4
- data/lib/dimples/site.rb +4 -4
- data/lib/dimples/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85ded40d24e588b3548c0a6ba6fa4db163a2685a
|
4
|
+
data.tar.gz: 530f631fc2d9636b7b99bb69f1a6f0cb22f26abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdeb5970e309864e4fe0f91a9f560d9823516c5a0fd9d8ec114fab6024fc0cb97b1036adfbe2551dc881a63989461e77bb81ebb162e1037114946943c653aaa6
|
7
|
+
data.tar.gz: ceaff9abb541fa96e00f064e18c8d016bd600db7dd0f1b83e60e04426a29d0e1efbdd4d6cc7728c8895478a281e8dddce100daf15f5c98804368487cf6f297bd
|
data/lib/dimples/site.rb
CHANGED
@@ -70,7 +70,7 @@ module Dimples
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def read_files(path)
|
73
|
-
Dir
|
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.
|
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
|
data/lib/dimples/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|