dimples 10.7.1 → 10.7.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19f9d256ff37d726350cbe72158e44ff82f15d92f673462af24601442f5f1f0c
4
- data.tar.gz: 0f3b7f36d08d4e7de7b575ebf45b9d4f3a6bcc09cb5084586b7154168e06c943
3
+ metadata.gz: 4b348602f3096e0062a5bfe4a1a69c7396e28e06fb505b86e6f265418b31ae1e
4
+ data.tar.gz: 2335b720796fdbd545f0ca7813f720de50ad6cf39f6aabf9a624f26cf569707c
5
5
  SHA512:
6
- metadata.gz: ea1f3c03419051cfa846d77e176fcba2d4b24cb0f2eef6cc2fdbb7936b72ef67368382042dfa93cfd7a46b7986c6e0a67854668493bd1acacab982d78259b075
7
- data.tar.gz: 6aab410f757d1398138ddc98746534fd7d890f1dc147d336ef8c372427732a3efef8595eb781d585ad05dd5c555dbb4b9c6d991a6c0ffe85379e792aa9c4921e
6
+ metadata.gz: 907c0fec40c9bbd9f2b572021008f30cfa8e37a5c07a696eafdc9c7f4f45328e07ce05945be9806bc0df6dc9c67b090688a73918645df5b7d46390f10c9fc37b
7
+ data.tar.gz: 9ad1d9698bd51ca77010a172e4901887f919a724285b20b0e451f11d33742aada0442aacb66f3ecd6e338ab195794dab40773be208131744188171892d8099c8
data/bin/dimples CHANGED
@@ -4,6 +4,7 @@
4
4
  $LOAD_PATH.unshift(File.join(__dir__, '..', 'lib'))
5
5
 
6
6
  require 'dimples'
7
+ require 'optparse'
7
8
  require 'yaml'
8
9
 
9
10
  config_path = File.join(Dir.pwd, 'config.yml')
@@ -17,6 +18,14 @@ if File.exist?(config_path)
17
18
  end
18
19
  end
19
20
 
21
+ OptionParser.new do |parser|
22
+ parser.banner = "Usage: dimples [options]"
23
+
24
+ parser.on("-o [path]", "--output-path [path]", String, "The directory where your site will be generated") do |option|
25
+ config[:build] = option unless option.nil?
26
+ end
27
+ end.parse!
28
+
20
29
  begin
21
30
  Dimples::Site.generate(config: config)
22
31
  rescue StandardError => e
@@ -15,7 +15,7 @@ module Dimples
15
15
  def self.defaults
16
16
  {
17
17
  source: Dir.pwd,
18
- build: './site',
18
+ build: File.expand_path(File.join(Dir.pwd, 'site')),
19
19
  pathnames: { posts: 'posts', categories: 'categories' },
20
20
  pagination: { page_prefix: 'page_', per_page: 5 },
21
21
  generation: { main_feed: true, category_feeds: false, overwrite_existing_site: false }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '10.7.1'
4
+ VERSION = '10.7.2'
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: 10.7.1
4
+ version: 10.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan