zassets-plugins-emblem 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +3 -0
- data/lib/zassets/plugins/emblem/registrant.rb +20 -0
- data/lib/zassets/plugins/emblem/version.rb +7 -0
- data/lib/zassets-plugins-emblem.rb +7 -0
- data/zassets-plugins-emblem.gemspec +25 -0
- metadata +84 -0
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/Gemfile.lock
|
data/Gemfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
module ZAssets
|
2
|
+
module Plugins
|
3
|
+
module Emblem
|
4
|
+
class Registrant
|
5
|
+
def initialize(config)
|
6
|
+
@config = config
|
7
|
+
end
|
8
|
+
|
9
|
+
def register
|
10
|
+
require 'emblem/sprockets/template'
|
11
|
+
require 'handlebars/source'
|
12
|
+
|
13
|
+
@config[:engines][:emblem] = ::Emblem::Sprockets::Template
|
14
|
+
|
15
|
+
@config[:paths] << File.dirname(::Handlebars::Source.bundled_path)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH << lib unless $LOAD_PATH.include? lib
|
3
|
+
require 'zassets/plugins/emblem/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'zassets-plugins-emblem'
|
7
|
+
s.version = ZAssets::Plugins::Emblem::VERSION
|
8
|
+
s.summary = "zassets-plugins-emblem-#{ZAssets::Plugins::Emblem::VERSION}"
|
9
|
+
s.description = <<-eoh.gsub(/^ +/, '')
|
10
|
+
Emblem processor for zassets.
|
11
|
+
eoh
|
12
|
+
s.homepage = 'https://rubygems.org/gems/zassets-plugins-emblem'
|
13
|
+
|
14
|
+
s.author = 'Thibault Jouan'
|
15
|
+
s.email = 'tj@a13.fr'
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split $/
|
18
|
+
|
19
|
+
s.add_dependency 'emblem-sprockets', '~> 0.1.0'
|
20
|
+
|
21
|
+
# FIXME: handlebars-source version is hardcoded until emblem can work with
|
22
|
+
# handlebars >= 1.1.1.
|
23
|
+
# see: https://github.com/machty/emblem.js/issues/107
|
24
|
+
s.add_dependency 'handlebars-source', '1.0.12'
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zassets-plugins-emblem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Thibault Jouan
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: emblem-sprockets
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.1.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: handlebars-source
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - '='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.0.12
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - '='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.12
|
46
|
+
description: ! 'Emblem processor for zassets.
|
47
|
+
|
48
|
+
'
|
49
|
+
email: tj@a13.fr
|
50
|
+
executables: []
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- .gitignore
|
55
|
+
- Gemfile
|
56
|
+
- lib/zassets-plugins-emblem.rb
|
57
|
+
- lib/zassets/plugins/emblem/registrant.rb
|
58
|
+
- lib/zassets/plugins/emblem/version.rb
|
59
|
+
- zassets-plugins-emblem.gemspec
|
60
|
+
homepage: https://rubygems.org/gems/zassets-plugins-emblem
|
61
|
+
licenses: []
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
requirements: []
|
79
|
+
rubyforge_project:
|
80
|
+
rubygems_version: 1.8.23
|
81
|
+
signing_key:
|
82
|
+
specification_version: 3
|
83
|
+
summary: zassets-plugins-emblem-0.0.0
|
84
|
+
test_files: []
|