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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c66b4fa170b3718968459960a8a4aa051408062
4
- data.tar.gz: 389cb139ac67a1f24612b1d53df4217ee8840cde
3
+ metadata.gz: 5dbd4071423106195be665291e990fbd1f551678
4
+ data.tar.gz: d490a7c51354a32ccaaffea734a76a0e136d6e7a
5
5
  SHA512:
6
- metadata.gz: d579cec2521a601be38d966804585f3446cde627e69534f5e354c016d23e0badec8c790245667c4aa3b6cf0507431da8461e7450b265c976b0993188475ab8eb
7
- data.tar.gz: a917120ef7e30b7eb06565143dfe863e8958ae35d281f64cf1ce23c4aacf70c36a702d67246d14b2a74b260ae72039a15071cc3cc7fd5fbb25954d80b4cac93e
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'
@@ -1,3 +1,3 @@
1
1
  module Sibu
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails