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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2649a34240ebf7ba0254b206e929f8d80be1f4ad
4
- data.tar.gz: 31b0f374168394beb5f1de509a0e201ce8b64f33
3
+ metadata.gz: dcc04099064780ed9c6480ed010c5911fc7c6ab8
4
+ data.tar.gz: 04b8654ad0ae1c2d61d65fcb67a8a76309e21a02
5
5
  SHA512:
6
- metadata.gz: 1c119f9285fa51ff038cb37d40628bdc606d57022d0d4d91c6b0e4d3195ca1342b31ea6f89014b8f9710a7fc25cb03ccf04fd7fa9581ba1e80b24be448120801
7
- data.tar.gz: 13d83fbc668a9b4d211b5f339a7bafe9ef658e7fcb06a892c0f17a3f96c5e0443cc00b7d15bfd1ec23959f45dd40560df9c39c06a8cb2cd430835a7e2b5deb30
6
+ metadata.gz: 5a49301c71daa7a5f265623c259d3a6c1dd4127819771e345cb929e084c9b27b3204c1ed3ba25b4d29e8ff4d5f863c8909cb305b435308d06526c531961a6177
7
+ data.tar.gz: e57cf0ab9b1d21e8b8ea06152c2a94541b4ff43aab5f8f48a7a30fcea3fc5e51be17d7a45328433bb234c6589ab1355a5007c0fc1a0f004e7a06bae5c1d7d70e
@@ -61,16 +61,9 @@ require 'reactor/no_working_version'
61
61
  require 'reactor/not_permitted'
62
62
 
63
63
  # require components
64
- require 'reactor/attributes'
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'
@@ -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? && Obj.exists?(match[:id].to_i)) ||
14
- (match[:permalink].present? && Obj.exists?(:permalink => match[:permalink])))
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 Obj.find_by_permalink(match[:permalink]).path
23
+ append_fragment_and_query RailsConnector::AbstractObj.find_by_permalink(match[:permalink]).path
24
24
  elsif match[:id].present?
25
- append_fragment_and_query Obj.find(match[:id].to_i).path
25
+ append_fragment_and_query RailsConnector::AbstractObj.find(match[:id].to_i).path
26
26
  end
27
27
  end
28
28
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Reactor
3
- VERSION = "1.11.0.beta2"
3
+ VERSION = "1.11.0.beta3"
4
4
  end
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.beta2
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-14 00:00:00.000000000 Z
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