showdown 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 958ee315105469253d9fbd832c171b2ef1f15e19
4
- data.tar.gz: 13016588093dae912458b1d099bd795eb9cbdb16
3
+ metadata.gz: e21a1ce124c2b79d6a9485b314919ab794baca28
4
+ data.tar.gz: 43fed1650145f37f95d1d1d1ebeece295b9a1c49
5
5
  SHA512:
6
- metadata.gz: 0cbb041f83eb57906b36bcbb10c9079786da5feabd8c2ecd3a51df6d3c8ba4c6995ebbf40f9a8c3f4fedc30648b64269eabec9a29ad9f13261a931230417908c
7
- data.tar.gz: daa52d897ba08d125fd118a2b76ab4cb809d28cb4b32674b4470cd0fef79601a25fdee8f0826759f8e7be295efc31be56407ec4e9776f07133eae09aabf2b854
6
+ metadata.gz: 17c445eadc4c02a9e571379d037fcf1f6f6d5ecff00244ccdfdbac8787c38bdef539cc37778f1bee74899a1cd565cfd6ef6266860e1788b27778d63b5480268f
7
+ data.tar.gz: 5091d3896fd4dcc171fc2de7c59bd6a57a602851990260974a0d70780c5b4229dfb4a86042c652a0c23fcb49f474379be93b1a79b30e926d13293f415a855064
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in md_preview.gemspec
3
+ # Specify your gem's dependencies in showdown.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -1,20 +1,18 @@
1
- # md_preview
1
+ # showdown
2
2
 
3
3
  Near-Real time Markdown viewer.
4
4
 
5
5
  ## Installation
6
6
 
7
- Install it yourself as:
8
-
9
- $ gem install md_preview
7
+ $ gem install showdown
10
8
 
11
9
  ## Usage
12
10
 
13
- $ md_preview /path/to/your/file.md
11
+ $ showdown /path/to/your/file.md
14
12
 
15
13
  ## Contributing
16
14
 
17
- 1. Fork it ( https://github.com/[my-github-username]/md_preview/fork )
15
+ 1. Fork it ( https://github.com/[my-github-username]/showdown/fork )
18
16
  2. Create your feature branch (`git checkout -b my-new-feature`)
19
17
  3. Commit your changes (`git commit -am 'Add some feature'`)
20
18
  4. Push to the branch (`git push origin my-new-feature`)
@@ -8,7 +8,7 @@ Signal.trap(:INT) do
8
8
  end
9
9
 
10
10
  def help
11
- $stdout.puts 'usage: md_preview <path>'
11
+ $stdout.puts 'usage: showdown <path>'
12
12
  end
13
13
 
14
14
  unless ARGV[0]
data/lib/config.ru CHANGED
@@ -1,7 +1,7 @@
1
1
  lib = File.expand_path('..', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
- require 'md_preview'
4
+ require 'showdown'
5
5
 
6
6
  puts "tartget: #{ENV['TARGET_PATH']}"
7
7
 
@@ -10,5 +10,5 @@ map '/' do
10
10
  end
11
11
 
12
12
  map '/websocket' do
13
- run MdPreview::RackApp.new # backend: { debug: true }
13
+ run Showdown::RackApp.new # backend: { debug: true }
14
14
  end
data/lib/html/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
- <title>Sample of web_socket.js</title>
5
+ <title>showdown</title>
6
6
  <script type="text/javascript">
7
7
  var ws;
8
8
  function init() {
@@ -1,8 +1,8 @@
1
1
  require 'rack/websocket'
2
- require 'md_preview/version'
2
+ require 'showdown/version'
3
3
  require 'redcarpet'
4
4
 
5
- module MdPreview
5
+ module Showdown
6
6
  # Convert markdown to html.
7
7
  module Converter
8
8
  def markdown
@@ -0,0 +1,3 @@
1
+ module Showdown
2
+ VERSION = '0.0.2'
3
+ end
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'md_preview/version'
4
+ require 'showdown/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "showdown"
8
- spec.version = MdPreview::VERSION
8
+ spec.version = Showdown::VERSION
9
9
  spec.authors = ["Fumitaka Tokumitsu"]
10
10
  spec.email = ["toku345@gmail.com"]
11
- spec.summary = 'Near-Real time markdown preview'
12
- spec.description = 'Near-Real time markdown preview'
11
+ spec.summary = 'Near-Real time markdown viewer'
12
+ spec.description = 'Near-Real time markdown viewer'
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -1,16 +1,16 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe MdPreview do
3
+ describe Showdown do
4
4
  it 'has a version number' do
5
- expect(MdPreview::VERSION).not_to be nil
5
+ expect(Showdown::VERSION).not_to be nil
6
6
  end
7
7
  end
8
8
 
9
- describe MdPreview::RackApp do
9
+ describe Showdown::RackApp do
10
10
  end
11
11
 
12
- describe MdPreview::Converter do
13
- include MdPreview::Converter
12
+ describe Showdown::Converter do
13
+ include Showdown::Converter
14
14
 
15
15
  before(:all) { @target_path = File.expand_path('../support/test.md', __FILE__) }
16
16
 
@@ -35,8 +35,8 @@ describe MdPreview::Converter do
35
35
  end
36
36
  end
37
37
 
38
- describe MdPreview::WatchDog do
39
- include MdPreview::WatchDog
38
+ describe Showdown::WatchDog do
39
+ include Showdown::WatchDog
40
40
 
41
41
  before(:all) { @target_path = File.expand_path('../support/test.md', __FILE__) }
42
42
 
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require 'md_preview'
2
+ require 'showdown'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: showdown
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
  - Fumitaka Tokumitsu
@@ -80,11 +80,11 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Near-Real time markdown preview
83
+ description: Near-Real time markdown viewer
84
84
  email:
85
85
  - toku345@gmail.com
86
86
  executables:
87
- - md_preview
87
+ - showdown
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
@@ -96,13 +96,13 @@ files:
96
96
  - LICENSE.txt
97
97
  - README.md
98
98
  - Rakefile
99
- - bin/md_preview
99
+ - bin/showdown
100
100
  - lib/config.ru
101
101
  - lib/html/index.html
102
- - lib/md_preview.rb
103
- - lib/md_preview/version.rb
104
- - md_preview.gemspec
105
- - spec/md_preview_spec.rb
102
+ - lib/showdown.rb
103
+ - lib/showdown/version.rb
104
+ - showdown.gemspec
105
+ - spec/showdown_spec.rb
106
106
  - spec/spec_helper.rb
107
107
  - spec/support/test.md
108
108
  homepage: ''
@@ -128,8 +128,8 @@ rubyforge_project:
128
128
  rubygems_version: 2.2.2
129
129
  signing_key:
130
130
  specification_version: 4
131
- summary: Near-Real time markdown preview
131
+ summary: Near-Real time markdown viewer
132
132
  test_files:
133
- - spec/md_preview_spec.rb
133
+ - spec/showdown_spec.rb
134
134
  - spec/spec_helper.rb
135
135
  - spec/support/test.md
@@ -1,3 +0,0 @@
1
- module MdPreview
2
- VERSION = "0.0.1"
3
- end