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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67ff14dd804cb083b7883d2342a8b65c02915cc6
4
- data.tar.gz: eb5570d0df39e931e8dc650636f29b1c92f6f96f
3
+ metadata.gz: 9f2b480881d2b440fb1f4c835e5e48999671ab23
4
+ data.tar.gz: 01fc090a59b9b8223953a47fb82c7380b7754380
5
5
  SHA512:
6
- metadata.gz: 8fe8104966700a41dcdfa82c3dd3194ec0e4cfe5ce01f8caf89d156fc2d5d95f24e0deef8bc87c70e3eb435ae5f5e72523e40eda842f8fac083565e992dabfa0
7
- data.tar.gz: 5462a7a5d68156db743bb6a8d65267f80e4ea8498bdad2b4cd20c1c563e6954b8bfb50e69f2383bf89a8dbfcd3efa076348e0eeb8e8cee672c8f004ad7f3918d
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.include?(key.to_s)
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
@@ -1,7 +1,7 @@
1
1
  module RailsConnector
2
2
  module Version
3
3
  def self.get
4
- '7.0.0'
4
+ '7.0.1.beta2'
5
5
  end
6
6
  end
7
7
  end
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.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-03-31 00:00:00.000000000 Z
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