Skip to content

Commit

Permalink
fix location of default-site.yml, include in gem
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 7, 2013
1 parent 2c67d36 commit d582238
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions awestruct.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec = Gem::Specification.new do |s|
s.files = [
Dir['lib/**/*.rb'],
Dir['lib/**/*.haml'],
Dir['lib/**/*.yml'],
Dir['spec/**/**'],
].flatten
s.executables = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/awestruct/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def set_base_url(base_url, default_base_url)
end

def load_default_site_yaml
default_site_yaml = File.join( File.dirname( __FILE__ ), 'default-site.yaml' )
default_site_yaml = File.join( File.dirname( __FILE__ ), 'default-site.yml' )
if ( File.exist?( default_site_yaml ) )
data = YAML.load( File.read( default_site_yaml ) )
data.each do |k,v|
Expand Down

0 comments on commit d582238

Please sign in to comment.