infopark_fiona7 0.71.1.3 → 0.71.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d8b201b6a4452091465d86a8dccc8a743b9e287
|
|
4
|
+
data.tar.gz: d0b4b9eba303b752fed9d11e931add5722116051
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7569e6bebe621be9d0d1e5aa2b5caa987377d325e7d63a2be9a52af3af9e6748c7e0456731e604f10087bd38648bbc03e3276e31723d61fb89f827c6539318a
|
|
7
|
+
data.tar.gz: 2249c27ce493f725190214fa86f23f756ea70063f2b7555d618f727e80008712c5946ef94fa157c76c5aee211a780b95a5c2535040eb83e4a0e102fe37b55fa4
|
|
@@ -239,7 +239,7 @@ module Fiona7
|
|
|
239
239
|
end
|
|
240
240
|
elsif value.kind_of?(ActionDispatch::Http::UploadedFile)
|
|
241
241
|
if !Fiona7.mode == :legacy || attribute_name.to_s != "blob"
|
|
242
|
-
@obj.set(attribute_name.to_s,
|
|
242
|
+
@obj.set(attribute_name.to_s, upload_uploaded_file(value))
|
|
243
243
|
else
|
|
244
244
|
special_upload_uploaded_handling(attribute_name, value)
|
|
245
245
|
end
|
|
@@ -468,7 +468,11 @@ module Fiona7
|
|
|
468
468
|
self.validate_transformation!
|
|
469
469
|
options[:query] = self.encode_query_string
|
|
470
470
|
end
|
|
471
|
-
|
|
471
|
+
if port == 443
|
|
472
|
+
URI::HTTPS.build(options).to_s
|
|
473
|
+
else
|
|
474
|
+
URI::HTTP.build(options).to_s
|
|
475
|
+
end
|
|
472
476
|
end
|
|
473
477
|
|
|
474
478
|
def encode_query_string
|
|
@@ -29,6 +29,7 @@ module Scrivito
|
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
# do not reference global Obj
|
|
32
33
|
def path_or_url_without_editing_context(target, path_or_url, options)
|
|
33
34
|
if target.is_a?(Link)
|
|
34
35
|
path_or_url_for_links(target, path_or_url, options)
|
|
@@ -47,6 +48,27 @@ module Scrivito
|
|
|
47
48
|
"It must only be called with an Obj or a Link or a non-empty LinkList."
|
|
48
49
|
end
|
|
49
50
|
end
|
|
51
|
+
|
|
52
|
+
# use rails connector permalinks in legacy mode
|
|
53
|
+
def path_or_url_for_objs(obj, path_or_url, options)
|
|
54
|
+
permalink = obj.permalink
|
|
55
|
+
if permalink
|
|
56
|
+
if Fiona7.mode == :legacy
|
|
57
|
+
main_app
|
|
58
|
+
.public_send("cms_permalink_#{path_or_url}", options.merge(:permalink => permalink))
|
|
59
|
+
else
|
|
60
|
+
main_app
|
|
61
|
+
.public_send("scrivito_permalink_#{path_or_url}", options.merge(:permalink => permalink))
|
|
62
|
+
end
|
|
63
|
+
elsif homepage?(obj)
|
|
64
|
+
main_app.public_send("scrivito_root_#{path_or_url}", options)
|
|
65
|
+
elsif obj.binary?
|
|
66
|
+
binary_obj_url(obj) || LINK_TO_EMPTY_BLOB
|
|
67
|
+
else
|
|
68
|
+
slug = obj.slug.present? ? obj.slug.sub(/^\//, '') : nil
|
|
69
|
+
id_path_or_url_for_objs(obj, path_or_url, options.merge(slug: slug))
|
|
70
|
+
end
|
|
71
|
+
end
|
|
50
72
|
end
|
|
51
73
|
end
|
|
52
74
|
|
data/lib/fiona7/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: infopark_fiona7
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.71.1.
|
|
4
|
+
version: 0.71.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomasz Przedmojski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|