infopark_fiona_connector 7.0.0 → 7.0.1.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_connector/basic_obj.rb +1 -1
- data/lib/rails_connector/cms_base_model.rb +9 -0
- data/lib/rails_connector/cms_test_request.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f2b480881d2b440fb1f4c835e5e48999671ab23
|
4
|
+
data.tar.gz: 01fc090a59b9b8223953a47fb82c7380b7754380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5929c0fa2edbd2fdf41581d4ef4face60c8e284081f65166e6c66c6ca41f3cf243cac997bdee2037686fd58a155608969ff987c51afeebf22899f535e2c0e84a
|
7
|
+
data.tar.gz: cc7f76c25b6679d9da81eb4b6b754c760a40f933369c7c5c091d1b7ada23233dac9bc2a759a57a13efc4d57e2420dc667665f304aff6bb120f1a61f6186e7cdf
|
@@ -340,7 +340,7 @@ module RailsConnector
|
|
340
340
|
return name if key.to_sym == :name
|
341
341
|
|
342
342
|
# regular activerecord attributes
|
343
|
-
if @attributes.
|
343
|
+
if @attributes.key?(key.to_s)
|
344
344
|
if key == :valid_from or key == :valid_until or key == :last_changed
|
345
345
|
return as_date(super(key))
|
346
346
|
else
|
@@ -25,6 +25,15 @@ module RailsConnector
|
|
25
25
|
true
|
26
26
|
end
|
27
27
|
|
28
|
+
# FIXME: Find a more stable solution for this
|
29
|
+
#
|
30
|
+
# Since ActiveRecord 4.2 finding Objs by name is no longer consistent when
|
31
|
+
# switching between edited and released content at runtime. As long as we
|
32
|
+
# find a better solution this mitigates the behaviour.
|
33
|
+
def self.find_by(arg, *args)
|
34
|
+
where(arg, *args).take
|
35
|
+
end
|
36
|
+
|
28
37
|
def readonly?
|
29
38
|
true
|
30
39
|
end
|
@@ -10,7 +10,7 @@ module RailsConnector
|
|
10
10
|
# The TestRequest must therefore use CmsDispatchController as a fallback route.
|
11
11
|
def assign_parameters(routes, controller_path, action, parameters = {})
|
12
12
|
super(routes, controller_path, action, parameters)
|
13
|
-
rescue ActionController::RoutingError, AbstractController::ActionNotFound => e
|
13
|
+
rescue ActionController::UrlGenerationError, ActionController::RoutingError, AbstractController::ActionNotFound => e
|
14
14
|
begin
|
15
15
|
super(routes, "rails_connector/cms_dispatch", action, parameters)
|
16
16
|
rescue ActionController::RoutingError, AbstractController::ActionNotFound
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,33 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_fiona_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.1.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infopark AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.11
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: '4.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 4.0.11
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
26
|
version: '4.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|