Martin Rehfeld
|
3fe3a6d535
|
spec supported usage of -= on .roles
|
2010-10-27 23:24:38 +02:00 |
|
Martin Rehfeld
|
322fb3baf9
|
simplify spec for .mask_for
|
2010-10-27 23:20:32 +02:00 |
|
Martin Rehfeld
|
4d84a4dd4c
|
Regenerated gemspec for version 0.6.0
|
2010-10-10 15:39:20 +02:00 |
|
Martin Rehfeld
|
1737be8819
|
Version bump to 0.6.0
|
2010-10-10 15:39:09 +02:00 |
|
Martin Rehfeld
|
be64e35a7b
|
add hint on #delete to README
|
2010-10-10 15:38:21 +02:00 |
|
Martin Rehfeld
|
604b0d5e09
|
refactoring: use .mask_for in #roles=
|
2010-10-10 15:33:59 +02:00 |
|
Martin Rehfeld
|
58e4e06bd1
|
support most Set methods on #roles
add, merge, subtract are explicitly tested
others like ^, |, &, - should work as well
|
2010-10-10 15:25:47 +02:00 |
|
Martin Rehfeld
|
9222ec0da0
|
remove explicit #to_a before re-assigning Roles
|
2010-10-10 15:06:28 +02:00 |
|
Martin Rehfeld
|
2058edaf2f
|
allow assigning Roles objects via #roles=
|
2010-10-10 15:02:20 +02:00 |
|
Martin Rehfeld
|
f41b98a0e4
|
make spec for Roles#delete actually test the desired behaviour
|
2010-10-10 14:10:48 +02:00 |
|
Daniel Gaytán
|
e62e22a459
|
Adding a method that returns the roles mask for a given array of roles
|
2010-10-07 13:35:39 -05:00 |
|
Pablo Barrios
|
2717592a7c
|
adding the ability to delete a role given as a string
|
2010-09-27 03:25:29 +08:00 |
|
Pablo Barrios
|
e2e5578d88
|
Adding a delete method to remove a simple role
|
2010-09-27 03:25:28 +08:00 |
|
Martin Rehfeld
|
aec78afb98
|
remove duplication in spec
|
2010-08-17 14:13:14 +02:00 |
|
Martin Rehfeld
|
d4befa6071
|
Regenerated gemspec for version 0.5.0
|
2010-08-17 14:01:26 +02:00 |
|
Martin Rehfeld
|
f74006d493
|
Version bump to 0.5.0
|
2010-08-17 14:01:16 +02:00 |
|
Martin Rehfeld
|
402ef2ed22
|
add reference to multi-role querying to the README
|
2010-08-17 14:00:31 +02:00 |
|
Martin Rehfeld
|
02364a4e06
|
properly spec the new multi-role query features
|
2010-08-17 13:52:26 +02:00 |
|
Martin Rehfeld
|
7dc843f0a7
|
ensure backward compatibility
also get method and alias names right
|
2010-08-17 13:47:29 +02:00 |
|
Martin Rehfeld
|
dec40a9c14
|
whitespace and punctuation
|
2010-08-12 20:35:16 +02:00 |
|
Martin Rehfeld
|
50e6c7054f
|
Merge commit '27635154e722a3ad970c23d0d58b4a3cbad7e5e3' into has_roles
draft for multi-role query methods provided by kristianmandrup
Conflicts:
lib/role_model/implementation.rb
|
2010-08-12 20:31:14 +02:00 |
|
Martin Rehfeld
|
72ffee5870
|
use alias_method instead of alias
this might be beneficial when inheriting and
re-defining methods introduced by RoleModel
|
2010-08-12 20:25:28 +02:00 |
|
Kristian Mandrup
|
27635154e7
|
added methods to check for multiple roles, any or all - also added 'drive_it' file to show how to use it - as described in README
|
2010-08-12 15:40:28 +02:00 |
|
Martin Rehfeld
|
ecaaa57db0
|
add hint to .valid_roles class method to README
|
2010-08-07 11:04:00 -07:00 |
|
Martin Rehfeld
|
91341cc70e
|
Regenerated gemspec for version 0.4.0
|
2010-08-07 15:20:02 +02:00 |
|
Martin Rehfeld
|
febba64799
|
Version bump to 0.4.0
|
2010-08-07 15:19:54 +02:00 |
|
Martin Rehfeld
|
f7f139a92e
|
provide is? alias for has_role?
this is what ryanb proposed on his implementation
|
2010-08-07 15:15:32 +02:00 |
|
Martin Rehfeld
|
90754f4e9e
|
Regenerated gemspec for version 0.3.2
|
2010-08-04 14:22:11 +02:00 |
|
Martin Rehfeld
|
30d36506a7
|
Version bump to 0.3.2
|
2010-08-04 14:20:28 +02:00 |
|
Martin Rehfeld
|
2d04b3f1a5
|
remove is_a? and is_an? aliases for has_role?
these were poor names and caused conflicts
|
2010-08-04 14:16:21 +02:00 |
|
Martin Rehfeld
|
a66af17fdf
|
move instance methods into separate file
|
2010-06-04 09:18:58 +02:00 |
|
Martin Rehfeld
|
be80b7e106
|
move RoleModel::ClassMethods into separate file
|
2010-05-30 22:28:06 +02:00 |
|
Martin Rehfeld
|
35c7ed502c
|
fix another typo in comment
|
2010-05-30 22:18:53 +02:00 |
|
Martin Rehfeld
|
88601af7dd
|
alias has_role? to is_an? (in addition to is_a?)
|
2010-05-30 22:16:14 +02:00 |
|
Martin Rehfeld
|
aae5470155
|
improve RDoc documentation and fix typo in README
|
2010-05-30 22:13:44 +02:00 |
|
Martin Rehfeld
|
b93f38af07
|
pimp elevator pitch
|
2010-05-30 13:10:42 +02:00 |
|
Martin Rehfeld
|
49e33ff355
|
configure rcov scope
|
2010-05-30 00:36:56 +02:00 |
|
Martin Rehfeld
|
4a15d83f30
|
improve and spec custom ArrayIncludingMatcher
|
2010-05-30 00:19:08 +02:00 |
|
Martin Rehfeld
|
b20b9806bc
|
minor README change
|
2010-05-29 23:50:56 +02:00 |
|
Martin Rehfeld
|
389cab60ac
|
Regenerated gemspec for version 0.3.1
|
2010-05-29 23:42:40 +02:00 |
|
Martin Rehfeld
|
09fdb8bcdf
|
Version bump to 0.3.1
|
2010-05-29 23:42:32 +02:00 |
|
Martin Rehfeld
|
0dc99aef4a
|
minor tweaks to spec
|
2010-05-29 23:40:43 +02:00 |
|
Martin Rehfeld
|
78cbab58b1
|
make Roles class inherit from Set instead of Array
|
2010-05-29 23:29:27 +02:00 |
|
Martin Rehfeld
|
b4159f1d82
|
alias has_role? to is_a?
|
2010-05-29 23:27:11 +02:00 |
|
Martin Rehfeld
|
6812f1727f
|
Regenerated gemspec for version 0.3.0
|
2010-05-29 13:21:59 +02:00 |
|
Martin Rehfeld
|
64469661cf
|
Version bump to 0.3.0
|
2010-05-29 13:21:35 +02:00 |
|
Martin Rehfeld
|
7b24c29f4d
|
support adding roles with <<
|
2010-05-29 13:20:59 +02:00 |
|
Martin Rehfeld
|
c825481f76
|
add example to spec
|
2010-05-29 12:59:26 +02:00 |
|
Martin Rehfeld
|
11dbe76271
|
fix Ruby warning
|
2010-05-29 12:58:27 +02:00 |
|
Martin Rehfeld
|
5f17d781e0
|
Regenerated gemspec for version 0.2.0
|
2010-05-25 17:35:03 +02:00 |
|