infopark_fiona7 0.71.1.3 → 0.71.1.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: afe43c80b818f5ca19c21571d3a98c2568eac684
4
- data.tar.gz: aeb258c26d909330c3383d135a5ff989168c6a88
3
+ metadata.gz: 0d8b201b6a4452091465d86a8dccc8a743b9e287
4
+ data.tar.gz: d0b4b9eba303b752fed9d11e931add5722116051
5
5
  SHA512:
6
- metadata.gz: 3f0f1ade46b5928b457534bd07da938c240d809b9de10146eae70d87233e85d3283e5ffc1200e4b6ce0fd957d24dc6b3ff731fdb14ee1fdef6b97096e73f49a2
7
- data.tar.gz: 5815edb6514e05026cdb5b88444ece0e223181cb786b1a4740dbf0040e8d2e7607a763aa445f0278941e33e8d92e5f49a86845241448791e82a20d440a4ef6f1
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, upload_file(value))
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
- URI::HTTP.build(options).to_s
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
 
@@ -1,3 +1,3 @@
1
1
  module Fiona7
2
- VERSION = "0.71.1.3"
2
+ VERSION = "0.71.1.4"
3
3
  end
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.3
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-18 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails