zassets-plugins-handlebars 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 29b721f2fb7db30e0c6e7e3a74e6d1dfaf964b14
4
+ data.tar.gz: c57106bc8dba621ee33bc6669d6b087496f85c47
5
+ SHA512:
6
+ metadata.gz: 36d8502c5efd9ad91b26956f97bacec3a5bfe0fc4deec29b2298d60049b9d7d78e303de0fea1dea1907219f8231ed5253acf4752b9ef3dfa9fc42be598689d1f
7
+ data.tar.gz: ab927f7f17414d45d718f3012efc4fa5eafc19e90d0b927f85efedd3ea2b6825f67a74232b0f50c0d65cf75e6e3fa87184048634c1bcc444de43f122daa8dbea
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ zassets-plugins-handlebars
2
+ ==========================
3
+
4
+ [![Version][badge-version-img]][badge-version-uri]
5
+
6
+
7
+ Handlebars plugin for [zassets][].
8
+
9
+
10
+ Installation
11
+ ------------
12
+
13
+ $ gem install zassets-plugins-handlebars
14
+
15
+
16
+ Configuration
17
+ -------------
18
+
19
+ zassets configuration:
20
+
21
+ ``` yaml
22
+ plugins:
23
+ - handlebars
24
+ ```
25
+
26
+ Specifying plugin options:
27
+
28
+ ``` yaml
29
+ plugins:
30
+ - name: :handlebars
31
+ ember: true
32
+ multiple_frameworks: false
33
+ ```
34
+
35
+
36
+
37
+ [zassets]: https://rubygems.org/gems/zassets
38
+ [badge-version-img]: https://img.shields.io/gem/v/producer-core.svg?style=flat-square
39
+ [badge-version-uri]: https://rubygems.org/gems/producer-core
@@ -3,12 +3,21 @@ module ZAssets
3
3
  module Handlebars
4
4
  class Registrant
5
5
  def initialize(config)
6
- @config = config
6
+ @config = config
7
+ @plugin_config = @config[:plugins]
8
+ .find { |e| e[:name].to_sym == :handlebars }
9
+ .reject { |k, v| k == :name }
7
10
  end
8
11
 
9
12
  def register
10
13
  require 'handlebars_assets'
11
14
 
15
+ HandlebarsAssets::Config.template_namespace = 'JST'
16
+
17
+ @plugin_config.each do |k, v|
18
+ HandlebarsAssets::Config.send "#{k}=".to_sym, v
19
+ end
20
+
12
21
  @config[:paths] << HandlebarsAssets.path
13
22
  end
14
23
  end
@@ -1,7 +1,7 @@
1
1
  module ZAssets
2
2
  module Plugins
3
3
  module Handlebars
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,68 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zassets-plugins-handlebars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Thibault Jouan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2015-05-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: handlebars_assets
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 0.14.1
19
+ version: '0.15'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 0.14.1
30
- description: ! 'Handlebars JST processor for zassets.
31
-
32
- '
26
+ version: '0.15'
27
+ description: Handlebars JST processor for zassets.
33
28
  email: tj@a13.fr
34
29
  executables: []
35
30
  extensions: []
36
- extra_rdoc_files: []
31
+ extra_rdoc_files:
32
+ - README.md
37
33
  files:
38
- - .gitignore
39
- - Gemfile
34
+ - README.md
40
35
  - lib/zassets-plugins-handlebars.rb
41
36
  - lib/zassets/plugins/handlebars/registrant.rb
42
37
  - lib/zassets/plugins/handlebars/version.rb
43
- - zassets-plugins-handlebars.gemspec
44
38
  homepage: https://rubygems.org/gems/zassets-plugins-handlebars
45
- licenses: []
39
+ licenses:
40
+ - BSD-3-Clause
41
+ metadata: {}
46
42
  post_install_message:
47
43
  rdoc_options: []
48
44
  require_paths:
49
45
  - lib
50
46
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
47
  requirements:
53
- - - ! '>='
48
+ - - ">="
54
49
  - !ruby/object:Gem::Version
55
50
  version: '0'
56
51
  required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ! '>='
53
+ - - ">="
60
54
  - !ruby/object:Gem::Version
61
55
  version: '0'
62
56
  requirements: []
63
57
  rubyforge_project:
64
- rubygems_version: 1.8.23
58
+ rubygems_version: 2.4.5
65
59
  signing_key:
66
- specification_version: 3
67
- summary: zassets-plugins-handlebars-0.0.2
60
+ specification_version: 4
61
+ summary: zassets-plugins-handlebars-0.0.3
68
62
  test_files: []
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- Gemfile.lock
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
@@ -1,19 +0,0 @@
1
- $:.unshift File.expand_path('../lib', __FILE__)
2
- require 'zassets/plugins/handlebars/version'
3
-
4
- Gem::Specification.new do |s|
5
- s.name = 'zassets-plugins-handlebars'
6
- s.version = ZAssets::Plugins::Handlebars::VERSION
7
- s.summary = "zassets-plugins-handlebars-#{ZAssets::Plugins::Handlebars::VERSION}"
8
- s.description = <<-eoh.gsub(/^ +/, '')
9
- Handlebars JST processor for zassets.
10
- eoh
11
- s.homepage = 'https://rubygems.org/gems/zassets-plugins-handlebars'
12
-
13
- s.author = 'Thibault Jouan'
14
- s.email = 'tj@a13.fr'
15
-
16
- s.files = `git ls-files`.split "\n"
17
-
18
- s.add_dependency 'handlebars_assets', '~> 0.14.1'
19
- end