qiita-markdown-cli 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 8f3035c9239bffc2e605efc04b83a490dea5c633
4
- data.tar.gz: a629a9dd1eaa1faafe4963d0a0fe8fcaf03e6833
3
+ metadata.gz: 68618e5a4ef62a6467c18cf0a49afa4d7fb59146
4
+ data.tar.gz: ab63b9e01e2499cbeb751f67c57b17046da13e2e
5
5
  SHA512:
6
- metadata.gz: 1c986af432e0e9bab5cb067d5e4e6429842fef9499678fd8f2d9062d4d6bd7f59172000ce90a5e18910fe7ca41150a2bb1d6f86b5f23114fd7cf6b46077c19a0
7
- data.tar.gz: 3350494ab724b53a22c77d58d228d5d046f134912be785691d16776ac16b36e0067e931c19dadc68022aae33a47b1eb0b5810aff71d75674993f4f81b632ca6f
6
+ metadata.gz: 2431a6d07ba1c879cfec37189de1dca976a491d476ebb5bfda616ec2f5090ebe9f23b8caf5608a5cbcec31c7c93c7fd810945776213471f31e33e27a05676530
7
+ data.tar.gz: cddac8b754f4f0cc6ed7ee38df0fd1c0d0faad875d64ea9d6cc47fd492148b3ebc7d2d719cc9acd12638aa65a9e20a27eb6608c052be6a0316f232a19c3c7a7f
data/bin/qmc ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'qiita-markdown'
4
+
5
+ input = STDIN
6
+ input = File.open(ARGV[0]) if ARGV.length > 0
7
+ processor = Qiita::Markdown::Processor.new
8
+ result = processor.call(input.read)
9
+ output = result[:output].to_s
10
+ STDOUT.write(output)
@@ -1,7 +1,7 @@
1
1
  module Qiita
2
2
  module Markdown
3
3
  module Cli
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita-markdown-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hidekazu Kobayashi
@@ -55,7 +55,8 @@ dependencies:
55
55
  description: Command Line Qiita Markdown Compiler
56
56
  email:
57
57
  - kobahide789@gmail.com
58
- executables: []
58
+ executables:
59
+ - qmc
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
@@ -64,8 +65,10 @@ files:
64
65
  - LICENSE.txt
65
66
  - README.md
66
67
  - Rakefile
68
+ - bin/qmc
67
69
  - lib/qiita/markdown/cli.rb
68
70
  - lib/qiita/markdown/cli/version.rb
71
+ - qiita-markdown-cli-0.0.1.gem
69
72
  - qiita-markdown-cli.gemspec
70
73
  homepage: https://github.com/KOBA789/qiita-markdown-cli
71
74
  licenses: