madan 0.1.2 → 0.1.3

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: 1bc3dccfc9942fe813b8a349a08ad4c904bcaaa5
4
- data.tar.gz: 8b426e5a3ef8710aefa450f807b0c3846f37f4de
3
+ metadata.gz: e5bd7806be285b337f4066fe39b28563c63b2a21
4
+ data.tar.gz: cc12505a820b84cdc4155f672c60f853f94766fa
5
5
  SHA512:
6
- metadata.gz: d9ccb37ccdbb3d6d44375287e783f68e0e4581969c1a78b74c9f7da5d0691eed8cd0e0aee2e0125ca2412ddec2ca04aeded4202323a056b0e9569de3cc77bb62
7
- data.tar.gz: 62f5c531efc6a05d57f932dd872a703c9cfb04e6233f27d6fdc828d882a439db5e5452cfd4d66ce5a2405f0a0b0265f92ec435dda7af4b5f3553c5cf53783dbe
6
+ metadata.gz: 18dfcd0ffe89f2e772410b07e222f34a5034a06fcdcc52317397219461732f5d30d70cf0725705f9e74f0c6cfb7c76d06dc9b3aeaa403efe4dc95f9dbadcaa27
7
+ data.tar.gz: 192e49375ec446710bdb9aa5c9a6003a15c1ae8c9210b736f11accec6f7d1903db2e28a6dbab6822bedc3fb78154b88c35a9499ab8e0068e50e513e6302f7f78
data/README.md CHANGED
@@ -1,35 +1,24 @@
1
1
  # Madan
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/madan`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Preview markdown file in terminal. Thanks to [@piotrmurach](https://github.com/piotrmurach/tty-markdown)'s great work.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- And then execute:
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
+ ![screenshot](screenshot.png)
13
+ ## Install
26
14
 
27
- ## Development
15
+ **Make sure you already have gem and bundler installed**
28
16
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- ## Contributing
22
+ ## License
34
23
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/madan.
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
@@ -29,7 +29,8 @@ module Madan
29
29
  end
30
30
  end
31
31
  alias_command :p, :present
32
+ alias_command :preview, :present
32
33
  run!
33
34
  end
34
35
  end
35
- end
36
+ end
data/lib/madan/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Madan
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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: {}