dimples 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dimples +7 -7
- data/lib/dimples/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 986990cd4e91101c9f801db84eb33d44c76b240c
|
4
|
+
data.tar.gz: 6083ffd330f3242331d28484249e8951ebbd3ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d79ac9a507c426f73ec8bcf29a2dd8de4b8a2321637d6e92b054971b1611a7508f6fe35450693cfa4071707e54ac0b6476f693a80b11915db922e756c54dd1c5
|
7
|
+
data.tar.gz: c451a21bffb0cf3bdcf235efa43e6df673976238133c1b1e46c0f4c89d75e18411f6260db9880b58dd2a99c7dd0ee41077ed110e45b521248c3b444da243f9c5
|
data/bin/dimples
CHANGED
@@ -5,8 +5,8 @@ $LOAD_PATH.unshift(File.join(__dir__, '..', 'lib'))
|
|
5
5
|
|
6
6
|
require 'dimples'
|
7
7
|
require 'dimples/version'
|
8
|
+
require 'optimist'
|
8
9
|
require 'json'
|
9
|
-
require 'trollop'
|
10
10
|
|
11
11
|
trap('SIGINT') do
|
12
12
|
puts 'Generation cancelled!'
|
@@ -15,7 +15,7 @@ end
|
|
15
15
|
|
16
16
|
valid_commands = %w[build]
|
17
17
|
|
18
|
-
options =
|
18
|
+
options = Optimist.options do
|
19
19
|
version "dimples v#{Dimples::VERSION}"
|
20
20
|
banner <<-BANNER
|
21
21
|
A simple static site generator.
|
@@ -31,11 +31,11 @@ BANNER
|
|
31
31
|
opt :verbose, 'Verbose mode', default: false
|
32
32
|
end
|
33
33
|
|
34
|
-
|
34
|
+
Optimist.educate if ARGV.empty?
|
35
35
|
command = ARGV[0]
|
36
36
|
|
37
37
|
unless valid_commands.include?(command)
|
38
|
-
|
38
|
+
Optimist.die "Command must be '#{valid_commands.join('\', \'')}'"
|
39
39
|
end
|
40
40
|
|
41
41
|
source_path = if options[:source]
|
@@ -50,14 +50,14 @@ config_path = options[:config] || File.join(source_path, 'config.json')
|
|
50
50
|
if File.exist?(config_path)
|
51
51
|
begin
|
52
52
|
file_contents = File.read(config_path)
|
53
|
-
|
53
|
+
Optimist.die "Config file is empty (#{config_path})" if file_contents.empty?
|
54
54
|
|
55
55
|
config = JSON.parse(file_contents, symbolize_names: true)
|
56
56
|
rescue JSON::ParserError
|
57
|
-
|
57
|
+
Optimist.die "Invalid or malformed config file (#{config_path})"
|
58
58
|
end
|
59
59
|
else
|
60
|
-
|
60
|
+
Optimist.die "Unable to find config file (#{config_path})"
|
61
61
|
end
|
62
62
|
|
63
63
|
if Dir.exist?(plugins_path)
|
data/lib/dimples/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dimples
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bogan
|
@@ -31,33 +31,33 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.5.7
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: optimist
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '3.0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '3.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: tilt
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '2.
|
53
|
+
version: '2.0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '2.
|
60
|
+
version: '2.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: codeclimate-test-reporter
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|