awestruct 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. data/lib/awestruct/engine.rb +2 -1
  2. metadata +4 -4
@@ -132,7 +132,7 @@ module Awestruct
132
132
  str = str.gsub( /\\/, '\\\\\\\\' )
133
133
  str = str.gsub( /\\\\#/, '\\#' )
134
134
  str = str.gsub( '@', '\@' )
135
- str = str.gsub( '#{', '\#\{' )
135
+ str = str.gsub( '#{', '\#\{' ) unless site.interpolate
136
136
  str = "%@#{str}@"
137
137
  result = instance_eval( str )
138
138
  result
@@ -277,6 +277,7 @@ module Awestruct
277
277
  @max_yaml_mtime = mtime
278
278
  end
279
279
  data = YAML.load( File.read( site_yaml ) )
280
+ site.interpolate = true
280
281
  profile_data = {}
281
282
  data.each do |k,v|
282
283
  if ( ( k == 'profiles' ) && ( ! profile.nil? ) )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awestruct
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bob McWhirter
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-13 00:00:00 Z
18
+ date: 2011-06-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hpricot