cando 0.1.0 → 0.1.1
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/README.md +1 -1
- data/Rakefile +6 -1
- data/VERSION +1 -1
- data/cando.gemspec +2 -2
- data/spec/spec_helper.rb +3 -1
- metadata +8 -3
data/README.md
CHANGED
@@ -34,7 +34,7 @@ If you want to use an individual database for cando, create the db + credentials
|
|
34
34
|
|
35
35
|
Whenever you want to use a CanDo rake task, you need to set the database config via the env var `$CANDO_DB`:
|
36
36
|
|
37
|
-
export
|
37
|
+
export CANDO_TEST_DB=mysql://cando_user:cando_passwd@localhost/cando
|
38
38
|
|
39
39
|
for other dbs, [see the sequel
|
40
40
|
documentation](http://sequel.jeremyevans.net/rdoc/classes/Sequel.html#method-c-connect).
|
data/Rakefile
CHANGED
@@ -19,7 +19,12 @@ Jeweler::Tasks.new do |gem|
|
|
19
19
|
gem.homepage = "http://github.com/kesselborn/cando"
|
20
20
|
gem.license = "MIT"
|
21
21
|
gem.summary = %Q{Simple roles helper}
|
22
|
-
gem.description = %Q{
|
22
|
+
gem.description = %Q{CanDo is a small gem to implement a simple user access system based on users, roles & capabilites, where:
|
23
|
+
|
24
|
+
each user can have 0, 1 or many roles
|
25
|
+
each role can have 0, 1 or many capabilites
|
26
|
+
|
27
|
+
Users have capabilities by getting roles assigned (role == collection of capabilities). Within the code, the can helper method can be used to test whether a user has a certain capability or not (see below for a working code example).}
|
23
28
|
gem.email = "daniel@soundcloud.com"
|
24
29
|
gem.authors = ["Daniel Bornkessel"]
|
25
30
|
# dependencies defined in Gemfile
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/cando.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "cando"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Daniel Bornkessel"]
|
12
12
|
s.date = "2014-05-20"
|
13
|
-
s.description = "
|
13
|
+
s.description = "CanDo is a small gem to implement a simple user access system based on users, roles & capabilites, where:\n\n each user can have 0, 1 or many roles\n each role can have 0, 1 or many capabilites\n\nUsers have capabilities by getting roles assigned (role == collection of capabilities). Within the code, the can helper method can be used to test whether a user has a certain capability or not (see below for a working code example)."
|
14
14
|
s.email = "daniel@soundcloud.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cando
|
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:
|
@@ -123,7 +123,12 @@ dependencies:
|
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
-
description:
|
126
|
+
description: ! "CanDo is a small gem to implement a simple user access system based
|
127
|
+
on users, roles & capabilites, where:\n\n each user can have 0, 1 or many roles\n
|
128
|
+
\ each role can have 0, 1 or many capabilites\n\nUsers have capabilities by getting
|
129
|
+
roles assigned (role == collection of capabilities). Within the code, the can helper
|
130
|
+
method can be used to test whether a user has a certain capability or not (see below
|
131
|
+
for a working code example)."
|
127
132
|
email: daniel@soundcloud.com
|
128
133
|
executables: []
|
129
134
|
extensions: []
|
@@ -164,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
169
|
version: '0'
|
165
170
|
segments:
|
166
171
|
- 0
|
167
|
-
hash: -
|
172
|
+
hash: -4105368160808709438
|
168
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
174
|
none: false
|
170
175
|
requirements:
|