six 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/six.rb +14 -4
- metadata +2 -2
data/lib/six.rb
CHANGED
@@ -11,11 +11,12 @@ class Six
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
attr_reader :rules_packs
|
15
|
+
attr_reader :current_rule_pack
|
16
16
|
|
17
|
-
def
|
18
|
-
@rules_packs
|
17
|
+
def initialize()
|
18
|
+
@rules_packs = {}
|
19
|
+
@current_rule_pack = nil
|
19
20
|
end
|
20
21
|
|
21
22
|
# Set current pack from stored packs by key
|
@@ -149,4 +150,13 @@ class Six
|
|
149
150
|
def raise_incorrect_pack_object
|
150
151
|
raise Six::InvalidPackPassed.new
|
151
152
|
end
|
153
|
+
|
154
|
+
# shotcuts for long methods
|
155
|
+
|
156
|
+
alias_method :add, :add_pack
|
157
|
+
alias_method :add!, :add_pack!
|
158
|
+
alias_method :remove, :remove_pack
|
159
|
+
alias_method :remove!, :remove_pack!
|
160
|
+
alias_method :reset, :reset_use
|
161
|
+
alias_method :exist?, :pack_exist?
|
152
162
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-24 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Very simple authorization gem
|
15
15
|
email: dmitriy.zaporozhets@gmail.com
|