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 +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -6
- data/bin/{md_preview → showdown} +1 -1
- data/lib/config.ru +2 -2
- data/lib/html/index.html +1 -1
- data/lib/{md_preview.rb → showdown.rb} +2 -2
- data/lib/showdown/version.rb +3 -0
- data/{md_preview.gemspec → showdown.gemspec} +4 -4
- data/spec/{md_preview_spec.rb → showdown_spec.rb} +7 -7
- data/spec/spec_helper.rb +1 -1
- metadata +10 -10
- data/lib/md_preview/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e21a1ce124c2b79d6a9485b314919ab794baca28
|
4
|
+
data.tar.gz: 43fed1650145f37f95d1d1d1ebeece295b9a1c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17c445eadc4c02a9e571379d037fcf1f6f6d5ecff00244ccdfdbac8787c38bdef539cc37778f1bee74899a1cd565cfd6ef6266860e1788b27778d63b5480268f
|
7
|
+
data.tar.gz: 5091d3896fd4dcc171fc2de7c59bd6a57a602851990260974a0d70780c5b4229dfb4a86042c652a0c23fcb49f474379be93b1a79b30e926d13293f415a855064
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,20 +1,18 @@
|
|
1
|
-
#
|
1
|
+
# showdown
|
2
2
|
|
3
3
|
Near-Real time Markdown viewer.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
$ gem install md_preview
|
7
|
+
$ gem install showdown
|
10
8
|
|
11
9
|
## Usage
|
12
10
|
|
13
|
-
$
|
11
|
+
$ showdown /path/to/your/file.md
|
14
12
|
|
15
13
|
## Contributing
|
16
14
|
|
17
|
-
1. Fork it ( https://github.com/[my-github-username]/
|
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`)
|
data/bin/{md_preview → showdown}
RENAMED
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 '
|
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
|
13
|
+
run Showdown::RackApp.new # backend: { debug: true }
|
14
14
|
end
|
data/lib/html/index.html
CHANGED
@@ -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 '
|
4
|
+
require 'showdown/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "showdown"
|
8
|
-
spec.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
|
12
|
-
spec.description = 'Near-Real time markdown
|
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
|
3
|
+
describe Showdown do
|
4
4
|
it 'has a version number' do
|
5
|
-
expect(
|
5
|
+
expect(Showdown::VERSION).not_to be nil
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
describe
|
9
|
+
describe Showdown::RackApp do
|
10
10
|
end
|
11
11
|
|
12
|
-
describe
|
13
|
-
include
|
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
|
39
|
-
include
|
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 '
|
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.
|
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
|
83
|
+
description: Near-Real time markdown viewer
|
84
84
|
email:
|
85
85
|
- toku345@gmail.com
|
86
86
|
executables:
|
87
|
-
-
|
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/
|
99
|
+
- bin/showdown
|
100
100
|
- lib/config.ru
|
101
101
|
- lib/html/index.html
|
102
|
-
- lib/
|
103
|
-
- lib/
|
104
|
-
-
|
105
|
-
- spec/
|
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
|
131
|
+
summary: Near-Real time markdown viewer
|
132
132
|
test_files:
|
133
|
-
- spec/
|
133
|
+
- spec/showdown_spec.rb
|
134
134
|
- spec/spec_helper.rb
|
135
135
|
- spec/support/test.md
|
data/lib/md_preview/version.rb
DELETED