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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1849c26f32d3785e78fad121da90ea486ad83d61
4
- data.tar.gz: 3f7fc0343af926a85357d121fc58c8d298c17c38
3
+ metadata.gz: 046adca4d3e58fdc99abee720cb11ef625ff3a67
4
+ data.tar.gz: f4942a96c0ae0206853078a90e8fc4bb67d447d6
5
5
  SHA512:
6
- metadata.gz: b483f10f2fe865b37c726e8dd35b5718fd8058d7c494b9234605c613c267da60f87f9aeec1da930106af37822b9cdd53edb47051fa9e2f1b970d9041c676fd4c
7
- data.tar.gz: bcf39f7ef6d0b0db55f964d58f3d05d20ba7d1754546d96f9f58c7d9d66826ce8a201eef23dcd121ac52eabcea46c30872b50427f8b5f9fefc017178ecc39d84
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 "makeup/markup"
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
- @markup = Makeup::Markup.new.render("README.md", readme_data)
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
 
@@ -1,3 +1,3 @@
1
1
  module Readem
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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.1.5
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