mercury 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Mercury.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mercury}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Wilson"]
12
- s.date = %q{2010-02-26}
12
+ s.date = %q{2010-02-28}
13
13
  s.default_executable = %q{mercury}
14
14
  s.description = %q{Mercury allows you to create directory and start writting haml, html, css, etc to build wireframes for your user design.}
15
15
  s.email = %q{thing2@jackhq.com}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/lib/mercury.rb CHANGED
@@ -2,7 +2,7 @@ require 'sinatra'
2
2
  require 'haml'
3
3
  require 'fileutils'
4
4
 
5
- class Mercury < Sinatra::Default
5
+ class Mercury < Sinatra::Application
6
6
  set :root, FileUtils.pwd.gsub("\n",'')
7
7
  set :public, File.dirname(__FILE__) + '/public'
8
8
 
data/spec/mercury_spec.rb CHANGED
@@ -1,7 +1,20 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- describe "Mercury" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
3
+ describe "mercury index" do
4
+ include Rack::Test::Methods
5
+
6
+ def app
7
+ Mercury
8
+ end
9
+
10
+ it "should be true" do
11
+ get '/'
12
+ last_response.should be_true
13
+ end
14
+
15
+ it "should contain mercury" do
16
+ get '/'
17
+ last_response.body.should =~ /Mercury/
6
18
  end
19
+
7
20
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,10 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'rubygems'
3
4
  require 'mercury'
4
5
  require 'spec'
5
6
  require 'spec/autorun'
7
+ require 'rack/test'
6
8
 
7
9
  Spec::Runner.configure do |config|
8
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wilson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-26 00:00:00 -05:00
12
+ date: 2010-02-28 00:00:00 -05:00
13
13
  default_executable: mercury
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency