dimples 6.5.0 → 6.5.1

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
  SHA256:
3
- metadata.gz: 6c408ebc105da1277ad32d6cc979cd8be0ac1d01a063dee1bd96e62a4a8f7066
4
- data.tar.gz: 48a27e0263f74bc939f043ef961c95113be22280377ecdaf992967461bf4c3e9
3
+ metadata.gz: 40268561d3fcd161f8dc7321670df7083d56f8e66a77d2380723e3fd9be31eb8
4
+ data.tar.gz: cbb449143625711925e78856ff3fe1b4b2e6848792348240e0c9323f6ffcd895
5
5
  SHA512:
6
- metadata.gz: 4294ccad6f74b54cd8546d12f23ce976bffccfd6852a3ef1711103cc9459649dd247b360ba14eb77ebe42bad145fe355e88eb6be62d792bad8f2768351c48918
7
- data.tar.gz: 787ef8197927275b4667aeb454a660ea3e7a34a8c1a17ba172de8504828bd3e020baf3f5ffdcb708a4d521ab786279fa03481221f17c98d45c9e7e96d681fff8
6
+ metadata.gz: 10d6c371b26817b5c460d18375348b967c7c308b15e522c77d3f3dd0c801bd47c282d48d93f320d52efa3e23592aefa0290d8bffa81d6caae16bc964f470387d
7
+ data.tar.gz: b9ea582360edfd2b29dfcc07c2161b7d9cfc9c1ad33e0a9743a9d0b6fa3f3efa3fbacc516c8e4843e8566cf50c765c3eaef0a731bfc962c465c216d9b121f230
@@ -3,6 +3,10 @@
3
3
  module Dimples
4
4
  # Default configuration options for a site.
5
5
  module Configuration
6
+ def self.prepare(config)
7
+ Hashie::Mash.new(defaults).deep_merge(config)
8
+ end
9
+
6
10
  def self.defaults
7
11
  {
8
12
  source: Dir.pwd,
@@ -14,7 +14,7 @@ module Dimples
14
14
  attr_reader :latest_post
15
15
 
16
16
  def initialize(config = {})
17
- @config = Hashie::Mash.new(Configuration.defaults).deep_merge(config)
17
+ @config = Configuration.prepare(config)
18
18
 
19
19
  @paths = {}.tap do |paths|
20
20
  paths[:source] = File.expand_path(@config.source)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '6.5.0'
4
+ VERSION = '6.5.1'
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.5.0
4
+ version: 6.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-14 00:00:00.000000000 Z
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie