mdify 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mdify/renderer.rb +5 -1
- data/lib/mdify.rb +1 -1
- data/mdify.gemspec +1 -1
- metadata +3 -3
data/lib/mdify/renderer.rb
CHANGED
@@ -13,7 +13,11 @@ module Mdify
|
|
13
13
|
html = Redcarpet.new(@content).to_html
|
14
14
|
document = render_html(@title, html)
|
15
15
|
temp_file = create_temp_file(document)
|
16
|
-
|
16
|
+
if RUBY_PLATFORM.downcase.include?("darwin")
|
17
|
+
exec "open #{temp_file}"
|
18
|
+
else
|
19
|
+
exec "launchy #{temp_file}"
|
20
|
+
end
|
17
21
|
end
|
18
22
|
|
19
23
|
protected
|
data/lib/mdify.rb
CHANGED
data/mdify.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'mdify'
|
10
|
-
s.version = '1.0.
|
10
|
+
s.version = '1.0.1'
|
11
11
|
s.date = '2012-01-02'
|
12
12
|
s.rubyforge_project = 'mdify'
|
13
13
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Federico Builes
|