arsecurity 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -0
- data/Rakefile +1 -1
- data/lib/arsecurity_util.rb +2 -2
- metadata +7 -6
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/lib/arsecurity_util.rb
CHANGED
|
@@ -44,7 +44,7 @@ class ArsecurityUtil
|
|
|
44
44
|
new_conditions = []
|
|
45
45
|
new_conditions[0] = ""
|
|
46
46
|
conditions.each do |k, v|
|
|
47
|
-
new_conditions[0] << " #{k}
|
|
47
|
+
new_conditions[0] << " #{k} #{attribute_condition(v)}"
|
|
48
48
|
if v.is_a?(Range)
|
|
49
49
|
new_conditions << v.first
|
|
50
50
|
new_conditions << v.last
|
|
@@ -87,4 +87,4 @@ class ArsecurityUtil
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
end
|
|
90
|
-
end
|
|
90
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arsecurity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leon Li
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-05-06 00:00:00 +08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -22,7 +22,7 @@ dependencies:
|
|
|
22
22
|
- !ruby/object:Gem::Version
|
|
23
23
|
version: 0.1.0
|
|
24
24
|
version:
|
|
25
|
-
description: A security component for Activerecord, it can manage CRUD permissions with attribute level by configuration, you can implement RBAC easily with it. It depend on the AOP framework Rinter(Rinterceptor) and the OO query tool Rquerypad(Optinal)
|
|
25
|
+
description: " A security component for Activerecord, it can manage CRUD permissions with attribute level by configuration, you can implement RBAC easily with it. It depend on the AOP framework Rinter(Rinterceptor) and the OO query tool Rquerypad(Optinal)\n"
|
|
26
26
|
email: scorpio_leon@hotmail.com
|
|
27
27
|
executables: []
|
|
28
28
|
|
|
@@ -39,10 +39,11 @@ files:
|
|
|
39
39
|
- lib/arsecurity_handler.rb
|
|
40
40
|
- lib/arsecurity_default.rb
|
|
41
41
|
- lib/arsecurity_util.rb
|
|
42
|
-
- examples/initializers
|
|
43
42
|
- examples/initializers/security.rb
|
|
44
43
|
has_rdoc: false
|
|
45
44
|
homepage: http://arsecurity.rubyforge.org/
|
|
45
|
+
licenses: []
|
|
46
|
+
|
|
46
47
|
post_install_message:
|
|
47
48
|
rdoc_options: []
|
|
48
49
|
|
|
@@ -63,9 +64,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
63
64
|
requirements: []
|
|
64
65
|
|
|
65
66
|
rubyforge_project: Activerecord Security
|
|
66
|
-
rubygems_version: 1.3.
|
|
67
|
+
rubygems_version: 1.3.2
|
|
67
68
|
signing_key:
|
|
68
|
-
specification_version:
|
|
69
|
+
specification_version: 3
|
|
69
70
|
summary: A security component for Activerecord
|
|
70
71
|
test_files: []
|
|
71
72
|
|