Skip to content

Commit eb0e73d

Browse files
committed
Use bundler for gem management
* Added a Gemfile * Modified the installation instructions in README.md to reflect these changes.
1 parent be07e9e commit eb0e73d

File tree

4 files changed

+68
-3
lines changed

4 files changed

+68
-3
lines changed

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source "https://rubygems.org"
2+
3+
gem "kramdown"
4+
gem "nokogiri", '>= 1.5.9'
5+
gem "jekyll", '>= 1.1.0'
6+
gem "rdoc", '~> 3.9.0'
7+
gem "haml"
8+
gem "thor"

Gemfile.lock

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
classifier (1.3.3)
5+
fast-stemmer (>= 1.0.0)
6+
colorator (0.1)
7+
commander (4.1.5)
8+
highline (~> 1.6.11)
9+
directory_watcher (1.4.1)
10+
fast-stemmer (1.0.2)
11+
haml (4.0.3)
12+
tilt
13+
highline (1.6.19)
14+
jekyll (1.1.2)
15+
classifier (~> 1.3)
16+
colorator (~> 0.1)
17+
commander (~> 4.1.3)
18+
directory_watcher (~> 1.4.1)
19+
kramdown (~> 1.0.2)
20+
liquid (~> 2.5.1)
21+
maruku (~> 0.5)
22+
pygments.rb (~> 0.5.0)
23+
redcarpet (~> 2.2.2)
24+
safe_yaml (~> 0.7.0)
25+
kramdown (1.0.2)
26+
liquid (2.5.1)
27+
maruku (0.6.1)
28+
syntax (>= 1.0.0)
29+
mini_portile (0.5.1)
30+
nokogiri (1.6.0)
31+
mini_portile (~> 0.5.0)
32+
posix-spawn (0.3.6)
33+
pygments.rb (0.5.2)
34+
posix-spawn (~> 0.3.6)
35+
yajl-ruby (~> 1.1.0)
36+
rdoc (3.9.5)
37+
redcarpet (2.2.2)
38+
safe_yaml (0.7.1)
39+
syntax (1.0.0)
40+
thor (0.18.1)
41+
tilt (1.4.1)
42+
yajl-ruby (1.1.0)
43+
44+
PLATFORMS
45+
ruby
46+
47+
DEPENDENCIES
48+
haml
49+
jekyll (>= 1.1.0)
50+
kramdown
51+
nokogiri (>= 1.5.9)
52+
rdoc (~> 3.9.0)
53+
thor

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ Grab the sources from GitHub:
1212
$ git clone git://github.com/sinatra/sinatra.github.com.git
1313
$ cd sinatra.github.com
1414

15+
Make sure you have the `bundler` gem installed on your machine:
16+
17+
$ gem install bundler
18+
1519
Install dependencies:
1620

17-
$ gem install jekyll
18-
$ gem install rdoc -v 2.3.0
21+
$ bundle install
1922

2023
Run the test server:
2124

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ require 'rake/clean'
33
require 'rdoc'
44
require 'rdoc/encoding'
55
require 'rdoc/markup/to_html'
6+
require 'rdoc/options'
67
require 'uri'
78
require 'nokogiri'
89
require 'kramdown'
@@ -131,7 +132,7 @@ contrib("_contrib/doc/%s.rdoc") { |fn| file fn => '_contrib' }
131132
contrib do |fn|
132133
file "_includes/#{fn}.html" => ["build:contrib_docs", "_contrib/doc/#{fn}.rdoc", "Rakefile"] do |f|
133134
html =
134-
RDoc::Markup::ToHtml.new
135+
RDoc::Markup::ToHtml.new(RDoc::Options.new)
135136
.convert(File.read("_contrib/doc/#{fn}.rdoc"))
136137
File.open(f.name, 'wb') { |io| io.write html }
137138
end

0 commit comments

Comments
 (0)