Skip to content

Commit bb0a486

Browse files
committed
Blow off the dust.
Update all the things.
1 parent 919ec20 commit bb0a486

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ gemspec
44

55
group :test do
66
gem "rake", "~> 10.0.0"
7-
gem "rspec", "~> 2.11.0"
8-
gem "cucumber", "~> 1.2.0"
9-
gem "haml", "~> 3.1.7"
7+
gem "rspec", "~> 3.7.0"
8+
gem "cucumber", "~> 3.1.0"
9+
gem "haml"
1010
gem "sass"
1111
gem "RedCloth"
1212
gem "kramdown"
1313
gem "compass"
14-
gem "listen", "~> 1.3.1"
14+
gem "listen", "~> 3.1.5"
1515
if tilt_version = ENV["TILT_VERSION"]
1616
gem "tilt", tilt_version
1717
end

lib/pith/render_context.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22
require "pathname"
33
require "pith/reference_error"
44
require "set"
5-
require "tilt"
65

76
module Pith
87

98
class RenderContext
109

11-
include Tilt::CompileSite
12-
1310
def initialize(output)
1411
@output = output
1512
@page = @output.input

pith.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Gem::Specification.new do |gem|
1919
gem.version = Pith::VERSION.dup
2020
gem.platform = Gem::Platform::RUBY
2121

22-
gem.add_runtime_dependency("tilt", "~> 1.3")
23-
gem.add_runtime_dependency("rack", ">= 1.2.1")
24-
gem.add_runtime_dependency("thin", ">= 1.2.7")
25-
gem.add_runtime_dependency("clamp", ">= 0.3.0")
26-
gem.add_runtime_dependency("listen", "~> 1.2")
22+
gem.add_runtime_dependency("tilt", "~> 2.0")
23+
gem.add_runtime_dependency("rack", ">= 2.0")
24+
gem.add_runtime_dependency("thin", ">= 1.7.0")
25+
gem.add_runtime_dependency("clamp", ">= 1.2.1")
26+
gem.add_runtime_dependency("listen", ">= 3.1")
2727
gem.add_runtime_dependency("rack-livejs", ">= 0.2.1")
2828

2929
gem.require_path = "lib"

spec/pith/input_spec.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ def make_input(path)
7777

7878
it { should_not be_template }
7979

80-
its(:pipeline) { should be_empty }
80+
describe "pipeline" do
81+
it "should be empty" do
82+
subject.pipeline.should be_empty
83+
end
84+
end
8185

8286
end
8387

@@ -87,7 +91,11 @@ def make_input(path)
8791
make_input("_blah/blah.de")
8892
end
8993

90-
its(:output) { should be_nil }
94+
describe "output" do
95+
it "should be nil" do
96+
subject.output.should be_nil
97+
end
98+
end
9199

92100
end
93101

spec/pith/server_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
describe Pith::Server::OutputFinder do
66

77
let(:output_path) { "dir/index.html" }
8-
let(:output) { stub(:path => Pathname(output_path), :build => true) }
8+
let(:output) { double(:path => Pathname(output_path), :build => true) }
99

1010
let(:project) do
11-
stub(:outputs => [output])
11+
double(:outputs => [output])
1212
end
1313

1414
let(:app) do
@@ -98,4 +98,3 @@ def self.can_request_output(description, uri)
9898
end
9999

100100
end
101-

0 commit comments

Comments
 (0)