sibu 0.5.3 → 0.5.4
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 +2 -2
- 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: 5dbd4071423106195be665291e990fbd1f551678
|
4
|
+
data.tar.gz: d490a7c51354a32ccaaffea734a76a0e136d6e7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f28f07e0e3dd7788c46c99a02888d3f76f65ac835d55490b4e6796ef918b77d3a43a17411a5b188f4b6eab24e424529c36023d6f3920dc9f54940e71cee8333a
|
7
|
+
data.tar.gz: 841817daf5b53c2f5568bbeb5834b3a31f1c7b305b3571a1a067aaf21497f3c2803633d70cdbc7108afbad42151df2c8336416525c76cd81e23377b285695e63
|
@@ -20,13 +20,13 @@ module Sibu
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def available_docs
|
23
|
-
options_from_collection_for_select(Sibu::Document.for_user(sibu_user), :file_url, :file_name, @element["value"])
|
23
|
+
options_from_collection_for_select((Sibu::Document.shared + Sibu::Document.for_user(sibu_user)), :file_url, :file_name, @element["value"])
|
24
24
|
end
|
25
25
|
|
26
26
|
def link_type(val)
|
27
27
|
if val.blank? || val == '#' || /^\d+$/.match(val.to_s)
|
28
28
|
'internal'
|
29
|
-
elsif Sibu::Document.for_user(sibu_user).map {|d| d.file_url}.include?(val)
|
29
|
+
elsif (Sibu::Document.shared + Sibu::Document.for_user(sibu_user)).map {|d| d.file_url}.include?(val)
|
30
30
|
'document'
|
31
31
|
else
|
32
32
|
'external'
|
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.5.
|
4
|
+
version: 0.5.4
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|