mdify 1.0.0 → 1.0.1

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.
@@ -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
- exec "launchy #{temp_file}"
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
@@ -6,7 +6,7 @@ require 'launchy'
6
6
  require 'mdify/renderer'
7
7
 
8
8
  module Mdify
9
- VERSION = "1.0.0"
9
+ VERSION = "1.0.1"
10
10
 
11
11
  def self.preview(filename)
12
12
  Renderer.new(filename).render
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.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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Federico Builes