dimples 6.0.2 → 6.0.3

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dimples +7 -7
  3. data/lib/dimples/version.rb +1 -1
  4. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d605aa50d37fc006b25c9e07e8cd38d3cfec50b
4
- data.tar.gz: 8c530e04c45301eda05b14afcbed9c66707c38cb
3
+ metadata.gz: 986990cd4e91101c9f801db84eb33d44c76b240c
4
+ data.tar.gz: 6083ffd330f3242331d28484249e8951ebbd3ad9
5
5
  SHA512:
6
- metadata.gz: d6bc8038e446d8aef90fa8830518e2367938b9aa9c1b9b3efe5dae0f6a63fb124a804c9c249fdd0ebcde4b2c7e343152bb1375b6e60bb7d7a8d56dfc16233cc3
7
- data.tar.gz: 66b8c129a6e48c671ae079a69a8b0efa2d2db5dada5090f32ce64ae2a413e1dd376d363f37837d5a38daf42516547d0737e9039f69c31b4c30ed17d88f7bfc59
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 = Trollop.options do
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
- Trollop.educate if ARGV.empty?
34
+ Optimist.educate if ARGV.empty?
35
35
  command = ARGV[0]
36
36
 
37
37
  unless valid_commands.include?(command)
38
- Trollop.die "Command must be '#{valid_commands.join('\', \'')}'"
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
- Trollop.die "Config file is empty (#{config_path})" if file_contents.empty?
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
- Trollop.die "Invalid or malformed config file (#{config_path})"
57
+ Optimist.die "Invalid or malformed config file (#{config_path})"
58
58
  end
59
59
  else
60
- Trollop.die "Unable to find config file (#{config_path})"
60
+ Optimist.die "Unable to find config file (#{config_path})"
61
61
  end
62
62
 
63
63
  if Dir.exist?(plugins_path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '6.0.2'
4
+ VERSION = '6.0.3'
5
5
  end
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.2
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: tilt
34
+ name: optimist
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.0'
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: '2.0'
46
+ version: '3.0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: trollop
48
+ name: tilt
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '2.1'
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.1'
60
+ version: '2.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: codeclimate-test-reporter
63
63
  requirement: !ruby/object:Gem::Requirement