vitrine 0.0.12 → 0.0.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad38905bb36040591304042eb96301dd54844848
4
- data.tar.gz: df1a08482625e54ba47255a640913d288898a79b
3
+ metadata.gz: e36b0ef37b91224c1fe39ea53768011abbfb150d
4
+ data.tar.gz: 89ab96905bdfd081a1322417d351e8d60431688d
5
5
  SHA512:
6
- metadata.gz: 104b112da1f12d430e449d1ecc59ed80ff07045c9f8141ee91c3be7f6dba79570b3108c674702d638ab7ca3a61a17c9435a89c651960a63a679b05bd9ae7f619
7
- data.tar.gz: 89d843fd806e0f41b95e438ba3cdef583cdb7d1ea105405f99c18a8a393862a6a70fbcb491f5f43db897b0604866b2e026f4d4549893033ca16879b20a68a428
6
+ metadata.gz: 612af9879a6fc35d9c55bd2600db4ee35768ae7ff4c78d9b1c5e37bd9553a09f45aa7076d1282211a2f53283b38196e5628e5b7818988d4d37237309bb6636f0
7
+ data.tar.gz: b473bcc793ba500cace85af74e6dd5a0070e133c926f17ffb48b7fdf7aa898bcc826d5ab6a50beb1a17c6e5102072f422e13d9058a931a93ba9b77d16dbaf6e2
@@ -1,3 +1,3 @@
1
1
  module Vitrine
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
@@ -107,8 +107,8 @@ class Vitrine::App < Sinatra::Base
107
107
  # a visible error message
108
108
  error_tpl = 'body:before { background: white; font-family: sans-serif; color: red; font-size: 14px; content: %s }'
109
109
  css_message = error_tpl % [e.class, "\n", "--> ", e.message].join.inspect
110
-
111
- halt 500, css_message
110
+ # If we halt with 500 this will not be shown as CSS
111
+ halt 200, css_message
112
112
  end
113
113
  end
114
114
 
@@ -174,7 +174,7 @@ class TestVitrine < Test::Unit::TestCase
174
174
 
175
175
  get '/faulty.css'
176
176
 
177
- assert_equal 500, last_response.status
177
+ assert_equal 200, last_response.status
178
178
  assert last_response.body.include?('body:before {'), 'Should include the generated element selector'
179
179
  assert last_response.body.include?('Sass::SyntaxError'), 'Should include the syntax error class'
180
180
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "vitrine"
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julik Tarkhanov"]
12
- s.date = "2013-12-19"
12
+ s.date = "2013-12-20"
13
13
  s.description = " Serves ERB templates with live CoffeeScript and SASS "
14
14
  s.email = "me@julik.nl"
15
15
  s.executables = ["vitrine"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitrine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-19 00:00:00.000000000 Z
11
+ date: 2013-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra