mdpress 0.0.11 → 0.0.12

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.
Files changed (2) hide show
  1. data/bin/mdpress +0 -13
  2. metadata +3 -3
data/bin/mdpress CHANGED
@@ -6,7 +6,6 @@ require 'impress_renderer'
6
6
  require 'trollop'
7
7
  require 'tempfile'
8
8
  require 'launchy'
9
- require 'httparty'
10
9
 
11
10
  THEMES_DIRNAME = './themes/'
12
11
 
@@ -79,7 +78,6 @@ EOS
79
78
  opt :list, "List all available stylesheets."
80
79
  opt :run, "Run presentation (automatically compiles to a tmp directory and opens in a browser window)"
81
80
  opt :verbose, "Be verbose."
82
- opt :upload, "Upload presentation to mdpress.me"
83
81
  end
84
82
 
85
83
  if OPTS[:list]
@@ -89,7 +87,6 @@ end
89
87
 
90
88
  Trollop::die("no file specified") if ARGV.empty? # show help screen
91
89
 
92
-
93
90
  if OPTS[:run]
94
91
  file = ARGV[0]
95
92
  tmp = Tempfile.new("mdpress")
@@ -115,16 +112,6 @@ unless File.exist?(STYLESHEET)
115
112
  exit
116
113
  end
117
114
 
118
- if OPTS[:upload]
119
- res = HTTParty.post("http://mdpress.me/presentations", { :body => {
120
- :content => File.read(ARGV[0]),
121
- :css => File.read(STYLESHEET),
122
- :html => File.read(STYLESHEET_HEAD)
123
- }
124
- })
125
- puts "presentation link: #{res.body}"
126
- end
127
-
128
115
  if File.exist?(DIRNAME)
129
116
  unless File.directory?(DIRNAME)
130
117
  puts "please delete the file: #{DIRNAME} before continuing."
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdpress
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Bhargava