dimples 2.5.0 → 2.5.1

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
  SHA1:
3
- metadata.gz: ab668fba29311d490d3187f339fb6092ddce1b39
4
- data.tar.gz: e86ce790ccd489891f8ee06d88a9cdddce099015
3
+ metadata.gz: b28b18c7a1d70bec5bb597f86ce463cf1ba1d145
4
+ data.tar.gz: adabb1486a6d04c4ad7ac6cb8b655898cf0c987e
5
5
  SHA512:
6
- metadata.gz: d41ec0a5a57ae5f1a5e7c4d31398a8a925ae78a2c956574aec11b9a7510da53b46ff8ab0fed38a6abd8c50f582a3aaf86f01a60bbe3ea9924cb1a9834dc9b12e
7
- data.tar.gz: e975c1a286092a240a0721e7eac2a445e1b6143f9004bb668b10631716c197ddccd70b24cb5107a7281c3e837c7a32a19704043158ee704e3536301b1010290b
6
+ metadata.gz: 7f2c51438a1f720fbff005ee906644e6debfdd2c87136012bab712acb948371a4eefae56d05ed1dce372f89e9129c32daf63ff89d6c746f06d1d613915e75316
7
+ data.tar.gz: 45e37e1cc7f02fb717c097ab142b6689c2643520c18620986d4a1051cc5091bc972dcf19eb02bbf27659193547888812bf2a676598f9a0022d9ff2429f4ebdb2
@@ -16,13 +16,13 @@ valid_commands = %w[build]
16
16
 
17
17
  options = Trollop.options do
18
18
  version "dimples v#{Dimples::VERSION}"
19
- banner <<~EOS
20
- A very, very simple static site generator.
19
+ banner <<-EOS
20
+ A very, very simple static site generator.
21
21
 
22
- Usage:
23
- dimples <#{valid_commands.join('|')}> [options]
22
+ Usage:
23
+ dimples <#{valid_commands.join('|')}> [options]
24
24
 
25
- Options:
25
+ Options:
26
26
  EOS
27
27
  opt :config, 'Config file path', type: :string
28
28
  opt :lib, 'Library file path', default: 'lib'
@@ -50,7 +50,7 @@ module Dimples
50
50
  end
51
51
 
52
52
  def output_path(parent_path)
53
- parent_path = @date.strftime(parent_path) if parent_path.match?(/%/)
53
+ parent_path = @date.strftime(parent_path) if parent_path =~ /%/
54
54
  File.join([parent_path, @slug.to_s, "#{@filename}.#{@extension}"])
55
55
  end
56
56
  end
@@ -322,7 +322,7 @@ module Dimples
322
322
  url: url
323
323
  }
324
324
 
325
- if (index - 1).positive?
325
+ if (index - 1) > 0
326
326
  pagination[:previous_page] = index - 1
327
327
  pagination[:previous_page_url] = url
328
328
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dimples
4
- VERSION = '2.5.0'
4
+ VERSION = '2.5.1'.freeze
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: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.6.11
173
+ rubygems_version: 2.4.5
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: A basic static site generator