kramdown-asciidoc 1.0.0.rc.1 → 1.0.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
  SHA256:
3
- metadata.gz: fbe551c7f58e65076b32bccc18a15c31d4ad2f7a6e7510ff37095e1782d0bd90
4
- data.tar.gz: 1bbf3ccce901f2b9dd470a09a9f54fe257461922cbb1ef959cbc9071a3d72bca
3
+ metadata.gz: b9e3b18f4837c8739d81fce5fb674ced60b8c3708a5e5ddfa9895c90d2318fe3
4
+ data.tar.gz: d86f257533132bc3a4f2b973e5fd503a9934d83308db75672c8d6947948c902e
5
5
  SHA512:
6
- metadata.gz: e1ee0ea89e5769051d486a231f15f1c9e6ad0ad7e8a1094573d4cf2fa994b8c2a581db49b65486b188101c16dbf16ce05f032ca17d598cd360cfbaf1c243bcbb
7
- data.tar.gz: '0381ac4bade1dc05edcc5825e3acbc4074ef9ed692ea8074e7eab89d69f20074c06478d4bd9407441263a261b0a132a0e385d2798f551a62529cc57bc149ec89'
6
+ metadata.gz: b00c3a853eaaacbc611905d7e3cacda53864a074017176b3a3eebe5ee41c59b7ee898298f62e18721c54e0930e71c7e037404c2b681c712b65065f429c5483f1
7
+ data.tar.gz: 2fb34cf6bf03a7578a3ee31fe293ae5dd7e911753cf30998132ee9f2872f96c673213ae621a68c5cde1afc15591b3db3feaf34b24938b07b972f1ed549d1a0d7
data/CHANGELOG.adoc CHANGED
@@ -5,6 +5,20 @@
5
5
  This document provides a high-level view of the changes to {project-name} by release.
6
6
  For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
7
7
 
8
+ == 1.0.0 (2018-11-07) - @mojavelinux
9
+
10
+ === Changed
11
+
12
+ * change CLI to use default options from API
13
+
14
+ === Fixed
15
+
16
+ * automatically require version file so -v CLI flag reports correct version
17
+
18
+ === Details
19
+
20
+ {uri-repo}/releases/tag/v1.0.0[git tag] | {uri-repo}/compare/v1.0.0.rc.1\...v1.0.0[full diff]
21
+
8
22
  == 1.0.0.rc.1 (2018-11-06) - @mojavelinux
9
23
 
10
24
  === Added
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = {project-name} (Markdown to AsciiDoc)
2
2
  Dan Allen <https://github.com/mojavelinux>
3
- v1.0.0.rc.1, 2018-11-06
3
+ v1.0.0, 2018-11-07
4
4
  // Aliases:
5
5
  :project-name: Kramdown AsciiDoc
6
6
  :project-handle: kramdown-asciidoc
@@ -2,12 +2,11 @@ require 'optparse'
2
2
  require 'pathname'
3
3
 
4
4
  module Kramdown; module AsciiDoc
5
+ autoload :VERSION, (::File.join __dir__, 'version.rb')
5
6
  class Cli
6
7
  def parse args
7
8
  options = {
8
- attributes: {},
9
- input: 'GFM',
10
- html_to_native: true,
9
+ attributes: {}
11
10
  }
12
11
 
13
12
  opt_parser = ::OptionParser.new do |opts|
@@ -27,7 +26,7 @@ module Kramdown; module AsciiDoc
27
26
  options[:input] = format
28
27
  end
29
28
 
30
- opts.on '-a KEY[=VALUE]', '--attribute=KEY[=VALUE]', 'Set an attribute in the document header (accepts: key, key!, or key=value' do |attr|
29
+ opts.on '-a KEY[=VALUE]', '--attribute=KEY[=VALUE]', 'Set an attribute in the AsciiDoc document header (accepts: key, key!, or key=value)' do |attr|
31
30
  key, val = attr.split '=', 2
32
31
  val = '' unless val
33
32
  options[:attributes][key] = val
@@ -37,7 +36,7 @@ module Kramdown; module AsciiDoc
37
36
  options[:wrap] = wrap
38
37
  end
39
38
 
40
- opts.on '--imagesdir=DIR', 'Set the leading directory to remove from image references' do |dir|
39
+ opts.on '--imagesdir=DIR', 'Set the imagesdir attribute in the AsciiDoc document header (also remove the value from the start of image paths)' do |dir|
41
40
  options[:imagesdir] = dir
42
41
  end
43
42
 
@@ -75,7 +74,7 @@ module Kramdown; module AsciiDoc
75
74
  end
76
75
 
77
76
  opts.on '-v', '--version', %(Display version information and exit) do
78
- $stdout.write %(#{opts.program_name} #{VERSION}\n)
77
+ $stdout.write %(#{opts.program_name} #{::Kramdown::AsciiDoc::VERSION}\n)
79
78
  return 0
80
79
  end
81
80
  end
@@ -1,3 +1,3 @@
1
1
  module Kramdown; module AsciiDoc
2
- VERSION = '1.0.0.rc.1'
2
+ VERSION = '1.0.0'
3
3
  end; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-asciidoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-06 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -124,9 +124,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - ">"
127
+ - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 1.3.1
129
+ version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 2.7.8