cyborg 0.4.3 → 0.4.4

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: 328ced25e839d90b4f2b7ac2f1fdc421807e869a
4
- data.tar.gz: 8423b768d85e3cbe0d54888e2913d3b4f58be426
3
+ metadata.gz: 7fab1d30be9ab99ceb8984d7546422d875464dc9
4
+ data.tar.gz: 1231848ccee2b3475c70d50cc96fb1b34aba60ad
5
5
  SHA512:
6
- metadata.gz: b4669e1a4a810a2d83dd96dc6116ce4824b18b501f07e0e7879972ffbe2c66a4fbc94b41e777fd7fff8398e7aa9f33e3a923067176c8116cc192418c9406b72b
7
- data.tar.gz: 9a315d06b29da6cbe8f2f6de8071c3a26289656c1b1fdd39ff8e836a4ca89c43a2565bb9eb2d6689c4bd55b5a97e2be0031a249e668c00efc5b0d44831028e01
6
+ metadata.gz: 34211c67e257f97026f6f880c5e56e195f4b8e33915bf15e74b89e2cd0b207f5034dd68f355e39410b8f66c4dcea6a546fc5690827b29343da980d88d65440c7
7
+ data.tar.gz: 576cb45453ee2659b15d2a6247e716521c1ec9bcf1af4a46fb5af9feb2409d9e8a8496e7cff6007e4e9325b626480153427519e0137147162622d658549bc836
@@ -47,11 +47,13 @@ module Cyborg
47
47
  %Q{<link rel="mask-icon" mask href="#{cyborg_asset_url(path)}" color="#{color}">}.html_safe
48
48
  end
49
49
 
50
- def favicon_tag(source='favicon.ico', options={})
50
+ def favicon_tag(*args)
51
+ options = args.last.is_a?(Hash) ? args.pop : {}
52
+ source = args.first || 'favicon.ico'
51
53
  tag('link', {
52
54
  :rel => 'shortcut icon',
53
55
  :type => 'image/x-icon',
54
- :href => cyborg_asset_url(source)
56
+ :href => "/images/assets/#{Cyborg.plugin.name}/#{source}"
55
57
  }.merge!(options.symbolize_keys))
56
58
  end
57
59
  end
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis