bali 1.0.0rc3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/lib/bali/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3659e22b543ed6745c0ad17dcef288a207732cd
|
4
|
+
data.tar.gz: ac39f8b6657b207d2d43e8acf8db06444e25d9f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ccdb82747ee1fbc4231d7c920f515682730d143db26ae6f8c75eb7e7e593616f8298eac0e2a883cd05e197aba92c72049429e5e725b365654fec5be5f7f7eb
|
7
|
+
data.tar.gz: b7f6f688501324e3766aba44d0e9e08e02a46d1c0663355b924ac694e218c7b1c762d39db04015d90f6de5968615183b178f10b316142f1f699bc44b0f1d505d
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Bali
|
2
2
|
|
3
|
-
[ ![Codeship Status for saveav/bali](https://codeship.com/projects/d2f3ded0-20cf-0133-e425-0eade5a669ff/status?branch=
|
3
|
+
[ ![Codeship Status for saveav/bali](https://codeship.com/projects/d2f3ded0-20cf-0133-e425-0eade5a669ff/status?branch=release)](https://codeship.com/projects/95727)
|
4
4
|
|
5
5
|
Bali is a powerful, framework-agnostic, thread-safe Ruby language authorization library. It is a universal authorization library, in the sense that it does not assume you to use specific Ruby library/gem/framework in order for successful use of this gem.
|
6
6
|
|
@@ -52,7 +52,7 @@ Rule in Bali is the law determining whether a user (called `subtarget`) can do o
|
|
52
52
|
|
53
53
|
You may or may not assign an alias name (`as`). Make sure to keep it unique had you decided to give alias name to your rules group.
|
54
54
|
|
55
|
-
###
|
55
|
+
### Can and Cannot testing
|
56
56
|
|
57
57
|
Say:
|
58
58
|
|
@@ -81,7 +81,6 @@ transaction.cant?(:general_user, :delete) # => true
|
|
81
81
|
transaction.can("general user", :update) # => true
|
82
82
|
transaction.can?(:finance_user, :delete) # depend on context
|
83
83
|
transaction.can?(:monitoring_user, :view) # => true
|
84
|
-
transaction.can?("monitoring user", :view) # => true
|
85
84
|
transaction.can?(:admin_user, :cancel) # depend on context
|
86
85
|
transaction.can?(:supreme_user, :cancel) # => true
|
87
86
|
transaction.can?(:guest, :view) # => false
|
@@ -112,7 +111,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/saveav
|
|
112
111
|
|
113
112
|
## License
|
114
113
|
|
115
|
-
|
114
|
+
Bali is proudly available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
116
115
|
|
117
116
|
### Changelog
|
118
117
|
|
@@ -134,4 +133,7 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
134
133
|
- Transparant, and thus less confusing as to where "can?" and "cant" come from
|
135
134
|
- When ruby re-parse the class's codes for any reasons, parser will be for sure include Bali::Objector
|
136
135
|
2. Return `true` to any `can?` for undefined target/subtarget alike
|
137
|
-
3. Return `false` to any `cant?` for undefined target/subtarget alike
|
136
|
+
3. Return `false` to any `cant?` for undefined target/subtarget alike
|
137
|
+
|
138
|
+
#### Version 1.0.0
|
139
|
+
1. Released the stable version of this gem
|
data/lib/bali/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bali
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Pahlevi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,9 +94,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
99
|
+
version: '0'
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
102
|
rubygems_version: 2.4.5
|