infopark_fiona_connector 6.10.0.beta1 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/rails_connector/display_helper.rb +5 -5
- data/lib/rails_connector/blob.rb +9 -1
- data/lib/rails_connector/configuration.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67ff14dd804cb083b7883d2342a8b65c02915cc6
|
4
|
+
data.tar.gz: eb5570d0df39e931e8dc650636f29b1c92f6f96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fe8104966700a41dcdfa82c3dd3194ec0e4cfe5ce01f8caf89d156fc2d5d95f24e0deef8bc87c70e3eb435ae5f5e72523e40eda842f8fac083565e992dabfa0
|
7
|
+
data.tar.gz: 5462a7a5d68156db743bb6a8d65267f80e4ea8498bdad2b4cd20c1c563e6954b8bfb50e69f2383bf89a8dbfcd3efa076348e0eeb8e8cee672c8f004ad7f3918d
|
@@ -19,8 +19,8 @@ module RailsConnector
|
|
19
19
|
case value
|
20
20
|
when MarkdownString then markdown(convert_links(value)).html_safe
|
21
21
|
when HtmlString then convert_links(value).html_safe
|
22
|
-
when String then
|
23
|
-
when Time then
|
22
|
+
when String then html_escape_once(value).html_safe
|
23
|
+
when Time then html_escape_once(l(value)).html_safe
|
24
24
|
else value
|
25
25
|
end
|
26
26
|
end
|
@@ -106,9 +106,9 @@ module RailsConnector
|
|
106
106
|
['title', begin link.title unless link.title.blank? end]
|
107
107
|
end
|
108
108
|
if value
|
109
|
-
subst << %( #{name}="#{
|
109
|
+
subst << %( #{name}="#{html_escape_once(value)}")
|
110
110
|
end
|
111
|
-
subst << %( target="#{
|
111
|
+
subst << %( target="#{html_escape_once(link.target)}") unless link.target.blank?
|
112
112
|
subst
|
113
113
|
end
|
114
114
|
|
@@ -117,7 +117,7 @@ module RailsConnector
|
|
117
117
|
unless link.title.blank?
|
118
118
|
case link.markdown_type
|
119
119
|
when 'inline', 'reference'
|
120
|
-
subst << %( "#{
|
120
|
+
subst << %( "#{html_escape_once(link.title)}")
|
121
121
|
end
|
122
122
|
end
|
123
123
|
subst
|
data/lib/rails_connector/blob.rb
CHANGED
@@ -23,7 +23,7 @@ module RailsConnector
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def path_of_stored_data(use_cached_file_if_older_than = Time.now)
|
26
|
-
store_data if !File.exists?(path) ||
|
26
|
+
store_data if !File.exists?(path) || file_size_differs? || stale?(use_cached_file_if_older_than)
|
27
27
|
path
|
28
28
|
end
|
29
29
|
|
@@ -63,6 +63,14 @@ module RailsConnector
|
|
63
63
|
File.open(tmp_file, "wb", &block)
|
64
64
|
File.rename(tmp_file, path)
|
65
65
|
end
|
66
|
+
|
67
|
+
def stale?(time)
|
68
|
+
time > File.mtime(path)
|
69
|
+
end
|
70
|
+
|
71
|
+
def file_size_differs?
|
72
|
+
blob_length != File.stat(path).size
|
73
|
+
end
|
66
74
|
end
|
67
75
|
|
68
76
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_fiona_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infopark AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -157,8 +157,8 @@ dependencies:
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: 0.1.0
|
159
159
|
description: The Fiona Connector for Infopark CMS Fiona enables you to develop modern,
|
160
|
-
dynamic
|
161
|
-
|
160
|
+
dynamic web applications using Ruby on Rails and at the same time display CMS managed
|
161
|
+
content.
|
162
162
|
email: info@infopark.de
|
163
163
|
executables: []
|
164
164
|
extensions: []
|