middleman-web_components 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleman-web_components.rb +3 -2
- data/middleman-web_components.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d805b254d5daf29e5fddb11790c2507043faf30d
|
4
|
+
data.tar.gz: 9f2b57f2c53ea338796070c0a5ae95db76813fff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d84942c1c9dc2f5a711251d080ec1a1698f5d704f3cbd5bd334d4347594d80478e756c4bf6618439dc10cc31d7f3c8973693a3d04248f7aa394c59007c8dcc
|
7
|
+
data.tar.gz: 8f3af63b90669d2fe6ea630c4aceb28f51634f874495ac3c2871d70964b78da5c8ff9b73ab4b2250976831dc447a7ed6d24a221f6baecabf31894615959cdc11
|
@@ -18,12 +18,13 @@ class Middleman::WebComponents < ::Middleman::Extension
|
|
18
18
|
|
19
19
|
helpers do
|
20
20
|
def component_import_tag(*sources)
|
21
|
-
extension = app.extensions
|
21
|
+
extension = app.extensions[:web_components]
|
22
22
|
options = {
|
23
23
|
rel: 'import'
|
24
24
|
}.update(sources.extract_options!.symbolize_keys)
|
25
|
+
|
25
26
|
sources.flatten.inject(ActiveSupport::SafeBuffer.new) do |all, source|
|
26
|
-
url = url_for(File.join(extension.options.directory, "#{source}.html")
|
27
|
+
url = url_for(File.join('/', extension.options.directory, "#{source}.html"))
|
27
28
|
all << tag(:link, {href: url}.update(options))
|
28
29
|
end
|
29
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-web_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KITAITI Makoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|