infopark_reactor 1.6.1 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/reactor_controller.rb +2 -1
- data/config/routes.rb +2 -1
- data/infopark_reactor.gemspec +1 -1
- data/lib/engine.rb +1 -0
- data/lib/infopark_reactor.rb +2 -1
- data/lib/reactor/already_released.rb +2 -1
- data/lib/reactor/attributes.rb +2 -1
- data/lib/reactor/attributes/date_serializer.rb +2 -1
- data/lib/reactor/attributes/html_serializer.rb +2 -1
- data/lib/reactor/attributes/link_list_extender.rb +2 -1
- data/lib/reactor/attributes/link_list_serializer.rb +2 -1
- data/lib/reactor/cache/permission.rb +2 -1
- data/lib/reactor/cache/user.rb +2 -1
- data/lib/reactor/legacy.rb +2 -1
- data/lib/reactor/link/external.rb +2 -1
- data/lib/reactor/link/internal.rb +2 -1
- data/lib/reactor/link/temporary_link.rb +2 -1
- data/lib/reactor/no_working_version.rb +2 -1
- data/lib/reactor/not_permitted.rb +2 -1
- data/lib/reactor/permission.rb +5 -1
- data/lib/reactor/persistence.rb +2 -2
- data/lib/reactor/rc_independent.rb +2 -1
- data/lib/reactor/session.rb +2 -1
- data/lib/reactor/session/observers.rb +2 -1
- data/lib/reactor/session/user.rb +2 -1
- data/lib/reactor/streaming_upload.rb +2 -1
- data/lib/reactor/sudo.rb +2 -1
- data/lib/reactor/support/link_matcher.rb +2 -1
- data/lib/reactor/tools/workflow_generator.rb +2 -1
- data/lib/reactor/validations.rb +2 -1
- data/lib/reactor/version.rb +2 -1
- data/lib/reactor/workflow.rb +2 -1
- data/lib/reactor/workflow/empty.rb +2 -1
- data/lib/reactor/workflow/standard.rb +2 -1
- metadata +7 -7
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
class ReactorController < ApplicationController
|
2
3
|
def create_object
|
3
4
|
obj_data = params[:obj] || {}
|
@@ -50,4 +51,4 @@ class ReactorController < ApplicationController
|
|
50
51
|
format.json { render :json => :ok }
|
51
52
|
end
|
52
53
|
end
|
53
|
-
end
|
54
|
+
end
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
Rails.application.routes.draw do
|
2
3
|
post 'reactor/object' => 'reactor#create_object', :as => :create_object
|
3
4
|
post 'reactor/release/:id' => 'reactor#release_object', :as => :release_object
|
4
5
|
delete 'reactor/object/:id' => 'reactor#delete_object', :as => :delete_object
|
5
6
|
put 'reactor/object/:id' => 'reactor#update_object', :as => :update_object
|
6
|
-
end
|
7
|
+
end
|
data/infopark_reactor.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
21
|
s.require_paths = ["lib", "lib/tools"]
|
22
22
|
|
23
|
-
s.add_dependency 'rails', '<= 3.2.
|
23
|
+
s.add_dependency 'rails', '<= 3.2.12', '>= 3.0.10'
|
24
24
|
s.add_dependency 'infopark_reactor_migrations', '>= 1.2.0'
|
25
25
|
s.add_dependency 'infopark_rails_connector'
|
26
26
|
s.add_dependency 'infopark_rails_connector_meta', '>= 0.0.3'
|
data/lib/engine.rb
CHANGED
data/lib/infopark_reactor.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
# Runtime Rails version detection
|
2
3
|
module Reactor
|
3
4
|
def self.rails3_0?
|
@@ -35,4 +36,4 @@ require 'reactor/session/observers'
|
|
35
36
|
require 'reactor/session/user'
|
36
37
|
|
37
38
|
# require engine
|
38
|
-
require File.expand_path('../engine', __FILE__) if defined?(Rails)
|
39
|
+
require File.expand_path('../engine', __FILE__) if defined?(Rails)
|
data/lib/reactor/attributes.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
require 'reactor/attributes/date_serializer'
|
2
3
|
require 'reactor/attributes/html_serializer'
|
3
4
|
require 'reactor/attributes/link_list_serializer'
|
@@ -134,7 +135,7 @@ module Reactor
|
|
134
135
|
end
|
135
136
|
|
136
137
|
# attribute readers and writers
|
137
|
-
#{attribute_methods}
|
138
|
+
#{attribute_methods.join("\n")}
|
138
139
|
|
139
140
|
# parent-setting handling
|
140
141
|
def parent=(parent_something)
|
data/lib/reactor/cache/user.rb
CHANGED
data/lib/reactor/legacy.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Reactor::NoWorkingVersion < StandardError ; end
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Reactor::NotPermitted < StandardError ; end
|
data/lib/reactor/permission.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
require 'reactor/session'
|
2
3
|
require 'reactor/cache/permission'
|
3
4
|
require 'reactor/cache/user'
|
@@ -159,6 +160,7 @@ module Reactor
|
|
159
160
|
def set(permission, groups)
|
160
161
|
identifier = identifier(permission)
|
161
162
|
|
163
|
+
groups = [groups] if groups.kind_of?(::String)
|
162
164
|
crul_obj.permission_set(identifier, groups)
|
163
165
|
end
|
164
166
|
|
@@ -167,6 +169,7 @@ module Reactor
|
|
167
169
|
def grant(permission, groups)
|
168
170
|
identifier = identifier(permission)
|
169
171
|
|
172
|
+
groups = [groups] if groups.kind_of?(::String)
|
170
173
|
crul_obj.permission_grant(identifier, groups)
|
171
174
|
end
|
172
175
|
|
@@ -175,6 +178,7 @@ module Reactor
|
|
175
178
|
def revoke(permission, groups)
|
176
179
|
identifier = identifier(permission)
|
177
180
|
|
181
|
+
groups = [groups] if groups.kind_of?(::String)
|
178
182
|
crul_obj.permission_revoke(identifier, groups)
|
179
183
|
end
|
180
184
|
|
@@ -259,4 +263,4 @@ module Reactor
|
|
259
263
|
|
260
264
|
end
|
261
265
|
|
262
|
-
end
|
266
|
+
end
|
data/lib/reactor/persistence.rb
CHANGED
data/lib/reactor/session.rb
CHANGED
data/lib/reactor/session/user.rb
CHANGED
data/lib/reactor/sudo.rb
CHANGED
data/lib/reactor/validations.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
module Reactor
|
2
3
|
# This module provides standard validations for Objs (:permalink, :parent_obj_id, :name, :obj_class),
|
3
4
|
# and presence validations for all mandatory fields.
|
@@ -52,4 +53,4 @@ module Reactor
|
|
52
53
|
end
|
53
54
|
end
|
54
55
|
end
|
55
|
-
end
|
56
|
+
end
|
data/lib/reactor/version.rb
CHANGED
data/lib/reactor/workflow.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 3
|
10
|
+
version: 1.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomasz Przedmojski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-02-13 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - <=
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 23
|
30
30
|
segments:
|
31
31
|
- 3
|
32
32
|
- 2
|
33
|
-
-
|
34
|
-
version: 3.2.
|
33
|
+
- 12
|
34
|
+
version: 3.2.12
|
35
35
|
- - ">="
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
hash: 19
|