howl 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- howl (0.3.0)
4
+ howl (0.5.0)
5
5
  haml
6
6
  hashie
7
7
  mustache
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
data/howl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{howl}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Clinton R. Nixon"]
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
47
47
  "test/fixtures/posts/no_date.html",
48
48
  "test/fixtures/site/css/modules/colors.scss",
49
49
  "test/fixtures/site/css/screen.scss",
50
+ "test/fixtures/site/empty.html",
50
51
  "test/fixtures/site/has_template.html",
51
52
  "test/fixtures/site/index.html",
52
53
  "test/fixtures/site/no_yaml.html",
data/lib/howl/template.rb CHANGED
@@ -73,7 +73,7 @@ module Howl
73
73
 
74
74
  def load_file
75
75
  content = @path.read
76
- view, content = content.split("\n\n", 2)
76
+ view, _, content = content.rpartition("\n\n")
77
77
 
78
78
  if test_for_yaml(view)
79
79
  @content = content
File without changes
data/test/howl_test.rb CHANGED
@@ -43,6 +43,15 @@ context "Site" do
43
43
  }
44
44
  end
45
45
 
46
+ context 'empty.html' do
47
+ setup { Page.new(fixture_path('site/empty.html'), @site) }
48
+
49
+ asserts("#content") { topic.content.strip }.equals ""
50
+ asserts("#view is correct") {
51
+ topic.view == View.new(:site => topic.site)
52
+ }
53
+ end
54
+
46
55
  context "no_yaml.html" do
47
56
  setup { Page.new(fixture_path("site/no_yaml.html"), @site) }
48
57
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 0
9
- version: 0.5.0
8
+ - 1
9
+ version: 0.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clinton R. Nixon
@@ -136,6 +136,7 @@ files:
136
136
  - test/fixtures/posts/no_date.html
137
137
  - test/fixtures/site/css/modules/colors.scss
138
138
  - test/fixtures/site/css/screen.scss
139
+ - test/fixtures/site/empty.html
139
140
  - test/fixtures/site/has_template.html
140
141
  - test/fixtures/site/index.html
141
142
  - test/fixtures/site/no_yaml.html