handlebars_assets 0.12.2 → 0.12.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmZjNTBmM2MyMTNhNTU4YmRhNWJkMDZmMGRmNmYwMGI1MWYzZDgzYg==
4
+ NTViZmE5OTE0ZDFiNjU5ZTkzMjMyYjIwZjI5NzA0ZjdlMzE4ZTcwMQ==
5
5
  data.tar.gz: !binary |-
6
- ZWYyZmIwMDc4Nzg0MGY3NjU2ZDBhNDViN2EzYTlmNTZhNzBlYTljNA==
6
+ OGRhMTc5NTEzZThjZjI4YzM4M2IyYTUwMWVhZjE1NDliMDZhOGZmMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjgxMzY2ZWE1ZGZmZWNhNjQ1OWZlMzFlZmZlYjJmODliYTZjNDkwZDE5Njg0
10
- Y2JhMjVlYzQxYjAyNjAzZmYyNDZkYTcxYTc5OTM2MWE2OWIzZjU2NTFhODUw
11
- YTdkMDViNTk3YmZhZTU3OTBjMDY0ZGU0ODViZWQ3OGUyOGJmNjY=
9
+ YTFmODBjZmU0MDQwODkyZjEwNjMwYWJiNTY2NDhiNWNiOWNiNGE0M2Y3ZDM1
10
+ YzIzMjMzMTRhMzIzODZkYjA0ZmFjNDhiZjlkNTlhNmJjMThiZTZiODUxNTk1
11
+ ZWEwMzUxNzgyYzBmNDJkZDJmMWQzNzY4MmM2ZmIzYmRhZmI3NzY=
12
12
  data.tar.gz: !binary |-
13
- OTg3YjRhMjhmZmFmYzgwNmFjYjMxMGMxZDFjNDRkNzMyZDk3MGVkYzc5M2U4
14
- M2YwMzNjYjIxZGMyNTZmOTFkNjdkYWMxN2MxNDBjM2M4NDFmOThlMzk4OGMx
15
- NDgxYTliNTM2MWQ4MjYxZDJhZWZkN2ZmZTA0YTk4YmUyNjI2NzA=
13
+ M2U2MzU0MjczYjhlNzJkMDhmMDAyOGZhYjBmYTkzMTc1YjJjYzhlNzMxNGJh
14
+ ZDA4NzRhYzkwNzY5NWUzMjk5Y2RlNTM3NmQ5YjdlODNmZDQ3YjY1ODQ1Nzk4
15
+ MDIxNjgyZDBhYjExMmE1OTgyYThmZmY1MDU3MzM3MDE1MGM0ZTI=
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ handlebars_assets
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use @handlebars_assets
1
+ rvm gemset use --create handlebars_assets
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## On master
2
2
 
3
+ ## 0.12.3 (2013-05-28)
4
+
5
+ * Pass scope and locals up the chain - @AlexRiedler
6
+ * Nicer rvmrc - @AlexRiedler
7
+ * Allow configure block - @AlexRiedler
8
+
3
9
  ## 0.12.2 (2013-05-27)
4
10
 
5
11
  * Synchronize Sprockets engine registers with Rails - @mark-rushakoff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- handlebars_assets (0.12.2)
4
+ handlebars_assets (0.12.3)
5
5
  execjs (>= 1.2.9)
6
6
  sprockets (>= 2.0.3)
7
7
  tilt
data/README.md CHANGED
@@ -223,6 +223,7 @@ Follow me on [Github](https://github.com/leshill) and [Twitter](https://twitter.
223
223
  * Akshay Rawat (@akshayrawat) : Update to handlebars.js 1.0.0-rc.3
224
224
  * Turadg Aleahmad (@turadg) : Update to handlebars 1.0.0-rc.4
225
225
  * Mark Rushakoff (@mark-rushakoff) : Synchronize Sprockets engine registers with Rails
226
+ * Alex Riedler (@AlexRiedler) : Pass scope and locals up the chain
226
227
 
227
228
  # Contributing
228
229
 
@@ -9,6 +9,10 @@ module HandlebarsAssets
9
9
  :known_helpers, :known_helpers_only, :options, :patch_files,
10
10
  :patch_path, :path_prefix, :slim_options, :template_namespace
11
11
 
12
+ def configure
13
+ yield self
14
+ end
15
+
12
16
  def compiler
13
17
  @compiler || 'handlebars.js'
14
18
  end
@@ -23,9 +23,9 @@ module HandlebarsAssets
23
23
  template_path = TemplatePath.new(scope)
24
24
 
25
25
  source = if template_path.is_haml?
26
- Haml::Engine.new(data, HandlebarsAssets::Config.haml_options).render
26
+ Haml::Engine.new(data, HandlebarsAssets::Config.haml_options).render(scope, locals)
27
27
  elsif template_path.is_slim?
28
- Slim::Template.new(HandlebarsAssets::Config.slim_options) { data }.render
28
+ Slim::Template.new(HandlebarsAssets::Config.slim_options) { data }.render(scope, locals)
29
29
  else
30
30
  data
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module HandlebarsAssets
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2013-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs
@@ -130,6 +130,7 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - .gitignore
133
+ - .ruby-gemset
133
134
  - .rvmrc
134
135
  - CHANGELOG.md
135
136
  - Gemfile