Skip to content

Commit 12c208e

Browse files
author
Amitava
committed
Using bundler
1 parent dee70b5 commit 12c208e

File tree

5 files changed

+36
-6
lines changed

5 files changed

+36
-6
lines changed

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'http://rubygems.org'
2+
3+
gem 'sinatra', '0.9.4'
4+
gem 'haml'
5+
gem 'grit'
6+
gem 'rdiscount'

Gemfile.lock

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
diff-lcs (1.1.2)
5+
grit (2.4.1)
6+
diff-lcs (~> 1.1)
7+
mime-types (~> 1.15)
8+
haml (3.0.25)
9+
mime-types (1.16)
10+
rack (1.2.2)
11+
rdiscount (1.6.8)
12+
sinatra (0.9.4)
13+
rack (>= 0.9.1)
14+
15+
PLATFORMS
16+
ruby
17+
18+
DEPENDENCIES
19+
grit
20+
haml
21+
rdiscount
22+
sinatra (= 0.9.4)

run.ru renamed to config.ru

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#!/usr/bin/env rackup
1+
require 'rubygems'
2+
require 'bundler'
3+
4+
Bundler.require
5+
26
require File.dirname(__FILE__) + "/git-wiki"
37

48
run GitWiki.new(File.expand_path(ARGV[1] || "~/wiki"),

config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
repos:
2+
foo: /home/foo
3+
bar: /home/bar

git-wiki.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
require "sinatra/base"
2-
require "haml"
3-
require "grit"
4-
require "rdiscount"
5-
61
module GitWiki
72
class << self
83
attr_accessor :homepage, :extension, :repository

0 commit comments

Comments
 (0)