bali 1.0.0rc3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/lib/bali/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 724bb6eef32c67456ef17908c706056bbe650894
4
- data.tar.gz: 7db4ffe4112029cf64d89b693f3bb365e720122c
3
+ metadata.gz: d3659e22b543ed6745c0ad17dcef288a207732cd
4
+ data.tar.gz: ac39f8b6657b207d2d43e8acf8db06444e25d9f2
5
5
  SHA512:
6
- metadata.gz: 994dcb6cb86ceba1e4086ba713bf10fe62fb7987e5ba82e63a05f90600c22a4d70ce742a7c52cb39715d6864cad833f565ad079c509a014097c2c8fb2e82fe95
7
- data.tar.gz: f3aa272ed470a2ee72d476643f728b5bc8a5e06957ddb306b487ab572710468f5a53f82f70f5ec8c522fad5b5757cd4fe5f14a5dd02ec83cb723e288c4e43dc8
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=master)](https://codeship.com/projects/95727)
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
- ### Authorization
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
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
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
@@ -1,3 +1,3 @@
1
1
  module Bali
2
- VERSION = "1.0.0rc3"
2
+ VERSION = "1.0.0"
3
3
  end
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.0rc3
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-17 00:00:00.000000000 Z
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: 1.3.1
99
+ version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
102
  rubygems_version: 2.4.5