hamloft 0.2.3 → 0.2.4

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: 8127ffd8d6d91c2727a33e2df8f8f4734b68aac4
4
- data.tar.gz: 84ff27e660a7400e6247a91a213d471b24236238
3
+ metadata.gz: 72b5e54af21c599a2cea0920edcca58ad637a932
4
+ data.tar.gz: 9335aa05602c9da27f8ea08d10d6f394e31210b9
5
5
  SHA512:
6
- metadata.gz: '039251f98048ee6dde732b6a0fafd1217011e277175996ccf25b75a32ae64b47bf08c711d2645e48e2fc78e1fdf137d5f27d33e7e4bae61cc4612264fef10d87'
7
- data.tar.gz: c80aa6a0c8f60a321fea69e155e5ad0d33e734fd3f3c8d709b34ad283b2ff6a54f7c36e3f060340caeac7d673d0d71e95b772c4f275c7f4f0a5b8a8232fb092d
6
+ metadata.gz: 9043a17dd2f544ff1f938f85dc91eb6b3e5090a339bd5810c8ea613a710aca51c175d56644a1305483d7b73cfc6b50d6726d1c2b5c4c9c44d6ac54816808afd2
7
+ data.tar.gz: d9e7490a33fd6688fefd0438684cddaa07dd555e7461d0cb1e5c9db43eb1dcd757ea25972bc530c4d73eb1ad094b1f755e7aadbcdb2cc134ce7096577ecf9c63
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hamloft (0.2.3)
4
+ hamloft (0.2.4)
5
5
  haml (~> 4.0)
6
6
  nokogiri (~> 1.6)
7
7
 
@@ -7,7 +7,7 @@ module Hamloft
7
7
 
8
8
  def block(identifier, variables={})
9
9
  haml_contents = Hamloft.block_resolver.resolve(identifier, @_haml_locals)
10
- Hamloft.render(haml_contents, theme: @_haml_locals[:theme], base_path: @_haml_locals[:base_path], variables: variables)
10
+ Hamloft.render(haml_contents, @_haml_locals.merge(variables))
11
11
  end
12
12
 
13
13
  # styles
@@ -1,3 +1,3 @@
1
1
  module Hamloft
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
data/lib/hamloft.rb CHANGED
@@ -26,7 +26,7 @@ module Hamloft
26
26
  end
27
27
 
28
28
  def self.asset_uri
29
- @@_asset_uri
29
+ @@_asset_uri || "."
30
30
  end
31
31
 
32
32
  def self.render(haml, variables={})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamloft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer