madan 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +13 -24
- data/install.sh +13 -0
- data/lib/madan/application.rb +2 -1
- data/lib/madan/version.rb +1 -1
- data/screenshot.png +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5bd7806be285b337f4066fe39b28563c63b2a21
|
4
|
+
data.tar.gz: cc12505a820b84cdc4155f672c60f853f94766fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18dfcd0ffe89f2e772410b07e222f34a5034a06fcdcc52317397219461732f5d30d70cf0725705f9e74f0c6cfb7c76d06dc9b3aeaa403efe4dc95f9dbadcaa27
|
7
|
+
data.tar.gz: 192e49375ec446710bdb9aa5c9a6003a15c1ae8c9210b736f11accec6f7d1903db2e28a6dbab6822bedc3fb78154b88c35a9499ab8e0068e50e513e6302f7f78
|
data/README.md
CHANGED
@@ -1,35 +1,24 @@
|
|
1
1
|
# Madan
|
2
2
|
|
3
|
-
|
3
|
+
Preview markdown file in terminal. Thanks to [@piotrmurach](https://github.com/piotrmurach/tty-markdown)'s great work.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
5
|
+
## Usage
|
10
6
|
|
11
|
-
```ruby
|
12
|
-
gem 'madan'
|
13
7
|
```
|
8
|
+
madan p sample.md
|
9
|
+
```
|
10
|
+
This is what will it look like in terminal.
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install madan
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
12
|
+

|
13
|
+
## Install
|
26
14
|
|
27
|
-
|
15
|
+
**Make sure you already have gem and bundler installed**
|
28
16
|
|
29
|
-
|
17
|
+
```
|
18
|
+
curl https://raw.githubusercontent.com/gaotongfei/madan/master/install.sh | sh
|
19
|
+
```
|
30
20
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
21
|
|
33
|
-
##
|
22
|
+
## License
|
34
23
|
|
35
|
-
|
24
|
+
MIT
|
data/install.sh
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
gem uninstall madan
|
3
|
+
gem uninstall tty-markdown
|
4
|
+
rm -rf /tmp/tty-markdown
|
5
|
+
echo $'\ncloning tty-markdown...\n'
|
6
|
+
git clone git@github.com:piotrmurach/tty-markdown.git /tmp/tty-markdown
|
7
|
+
cd /tmp/tty-markdown
|
8
|
+
git checkout 790106a
|
9
|
+
rake build
|
10
|
+
echo $'\ninstalling tty-markdown...\n'
|
11
|
+
gem install pkg/tty-markdown-0.1.0.gem
|
12
|
+
echo $'\ninstalling madan...\n'
|
13
|
+
gem install madan
|
data/lib/madan/application.rb
CHANGED
data/lib/madan/version.rb
CHANGED
data/screenshot.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taff Gao
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- bin/console
|
125
125
|
- bin/setup
|
126
126
|
- exe/madan
|
127
|
+
- install.sh
|
127
128
|
- lib/madan.rb
|
128
129
|
- lib/madan/application.rb
|
129
130
|
- lib/madan/file_parser.rb
|
@@ -132,6 +133,7 @@ files:
|
|
132
133
|
- lib/madan/version.rb
|
133
134
|
- madan.gemspec
|
134
135
|
- sample.md
|
136
|
+
- screenshot.png
|
135
137
|
homepage: https://github.com/gaotongfei/madan
|
136
138
|
licenses: []
|
137
139
|
metadata: {}
|