cando 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
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 CANDO_DB=mysql://cando_user@cando_passwd@localhost/cando
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{cando description}
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.0
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.0"
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 = "cando 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
@@ -34,7 +34,9 @@ RSpec.configure do |config|
34
34
 
35
35
  config.before(:suite) do
36
36
  db = CanDo.init do
37
- connect ENV['CANDO_TEST_DB']
37
+ db = connect ENV['CANDO_TEST_DB']
38
+ db.drop_table(*db.tables)
39
+ migration.apply(db, :up)
38
40
  end
39
41
  end
40
42
 
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.0
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: cando 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: -3220119119017063207
172
+ hash: -4105368160808709438
168
173
  required_rubygems_version: !ruby/object:Gem::Requirement
169
174
  none: false
170
175
  requirements: