sibu 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/sibu/pages_helper.rb +5 -1
- data/lib/sibu/version.rb +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: 9eef09b553f04e3afe7993fb6ad105658ac1c75e
|
4
|
+
data.tar.gz: 863489cd77c8b2d09a2d9bfc404c1062a433a5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b88cb21dfe1e0e34ccf60c4cb1d383ac93f35fe739ef7787c8c4e33daabfcc31d422be33d58cb6dd0738d9bed29fdc6b959fc3b7aae474ea49a64ea69a7ae29
|
7
|
+
data.tar.gz: 809e4cdb6a9956a31beba6648ba3f5cafae72de4206f0ce043f8c638cc8aacfc7920208e4a0611d5bf42890145c655453bb68b6da38e3e7248450943f1e5dfe9
|
@@ -69,7 +69,11 @@ module Sibu
|
|
69
69
|
size = opts.delete(:size)
|
70
70
|
defaults = {"id" => elt.is_a?(Hash) ? elt["id"] : elt, "src" => DEFAULT_IMG}
|
71
71
|
content = defaults.merge(elt.is_a?(Hash) ? elt : (select_element(elt) || {}))
|
72
|
-
|
72
|
+
if action_name == 'show'
|
73
|
+
content["src"] = ("/#{conf[:deployment_path]}" + content["src"]) if @online && conf[:deployment_path]
|
74
|
+
else
|
75
|
+
opts.merge!({data: {id: elt_id(elt), type: "media", repeat: repeat, size: size}}) if action_name != 'show'
|
76
|
+
end
|
73
77
|
wrapper ? content_tag(wrapper, content_tag(:img, nil, content.except("id")), opts) : content_tag(:img, nil, content.except("id").merge(opts))
|
74
78
|
end
|
75
79
|
|
data/lib/sibu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|