markdown_server 0.1.0
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.
- data/Gemfile.lock +22 -0
- data/LICENSE +20 -0
- data/VERSION +1 -0
- data/bin/markdown_server +28 -0
- data/lib/markdown_server.rb +16 -0
- data/markdown_server.gemspec +61 -0
- metadata +75 -0
data/Gemfile.lock
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
markdown_server (0.1.0)
|
5
|
+
sinatra (~> 1.2.6)
|
6
|
+
slop (~> 1.6.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
rack (1.3.0)
|
12
|
+
sinatra (1.2.6)
|
13
|
+
rack (~> 1.1)
|
14
|
+
tilt (< 2.0, >= 1.2.2)
|
15
|
+
slop (1.6.0)
|
16
|
+
tilt (1.3.2)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
markdown_server!
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Ryan Lewis
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/bin/markdown_server
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/bin/ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'slop'
|
6
|
+
|
7
|
+
opts = Slop.new :help => true do
|
8
|
+
banner "markdown_server [start|stop|status|list|add|remove|browser]"
|
9
|
+
|
10
|
+
command :start do
|
11
|
+
on :b, :browser, 'Set the browser binary to open' do
|
12
|
+
"browser!"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
command :browser do
|
17
|
+
on :b, :browser, 'Set the browser binary to open' do
|
18
|
+
"browser!"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
on :v, :version do
|
23
|
+
puts MarkdownServer::Version
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
p opts.to_h
|
28
|
+
p opts.parse
|
@@ -0,0 +1,16 @@
|
|
1
|
+
opts = Slop.parse do
|
2
|
+
command :foo do
|
3
|
+
on :b, :bar, 'something', true
|
4
|
+
end
|
5
|
+
|
6
|
+
command :clean do
|
7
|
+
on :v, :verbose, do
|
8
|
+
puts 'Enabled verbose mode for clean'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# non-command specific options
|
13
|
+
on :v, :version do
|
14
|
+
puts 'version 1'
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#!/bin/ruby
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = File.basename(__FILE__, ".gemspec")
|
5
|
+
s.version = File.read("VERSION")
|
6
|
+
|
7
|
+
s.author = "Ryan Lewis"
|
8
|
+
s.email = "c00lryguy@gmail.com"
|
9
|
+
|
10
|
+
s.description = "Easy for making todo lists and installation notes for you projects."
|
11
|
+
s.summary = "Easily serve Markdown files."
|
12
|
+
|
13
|
+
s.files = [File.basename(__FILE__)] + Dir['lib/**/*'] + Dir['bin/**/*'] + Dir['test/**/*'] + Dir['examples/**/*']
|
14
|
+
|
15
|
+
# Add files here!
|
16
|
+
%W{Gemfile.lock README.* README Rakefile VERSION *.thor LICENSE LICENSE.*}.each do |file|
|
17
|
+
s.files.unshift(file) if File.exists?(file)
|
18
|
+
end
|
19
|
+
|
20
|
+
# Add rdoc files here!
|
21
|
+
%W{README.* README VERSION LICENSE LICENSE.*}.each do |file|
|
22
|
+
s.extra_rdoc_files ||= []
|
23
|
+
s.extra_rdoc_files.unshift(file) if File.exists?(file)
|
24
|
+
end
|
25
|
+
|
26
|
+
# If you only specify one application file in executables, that file becomes
|
27
|
+
# the default executable. Therefore, you only need to specify this value if you
|
28
|
+
# have more than one application file.
|
29
|
+
if s.executables.length > 1
|
30
|
+
if exe = executable.find { |e| e.include?(File.basename(__FILE__, ".gemspec")) }
|
31
|
+
s.default_executable = exe
|
32
|
+
else
|
33
|
+
raise(Exception, "Couldn't automatically figure out the default_executable")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
s.test_files = Dir['test/**/*'] + Dir['examples/**/*']
|
38
|
+
|
39
|
+
s.homepage = "http://github.com/c00lryguy/markdown_server"
|
40
|
+
s.licenses = ["MIT"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
|
43
|
+
# Add dependencies here:
|
44
|
+
# This is required for your gem to work:
|
45
|
+
# s.add_dependency("some_required_gem", "~> 0.1.0")
|
46
|
+
# This is required for developers to build and test your gem:
|
47
|
+
# s.add_development_dependency("some_development_gem", "~> 0.1.0")
|
48
|
+
|
49
|
+
s.add_dependency("slop", "~> 1.6.0")
|
50
|
+
s.add_dependency("sinatra", "~> 1.2.6") # Sinatra depends on Tilt so we're all good.
|
51
|
+
end
|
52
|
+
|
53
|
+
# Now run the following commands or equivalent actions:
|
54
|
+
#
|
55
|
+
# $ touch Gemfile
|
56
|
+
# $ echo -e "source :rubygems\ngemspec" > Gemfile
|
57
|
+
#
|
58
|
+
# This makes Bundler pull in this gemspec's dependencies so you don't have
|
59
|
+
# to write them twice. Development dependencies are grouped under :development.
|
60
|
+
#
|
61
|
+
# $ bundle install
|
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: markdown_server
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ryan Lewis
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-05-30 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: slop
|
16
|
+
requirement: &21503300 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.6.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *21503300
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sinatra
|
27
|
+
requirement: &21502760 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.2.6
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *21502760
|
36
|
+
description: Easy for making todo lists and installation notes for you projects.
|
37
|
+
email: c00lryguy@gmail.com
|
38
|
+
executables: []
|
39
|
+
extensions: []
|
40
|
+
extra_rdoc_files:
|
41
|
+
- LICENSE
|
42
|
+
- VERSION
|
43
|
+
files:
|
44
|
+
- LICENSE
|
45
|
+
- VERSION
|
46
|
+
- Gemfile.lock
|
47
|
+
- markdown_server.gemspec
|
48
|
+
- lib/markdown_server.rb
|
49
|
+
- bin/markdown_server
|
50
|
+
homepage: http://github.com/c00lryguy/markdown_server
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 1.8.4
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: Easily serve Markdown files.
|
75
|
+
test_files: []
|