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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a58d83f4fb037c74fb3079d7fac1761d249673bd
4
- data.tar.gz: f62e7acb2a74218738c95eec2409036132eeaf09
3
+ metadata.gz: d805b254d5daf29e5fddb11790c2507043faf30d
4
+ data.tar.gz: 9f2b57f2c53ea338796070c0a5ae95db76813fff
5
5
  SHA512:
6
- metadata.gz: 018412b8ac647b0ecbb575ee6704a95e33b73a268c3a2439c271aa4fef0520ab2ffb748b54bd63aae13411f5c8038e7bbb58fb43f583a28948be1ed4e3e5d647
7
- data.tar.gz: 4a51bcdeb91139523a9e58cfd43dcd244131c61e5aadab5451e937b6909d6a8adf4552e869e73189d0bfa30fe063df009e746646e6e212c197545f7d1cd9fd05
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.each.find {|(name, instance)| name == :web_components}[1]
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"), relative: true)
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "middleman-web_components"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.license = "LGPL"
9
9
  s.authors = ["KITAITI Makoto"]
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core