infopark_reactor 1.11.0.beta2 → 1.11.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/infopark_reactor.rb +1 -8
- data/lib/reactor/main.rb +21 -0
- data/lib/reactor/support/link_matcher.rb +4 -4
- data/lib/reactor/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc04099064780ed9c6480ed010c5911fc7c6ab8
|
4
|
+
data.tar.gz: 04b8654ad0ae1c2d61d65fcb67a8a76309e21a02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a49301c71daa7a5f265623c259d3a6c1dd4127819771e345cb929e084c9b27b3204c1ed3ba25b4d29e8ff4d5f863c8909cb305b435308d06526c531961a6177
|
7
|
+
data.tar.gz: e57cf0ab9b1d21e8b8ea06152c2a94541b4ff43aab5f8f48a7a30fcea3fc5e51be17d7a45328433bb234c6589ab1355a5007c0fc1a0f004e7a06bae5c1d7d70e
|
data/lib/infopark_reactor.rb
CHANGED
@@ -61,16 +61,9 @@ require 'reactor/no_working_version'
|
|
61
61
|
require 'reactor/not_permitted'
|
62
62
|
|
63
63
|
# require components
|
64
|
-
require 'reactor/
|
65
|
-
require 'reactor/persistence'
|
66
|
-
require 'reactor/validations'
|
67
|
-
require 'reactor/permission'
|
68
|
-
require 'reactor/legacy'
|
64
|
+
require 'reactor/main'
|
69
65
|
require 'reactor/rc_independent'
|
70
66
|
require 'reactor/sudo'
|
71
|
-
require 'reactor/workflow'
|
72
|
-
require 'reactor/streaming_upload'
|
73
|
-
require 'reactor/rails_connector_meta'
|
74
67
|
|
75
68
|
# require rails integration
|
76
69
|
require 'reactor/session'
|
data/lib/reactor/main.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'reactor/rails_connector_meta'
|
2
|
+
require 'reactor/legacy'
|
3
|
+
require 'reactor/attributes'
|
4
|
+
require 'reactor/persistence'
|
5
|
+
require 'reactor/validations'
|
6
|
+
require 'reactor/permission'
|
7
|
+
require 'reactor/workflow'
|
8
|
+
require 'reactor/streaming_upload'
|
9
|
+
|
10
|
+
module Reactor
|
11
|
+
module Main
|
12
|
+
def self.included(base)
|
13
|
+
[RailsConnector::Meta, Reactor::Legacy::Base,
|
14
|
+
Reactor::Attributes::Base, Reactor::Persistence::Base,
|
15
|
+
Reactor::Validations::Base, Reactor::Permission::Base,
|
16
|
+
Reactor::Workflow::Base, Reactor::StreamingUpload::Base].each do |mod|
|
17
|
+
base.send(:include, mod)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -10,8 +10,8 @@ module Reactor
|
|
10
10
|
match = match_url
|
11
11
|
(match[:action] == "index") &&
|
12
12
|
(match[:controller] == "rails_connector/cms_dispatch") &&
|
13
|
-
((match[:id].present? &&
|
14
|
-
(match[:permalink].present? &&
|
13
|
+
((match[:id].present? && RailsConnector::AbstractObj.exists?(match[:id].to_i)) ||
|
14
|
+
(match[:permalink].present? && RailsConnector::AbstractObj.exists?(:permalink => match[:permalink])))
|
15
15
|
rescue ActionController::RoutingError
|
16
16
|
return false
|
17
17
|
end
|
@@ -20,9 +20,9 @@ module Reactor
|
|
20
20
|
match = match_url
|
21
21
|
|
22
22
|
if match[:permalink].present?
|
23
|
-
append_fragment_and_query
|
23
|
+
append_fragment_and_query RailsConnector::AbstractObj.find_by_permalink(match[:permalink]).path
|
24
24
|
elsif match[:id].present?
|
25
|
-
append_fragment_and_query
|
25
|
+
append_fragment_and_query RailsConnector::AbstractObj.find(match[:id].to_i).path
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/lib/reactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.0.
|
4
|
+
version: 1.11.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Przedmojski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- lib/reactor/link/external.rb
|
153
153
|
- lib/reactor/link/internal.rb
|
154
154
|
- lib/reactor/link/temporary_link.rb
|
155
|
+
- lib/reactor/main.rb
|
155
156
|
- lib/reactor/migration.rb
|
156
157
|
- lib/reactor/no_working_version.rb
|
157
158
|
- lib/reactor/not_permitted.rb
|