marfa 0.3.2 → 0.3.3

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: 8a5b74e48d8e52d1b839ab478b3ff904fa3603d0
4
- data.tar.gz: baf352d3dd008c1ae56aa3cc9d8271807b722af8
3
+ metadata.gz: 06f81303b1ce133d6f968b07f63f06ce79b2a7f5
4
+ data.tar.gz: 823b23e24e5a5593ce02b3a4364caa8caeaae1c2
5
5
  SHA512:
6
- metadata.gz: a4417f1b8e6d7604a7bafa514eabce7cd8679614a582193a1ff8a183f9fe6bb2bbad8edbac2616c77c03cc37c632393bfdee3f6750be1d4e1f0be92274e7f23f
7
- data.tar.gz: a50ce5b4026964bd194cc0863aa9c58e4d3bd555e459fee5fb39b1e77cc036f63128097bc6dcf42521d0921338f4cffc02b7cf82deb50dcbcc58620229d831c7
6
+ metadata.gz: 17641058e03e35b7a25e1ce076991c5e16e405a71f10e7af52e20f0b3387bbefd5ce4cc1e1d473558dbdd0026e714ea9bb12f36d67abc44703d9d3ca0f790971
7
+ data.tar.gz: ff805dadf363ac08ca12447d5cffcce0b627516dc804babbf4dc6121246c8c18b0ef5fd75f08c13bebfd6c76c5fbc542281307b21f6133a32eb27a0d20f3c6a1
@@ -94,6 +94,8 @@ module Marfa
94
94
 
95
95
  block = Object.const_get(classname).new
96
96
  data = block.get_data(attrs)
97
+ data = data.merge(options[:locals]) unless options[:locals].nil?
98
+
97
99
  full_path = Marfa.config.block_templates_path + '/' + options[:path]
98
100
 
99
101
  return render_content(full_path, data) if cache_time == 0
@@ -1,7 +1,7 @@
1
1
  # Version constant
2
2
  module Marfa
3
3
  # The version constant for the current version of Marfa
4
- VERSION = '0.3.2' unless defined?(Marfa::VERSION)
4
+ VERSION = '0.3.3' unless defined?(Marfa::VERSION)
5
5
 
6
6
  # The current Marfa version.
7
7
  # @return [String] The version number
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'marfa'
6
- s.version = '0.3.2'
6
+ s.version = '0.3.3'
7
7
  s.required_ruby_version = '>= 2.3.0'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.date = Time.now.strftime('%Y-%m-%d')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Krechetov