markdown_ruby_documentation 0.16.0 → 0.17.0

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: dba33bb5c3fff6c22a90b0b5c0accc098d41accf
4
- data.tar.gz: 0256afefd071554a0eab63f9b71f11af5acfd030
3
+ metadata.gz: e6efdd722d791f9efbff121bc7c2d40c7681a50d
4
+ data.tar.gz: 18a19452892e4518de5dc935f1a3051ad82da877
5
5
  SHA512:
6
- metadata.gz: 65a66a55cb24015ae47b7e6bbcce892d1bef715e68963a66f2d0b540449fee067edf00b263b9beb3c40a0ea89ee662aec99b2a6485728ad47640fce934ecf98c
7
- data.tar.gz: a6a8396d635b10756dcf93a65e7af4abfaf41e2023328b499b80144ec7309e362bcc1c6cedbf3ca4534776babad06fcb6fe33b86eae7bf7b372301eabd0bae9e
6
+ metadata.gz: 5e2e2bebb7da2bb5b740f18a3aa7372b308bef611b83e29c8165a7c35794333f0c176a9b59fb11d2a18a25fbd2d5c077ca1fddd85324bfefa8f424f440db1410
7
+ data.tar.gz: 7c34cec3b8fa422ba5fd3970e00c7c464ff12e1635da6826c13561e56d3abe69bd582e5de59ff1f924295d089f8ee3fd308567fd39c81c0c84f8a2253233bc74
@@ -145,11 +145,16 @@ module MarkdownRubyDocumentation
145
145
 
146
146
  RUBY_TO_MARKDOWN_PROCESSORS.each do |processor|
147
147
  options = disable_processors.fetch(processor, :enabled)
148
- ruby_source = if options == :enabled
149
- send(processor, ruby_source)
150
- elsif options.is_a?(Hash)
151
- send(processor, ruby_source, options)
152
- end
148
+ ruby_source = case options
149
+ when :enabled
150
+ send(processor, ruby_source)
151
+ when Hash
152
+ send(processor, ruby_source, options)
153
+ when Proc
154
+ send(processor, ruby_source, proc: options)
155
+ else
156
+ ruby_source
157
+ end
153
158
  end
154
159
  ruby_source
155
160
  end
@@ -1,3 +1,3 @@
1
1
  module MarkdownRubyDocumentation
2
- VERSION = "0.16.0"
2
+ VERSION = "0.17.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_ruby_documentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: method_source