readem 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/readem +3 -2
- data/lib/readem/version.rb +1 -1
- data/readem.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 046adca4d3e58fdc99abee720cb11ef625ff3a67
|
4
|
+
data.tar.gz: f4942a96c0ae0206853078a90e8fc4bb67d447d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 232403aad6effe003a41f0e74244ad911efc0d76e6c9252aea24e26034a8769fbba23f9a9d5aaa1415c47aa21dc0350eabbb5732c121ada569e5cc3b7aa9af6c
|
7
|
+
data.tar.gz: f5583d213d1b946c49086ccb1ad155f3c82e2011493115bfb5b8356baf766cddb4943cfdb86319b02d8648dd7fd65fe48e2d272d20ef04d3ab93d0f48e85e3c7
|
data/bin/readem
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
require "sinatra"
|
5
5
|
require "pathname"
|
6
|
-
require "
|
6
|
+
require "redcarpet"
|
7
7
|
require "readem/version"
|
8
8
|
|
9
9
|
set :bind, "0.0.0.0"
|
@@ -21,7 +21,8 @@ end
|
|
21
21
|
get "/:dir" do
|
22
22
|
readme = Pathname("#{home_dir}/Projects/#{params[:dir]}/README.md")
|
23
23
|
readme_data = readme.read
|
24
|
-
|
24
|
+
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true)
|
25
|
+
@markup = markdown.render(readme_data)
|
25
26
|
erb :readme
|
26
27
|
end
|
27
28
|
|
data/lib/readem/version.rb
CHANGED
data/readem.gemspec
CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "makeup", "~> 0.4"
|
22
21
|
spec.add_dependency "sinatra", "~> 1.4"
|
23
22
|
spec.add_dependency "redcarpet", "~> 2.3"
|
24
23
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marius Mathiesen
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2013-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: makeup
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.4'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.4'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: sinatra
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|