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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddab05f9afaf1ac1c000b4b6370a2a794b98db7e
4
- data.tar.gz: 0748acba4d1558e4d46a6df79119807312452799
3
+ metadata.gz: 67ff14dd804cb083b7883d2342a8b65c02915cc6
4
+ data.tar.gz: eb5570d0df39e931e8dc650636f29b1c92f6f96f
5
5
  SHA512:
6
- metadata.gz: 4d60a31b3d4709d8e9eacb2c9eafec5618b100e32e87de91845c1152c66968d47451593029637bdd6b46316e739817623f1b061d5dad764f7e3b621b12b527f7
7
- data.tar.gz: 7f8a61863b2885eb53ab5ac5ba65a130e0fdc204d8986a73c1f8bad9532bd18bbac1ca6a95a3231ed1da8c930b8f3a8ef3f4da0a1d15bc59d1d7a7098606a9e8
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 h(value)
23
- when Time then h(l(value))
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}="#{h(value)}")
109
+ subst << %( #{name}="#{html_escape_once(value)}")
110
110
  end
111
- subst << %( target="#{h(link.target)}") unless link.target.blank?
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 << %( "#{h(link.title)}")
120
+ subst << %( "#{html_escape_once(link.title)}")
121
121
  end
122
122
  end
123
123
  subst
@@ -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) || use_cached_file_if_older_than > File.mtime(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
@@ -86,7 +86,7 @@ module RailsConnector
86
86
  end
87
87
 
88
88
  def configure_cms_database
89
- RailsConnector::CmsBaseModel.configure_database('cms')
89
+ RailsConnector::CmsBaseModel.configure_database(:cms)
90
90
  end
91
91
 
92
92
  attr_accessor :choose_homepage_callback
@@ -1,7 +1,7 @@
1
1
  module RailsConnector
2
2
  module Version
3
3
  def self.get
4
- '6.10.0.beta1'
4
+ '7.0.0'
5
5
  end
6
6
  end
7
7
  end
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: 6.10.0.beta1
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: 2014-11-13 00:00:00.000000000 Z
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 Web 2.0 applications using Ruby on Rails and at the same time display CMS
161
- managed content.
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: []