sinatra-pages 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/spec/pages_spec.rb +1 -1
  2. metadata +1 -1
data/spec/pages_spec.rb CHANGED
@@ -12,7 +12,7 @@ describe Sinatra::Pages do
12
12
  file_of = ->(page){page.downcase.gsub ' ', '_'}
13
13
  separate = ->(text){text.chomp.split("\n")}
14
14
  create_file_for = ->(page, content=[]) do
15
- content << '= "#{params[:page]}"'
15
+ content << '= "#{params[:page]}"' if content.empty?
16
16
 
17
17
  File.open("views/#{file_of.(page)}.haml", 'w') {|file| content.each{|line| file.puts line}}
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Javier Cicchelli