troles 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -0
- data/Gemfile +26 -0
- data/Gemfile.lock +161 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +686 -0
- data/Rakefile +48 -0
- data/VERSION +1 -0
- data/config/database.yml +4 -0
- data/development.sqlite3 +0 -0
- data/lib/trole/adapters/active_record/config.rb +23 -0
- data/lib/trole/adapters/active_record/storage.rb +0 -0
- data/lib/trole/adapters/active_record/strategy.rb +0 -0
- data/lib/trole/adapters/active_record.rb +8 -0
- data/lib/trole/adapters/mongoid/config.rb +34 -0
- data/lib/trole/adapters/mongoid/storage.rb +0 -0
- data/lib/trole/adapters/mongoid/strategy.rb +0 -0
- data/lib/trole/adapters/mongoid.rb +0 -0
- data/lib/trole/api/cache.rb +9 -0
- data/lib/trole/api/config.rb +12 -0
- data/lib/trole/api/core.rb +20 -0
- data/lib/trole/api/event.rb +9 -0
- data/lib/trole/api/read.rb +14 -0
- data/lib/trole/api/validation.rb +9 -0
- data/lib/trole/api/write.rb +25 -0
- data/lib/trole/api.rb +41 -0
- data/lib/trole/config.rb +15 -0
- data/lib/trole/macros.rb +5 -0
- data/lib/trole/operations/read.rb +12 -0
- data/lib/trole/operations/write.rb +11 -0
- data/lib/trole/operations.rb +34 -0
- data/lib/trole/storage/base_one.rb +46 -0
- data/lib/trole/storage/bit_one.rb +43 -0
- data/lib/trole/storage/embed_one.rb +36 -0
- data/lib/trole/storage/ref_one.rb +39 -0
- data/lib/trole/storage/string_one.rb +50 -0
- data/lib/trole/storage.rb +14 -0
- data/lib/trole/strategy.rb +35 -0
- data/lib/trole.rb +10 -0
- data/lib/troles/adapters/active_record/Design Notes.textile +4 -0
- data/lib/troles/adapters/active_record/config.rb +51 -0
- data/lib/troles/adapters/active_record/storage/embed_many.rb +8 -0
- data/lib/troles/adapters/active_record/storage.rb +5 -0
- data/lib/troles/adapters/active_record/strategy.rb +11 -0
- data/lib/troles/adapters/active_record.rb +8 -0
- data/lib/troles/adapters/mongoid/Design Notes.textile +3 -0
- data/lib/troles/adapters/mongoid/config.rb +45 -0
- data/lib/troles/adapters/mongoid.rb +8 -0
- data/lib/troles/api/cache.rb +4 -0
- data/lib/troles/api/config.rb +9 -0
- data/lib/troles/api/core.rb +9 -0
- data/lib/troles/api/event.rb +4 -0
- data/lib/troles/api/read.rb +4 -0
- data/lib/troles/api/validation.rb +4 -0
- data/lib/troles/api/write.rb +4 -0
- data/lib/troles/api.rb +40 -0
- data/lib/troles/common/api/cache.rb +12 -0
- data/lib/troles/common/api/config.rb +4 -0
- data/lib/troles/common/api/core.rb +52 -0
- data/lib/troles/common/api/event.rb +39 -0
- data/lib/troles/common/api/read.rb +44 -0
- data/lib/troles/common/api/validation.rb +44 -0
- data/lib/troles/common/api/write.rb +76 -0
- data/lib/troles/common/api.rb +28 -0
- data/lib/troles/common/config/schema.rb +72 -0
- data/lib/troles/common/config/schema_helpers.rb +95 -0
- data/lib/troles/common/config/static_roles.rb +14 -0
- data/lib/troles/common/config/valid_roles.rb +21 -0
- data/lib/troles/common/config.rb +96 -0
- data/lib/troles/common/dependencies.rb +9 -0
- data/lib/troles/common/event_manager.rb +40 -0
- data/lib/troles/common/macros/configuration/base_loader.rb +40 -0
- data/lib/troles/common/macros/configuration/config_loader.rb +19 -0
- data/lib/troles/common/macros/configuration/storage_loader.rb +20 -0
- data/lib/troles/common/macros/configuration/strategy_loader.rb +38 -0
- data/lib/troles/common/macros/configuration.rb +89 -0
- data/lib/troles/common/macros/static_roles.rb +9 -0
- data/lib/troles/common/macros/strategy_options.rb +21 -0
- data/lib/troles/common/macros.rb +38 -0
- data/lib/troles/common/marshaller/bitmask.rb +43 -0
- data/lib/troles/common/marshaller/generic.rb +24 -0
- data/lib/troles/common/marshaller.rb +14 -0
- data/lib/troles/common/operations/read.rb +28 -0
- data/lib/troles/common/operations/write.rb +42 -0
- data/lib/troles/common/operations.rb +33 -0
- data/lib/troles/common/storage.rb +73 -0
- data/lib/troles/common.rb +17 -0
- data/lib/troles/config.rb +15 -0
- data/lib/troles/macros.rb +7 -0
- data/lib/troles/meta.rb +5 -0
- data/lib/troles/operations/read.rb +6 -0
- data/lib/troles/operations/write.rb +6 -0
- data/lib/troles/operations.rb +12 -0
- data/lib/troles/storage/base_many.rb +25 -0
- data/lib/troles/storage/bit_many.rb +56 -0
- data/lib/troles/storage/embed_many.rb +58 -0
- data/lib/troles/storage/ref_many.rb +44 -0
- data/lib/troles/storage/string_many.rb +41 -0
- data/lib/troles/storage.rb +13 -0
- data/lib/troles/strategy.rb +34 -0
- data/lib/troles.rb +11 -0
- data/playbox/old_rake +25 -0
- data/spec/Guide to running specs.textile +16 -0
- data/spec/active_record/migrations/many/bit_many.rb +16 -0
- data/spec/active_record/migrations/many/ref_many.rb +31 -0
- data/spec/active_record/migrations/many/string_many.rb +16 -0
- data/spec/active_record/migrations/one/bit_one.rb +14 -0
- data/spec/active_record/migrations/one/ref_one.rb +20 -0
- data/spec/active_record/migrations/one/string_one.rb +14 -0
- data/spec/active_record/models/ref_many.rb +10 -0
- data/spec/active_record/models/ref_one.rb +10 -0
- data/spec/active_record/models/role.rb +2 -0
- data/spec/active_record/models/user.rb +5 -0
- data/spec/active_record/models.rb +2 -0
- data/spec/active_record/strategies/many/bit_many_spec.rb +41 -0
- data/spec/active_record/strategies/many/ref_many_spec.rb +45 -0
- data/spec/active_record/strategies/many/string_many_spec.rb +39 -0
- data/spec/active_record/strategies/one/bit_one_spec.rb +35 -0
- data/spec/active_record/strategies/one/ref_one_spec.rb +41 -0
- data/spec/active_record/strategies/one/string_one_spec.rb +35 -0
- data/spec/active_record/strategy_helper.rb +4 -0
- data/spec/active_record_helper.rb +50 -0
- data/spec/db/database.yml +4 -0
- data/spec/dummy/Gemfile.lock +108 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/main_controller.rb +16 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/ref_many_user.rb +7 -0
- data/spec/dummy/app/models/ref_one_user.rb +3 -0
- data/spec/dummy/app/models/role.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/main/index.html.erb +3 -0
- data/spec/dummy/config/application.rb +54 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +24 -0
- data/spec/dummy/config/environments/production.rb +52 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/troles.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +60 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/01_create_roles.rb +14 -0
- data/spec/dummy/db/migrate/02_create_ref_many_users.rb +20 -0
- data/spec/dummy/db/schema.rb +32 -0
- data/spec/dummy/db/seeds.rb +4 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy_spec_helper.rb +33 -0
- data/spec/factories.rb +8 -0
- data/spec/generic/models/accounts/admin_account.rb +7 -0
- data/spec/generic/models/accounts/blogger_account.rb +7 -0
- data/spec/generic/models/accounts/user_account.rb +7 -0
- data/spec/generic/models/accounts.rb +1 -0
- data/spec/generic/models/base_user.rb +27 -0
- data/spec/generic/models/role.rb +37 -0
- data/spec/generic/models/user.rb +7 -0
- data/spec/generic/models.rb +3 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/integration/troles/Running dummy tests.textile +35 -0
- data/spec/integration/troles/navigation_spec.rb +49 -0
- data/spec/mongoid/models/ref_many.rb +15 -0
- data/spec/mongoid/models/ref_one.rb +15 -0
- data/spec/mongoid/models/role.rb +5 -0
- data/spec/mongoid/models/user.rb +9 -0
- data/spec/mongoid/models.rb +2 -0
- data/spec/mongoid/strategies/many/bit_many_spec.rb +35 -0
- data/spec/mongoid/strategies/many/ref_many_spec.rb +35 -0
- data/spec/mongoid/strategies/many/string_many_spec.rb +30 -0
- data/spec/mongoid/strategies/one/bit_one_spec.rb +26 -0
- data/spec/mongoid/strategies/one/ref_one_spec.rb +31 -0
- data/spec/mongoid/strategies/one/string_one_spec.rb +26 -0
- data/spec/mongoid/strategy_helper.rb +4 -0
- data/spec/mongoid_helper.rb +19 -0
- data/spec/playbox/rspec_examples.rb +381 -0
- data/spec/support/shared_examples.rb +1 -0
- data/spec/trole/Trole Design.textile +4 -0
- data/spec/trole/api/cache_api_spec.rb +2 -0
- data/spec/trole/api/core_api_spec.rb +4 -0
- data/spec/trole/api/event_api.rb +2 -0
- data/spec/trole/api/operations_api_spec.rb +2 -0
- data/spec/trole/api/read_api_spec.rb +5 -0
- data/spec/trole/api/validation_api_spec.rb +2 -0
- data/spec/trole/api/write_api_spec.rb +2 -0
- data/spec/trole/api_spec.rb +60 -0
- data/spec/trole/multi_roles_spec.rb +163 -0
- data/spec/trole/operations/read_spec.rb +18 -0
- data/spec/trole/operations/write_spec.rb +0 -0
- data/spec/trole/playbox/shared_examples.rb +107 -0
- data/spec/trole/strategies/bit_one_spec.rb +22 -0
- data/spec/trole/strategies/embed_one_spec.rb +32 -0
- data/spec/trole/strategies/ref_one_spec.rb +29 -0
- data/spec/trole/strategies/string_one_spec.rb +26 -0
- data/spec/trole/strategy_helper.rb +3 -0
- data/spec/trole/two_roles_spec.rb +76 -0
- data/spec/trole_spec.rb +12 -0
- data/spec/trole_spec_helper.rb +20 -0
- data/spec/troles/api/cache_api_spec.rb +2 -0
- data/spec/troles/api/core_api_spec.rb +4 -0
- data/spec/troles/api/event_api.rb +2 -0
- data/spec/troles/api/read_api_spec.rb +2 -0
- data/spec/troles/api/validation_api_spec.rb +2 -0
- data/spec/troles/api/write_api_spec.rb +2 -0
- data/spec/troles/api_spec.rb +41 -0
- data/spec/troles/common/api/cache_api_spec.rb +31 -0
- data/spec/troles/common/api/config_api.rb +0 -0
- data/spec/troles/common/api/core_api_spec.rb +14 -0
- data/spec/troles/common/api/event_api_spec.rb +9 -0
- data/spec/troles/common/api/operations_api_spec.rb +55 -0
- data/spec/troles/common/api/read_api_spec.rb +23 -0
- data/spec/troles/common/api/validation_api_spec.rb +46 -0
- data/spec/troles/common/api/write_api_spec.rb +81 -0
- data/spec/troles/common/api_spec.rb +101 -0
- data/spec/troles/common/config_spec.rb +11 -0
- data/spec/troles/common/multi_roles_spec.rb +142 -0
- data/spec/troles/marshaller/bitmask_spec.rb +14 -0
- data/spec/troles/operations/read_ops_spec.rb +0 -0
- data/spec/troles/operations/write_ops_spec.rb +0 -0
- data/spec/troles/playbox/shared_examples.rb +68 -0
- data/spec/troles/strategies/bit_many_spec.rb +30 -0
- data/spec/troles/strategies/embed_many_spec.rb +35 -0
- data/spec/troles/strategies/ref_many_spec.rb +36 -0
- data/spec/troles/strategies/string_many_spec.rb +32 -0
- data/spec/troles/strategy_helper.rb +3 -0
- data/spec/troles_spec.rb +10 -0
- data/troles.gemspec +325 -0
- metadata +469 -0
metadata
ADDED
@@ -0,0 +1,469 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: troles
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kristian Mandrup
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-06-07 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sugar-high
|
16
|
+
requirement: &2157208420 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.4.4
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2157208420
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: require_all
|
27
|
+
requirement: &2157204020 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.2.0
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2157204020
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: yard
|
38
|
+
requirement: &2157202880 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>'
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.6.1
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2157202880
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rails
|
49
|
+
requirement: &2157201680 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.1.0.rc1
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2157201680
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec-rails
|
60
|
+
requirement: &2157200260 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>'
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.4.0
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2157200260
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: &2157199460 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2157199460
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: capybara
|
82
|
+
requirement: &2157198720 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>'
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.4.0
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *2157198720
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: shoulda
|
93
|
+
requirement: &2157187940 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *2157187940
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: factory_girl_rails
|
104
|
+
requirement: &2157187020 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *2157187020
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: mocha
|
115
|
+
requirement: &2157185920 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *2157185920
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: database_cleaner
|
126
|
+
requirement: &2157184500 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.6.8
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *2157184500
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: rake
|
137
|
+
requirement: &2157183440 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 0.9.0
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *2157183440
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: bundler
|
148
|
+
requirement: &2157182740 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '1'
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: *2157182740
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: jeweler
|
159
|
+
requirement: &2157182080 !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '1.5'
|
165
|
+
type: :development
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: *2157182080
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: rdoc
|
170
|
+
requirement: &2157181460 !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '3.6'
|
176
|
+
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: *2157181460
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: rcov
|
181
|
+
requirement: &2157170640 !ruby/object:Gem::Requirement
|
182
|
+
none: false
|
183
|
+
requirements:
|
184
|
+
- - ! '>='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: *2157170640
|
190
|
+
description: Ruby roles solution that has an easy to extend API, configuration and
|
191
|
+
nice Adapter interface to ORMs and data stores
|
192
|
+
email: kmandrup@gmail.com
|
193
|
+
executables: []
|
194
|
+
extensions: []
|
195
|
+
extra_rdoc_files:
|
196
|
+
- README.textile
|
197
|
+
files:
|
198
|
+
- .rspec
|
199
|
+
- Gemfile
|
200
|
+
- Gemfile.lock
|
201
|
+
- MIT-LICENSE
|
202
|
+
- README.textile
|
203
|
+
- Rakefile
|
204
|
+
- VERSION
|
205
|
+
- config/database.yml
|
206
|
+
- development.sqlite3
|
207
|
+
- lib/trole.rb
|
208
|
+
- lib/trole/adapters/active_record.rb
|
209
|
+
- lib/trole/adapters/active_record/config.rb
|
210
|
+
- lib/trole/adapters/active_record/storage.rb
|
211
|
+
- lib/trole/adapters/active_record/strategy.rb
|
212
|
+
- lib/trole/adapters/mongoid.rb
|
213
|
+
- lib/trole/adapters/mongoid/config.rb
|
214
|
+
- lib/trole/adapters/mongoid/storage.rb
|
215
|
+
- lib/trole/adapters/mongoid/strategy.rb
|
216
|
+
- lib/trole/api.rb
|
217
|
+
- lib/trole/api/cache.rb
|
218
|
+
- lib/trole/api/config.rb
|
219
|
+
- lib/trole/api/core.rb
|
220
|
+
- lib/trole/api/event.rb
|
221
|
+
- lib/trole/api/read.rb
|
222
|
+
- lib/trole/api/validation.rb
|
223
|
+
- lib/trole/api/write.rb
|
224
|
+
- lib/trole/config.rb
|
225
|
+
- lib/trole/macros.rb
|
226
|
+
- lib/trole/operations.rb
|
227
|
+
- lib/trole/operations/read.rb
|
228
|
+
- lib/trole/operations/write.rb
|
229
|
+
- lib/trole/storage.rb
|
230
|
+
- lib/trole/storage/base_one.rb
|
231
|
+
- lib/trole/storage/bit_one.rb
|
232
|
+
- lib/trole/storage/embed_one.rb
|
233
|
+
- lib/trole/storage/ref_one.rb
|
234
|
+
- lib/trole/storage/string_one.rb
|
235
|
+
- lib/trole/strategy.rb
|
236
|
+
- lib/troles.rb
|
237
|
+
- lib/troles/adapters/active_record.rb
|
238
|
+
- lib/troles/adapters/active_record/Design Notes.textile
|
239
|
+
- lib/troles/adapters/active_record/config.rb
|
240
|
+
- lib/troles/adapters/active_record/storage.rb
|
241
|
+
- lib/troles/adapters/active_record/storage/embed_many.rb
|
242
|
+
- lib/troles/adapters/active_record/strategy.rb
|
243
|
+
- lib/troles/adapters/mongoid.rb
|
244
|
+
- lib/troles/adapters/mongoid/Design Notes.textile
|
245
|
+
- lib/troles/adapters/mongoid/config.rb
|
246
|
+
- lib/troles/api.rb
|
247
|
+
- lib/troles/api/cache.rb
|
248
|
+
- lib/troles/api/config.rb
|
249
|
+
- lib/troles/api/core.rb
|
250
|
+
- lib/troles/api/event.rb
|
251
|
+
- lib/troles/api/read.rb
|
252
|
+
- lib/troles/api/validation.rb
|
253
|
+
- lib/troles/api/write.rb
|
254
|
+
- lib/troles/common.rb
|
255
|
+
- lib/troles/common/api.rb
|
256
|
+
- lib/troles/common/api/cache.rb
|
257
|
+
- lib/troles/common/api/config.rb
|
258
|
+
- lib/troles/common/api/core.rb
|
259
|
+
- lib/troles/common/api/event.rb
|
260
|
+
- lib/troles/common/api/read.rb
|
261
|
+
- lib/troles/common/api/validation.rb
|
262
|
+
- lib/troles/common/api/write.rb
|
263
|
+
- lib/troles/common/config.rb
|
264
|
+
- lib/troles/common/config/schema.rb
|
265
|
+
- lib/troles/common/config/schema_helpers.rb
|
266
|
+
- lib/troles/common/config/static_roles.rb
|
267
|
+
- lib/troles/common/config/valid_roles.rb
|
268
|
+
- lib/troles/common/dependencies.rb
|
269
|
+
- lib/troles/common/event_manager.rb
|
270
|
+
- lib/troles/common/macros.rb
|
271
|
+
- lib/troles/common/macros/configuration.rb
|
272
|
+
- lib/troles/common/macros/configuration/base_loader.rb
|
273
|
+
- lib/troles/common/macros/configuration/config_loader.rb
|
274
|
+
- lib/troles/common/macros/configuration/storage_loader.rb
|
275
|
+
- lib/troles/common/macros/configuration/strategy_loader.rb
|
276
|
+
- lib/troles/common/macros/static_roles.rb
|
277
|
+
- lib/troles/common/macros/strategy_options.rb
|
278
|
+
- lib/troles/common/marshaller.rb
|
279
|
+
- lib/troles/common/marshaller/bitmask.rb
|
280
|
+
- lib/troles/common/marshaller/generic.rb
|
281
|
+
- lib/troles/common/operations.rb
|
282
|
+
- lib/troles/common/operations/read.rb
|
283
|
+
- lib/troles/common/operations/write.rb
|
284
|
+
- lib/troles/common/storage.rb
|
285
|
+
- lib/troles/config.rb
|
286
|
+
- lib/troles/macros.rb
|
287
|
+
- lib/troles/meta.rb
|
288
|
+
- lib/troles/operations.rb
|
289
|
+
- lib/troles/operations/read.rb
|
290
|
+
- lib/troles/operations/write.rb
|
291
|
+
- lib/troles/storage.rb
|
292
|
+
- lib/troles/storage/base_many.rb
|
293
|
+
- lib/troles/storage/bit_many.rb
|
294
|
+
- lib/troles/storage/embed_many.rb
|
295
|
+
- lib/troles/storage/ref_many.rb
|
296
|
+
- lib/troles/storage/string_many.rb
|
297
|
+
- lib/troles/strategy.rb
|
298
|
+
- playbox/old_rake
|
299
|
+
- spec/Guide to running specs.textile
|
300
|
+
- spec/active_record/migrations/many/bit_many.rb
|
301
|
+
- spec/active_record/migrations/many/ref_many.rb
|
302
|
+
- spec/active_record/migrations/many/string_many.rb
|
303
|
+
- spec/active_record/migrations/one/bit_one.rb
|
304
|
+
- spec/active_record/migrations/one/ref_one.rb
|
305
|
+
- spec/active_record/migrations/one/string_one.rb
|
306
|
+
- spec/active_record/models.rb
|
307
|
+
- spec/active_record/models/ref_many.rb
|
308
|
+
- spec/active_record/models/ref_one.rb
|
309
|
+
- spec/active_record/models/role.rb
|
310
|
+
- spec/active_record/models/user.rb
|
311
|
+
- spec/active_record/strategies/many/bit_many_spec.rb
|
312
|
+
- spec/active_record/strategies/many/ref_many_spec.rb
|
313
|
+
- spec/active_record/strategies/many/string_many_spec.rb
|
314
|
+
- spec/active_record/strategies/one/bit_one_spec.rb
|
315
|
+
- spec/active_record/strategies/one/ref_one_spec.rb
|
316
|
+
- spec/active_record/strategies/one/string_one_spec.rb
|
317
|
+
- spec/active_record/strategy_helper.rb
|
318
|
+
- spec/active_record_helper.rb
|
319
|
+
- spec/db/database.yml
|
320
|
+
- spec/dummy/Gemfile.lock
|
321
|
+
- spec/dummy/Rakefile
|
322
|
+
- spec/dummy/app/assets/images/rails.png
|
323
|
+
- spec/dummy/app/assets/javascripts/application.js
|
324
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
325
|
+
- spec/dummy/app/controllers/application_controller.rb
|
326
|
+
- spec/dummy/app/controllers/main_controller.rb
|
327
|
+
- spec/dummy/app/helpers/application_helper.rb
|
328
|
+
- spec/dummy/app/mailers/.gitkeep
|
329
|
+
- spec/dummy/app/models/.gitkeep
|
330
|
+
- spec/dummy/app/models/ref_many_user.rb
|
331
|
+
- spec/dummy/app/models/ref_one_user.rb
|
332
|
+
- spec/dummy/app/models/role.rb
|
333
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
334
|
+
- spec/dummy/app/views/main/index.html.erb
|
335
|
+
- spec/dummy/config.ru
|
336
|
+
- spec/dummy/config/application.rb
|
337
|
+
- spec/dummy/config/boot.rb
|
338
|
+
- spec/dummy/config/database.yml
|
339
|
+
- spec/dummy/config/environment.rb
|
340
|
+
- spec/dummy/config/environments/development.rb
|
341
|
+
- spec/dummy/config/environments/production.rb
|
342
|
+
- spec/dummy/config/environments/test.rb
|
343
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
344
|
+
- spec/dummy/config/initializers/inflections.rb
|
345
|
+
- spec/dummy/config/initializers/mime_types.rb
|
346
|
+
- spec/dummy/config/initializers/secret_token.rb
|
347
|
+
- spec/dummy/config/initializers/session_store.rb
|
348
|
+
- spec/dummy/config/initializers/troles.rb
|
349
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
350
|
+
- spec/dummy/config/locales/en.yml
|
351
|
+
- spec/dummy/config/routes.rb
|
352
|
+
- spec/dummy/db/migrate/01_create_roles.rb
|
353
|
+
- spec/dummy/db/migrate/02_create_ref_many_users.rb
|
354
|
+
- spec/dummy/db/schema.rb
|
355
|
+
- spec/dummy/db/seeds.rb
|
356
|
+
- spec/dummy/log/.gitkeep
|
357
|
+
- spec/dummy/public/404.html
|
358
|
+
- spec/dummy/public/422.html
|
359
|
+
- spec/dummy/public/500.html
|
360
|
+
- spec/dummy/public/favicon.ico
|
361
|
+
- spec/dummy/script/rails
|
362
|
+
- spec/dummy_spec_helper.rb
|
363
|
+
- spec/factories.rb
|
364
|
+
- spec/generic/models.rb
|
365
|
+
- spec/generic/models/accounts.rb
|
366
|
+
- spec/generic/models/accounts/admin_account.rb
|
367
|
+
- spec/generic/models/accounts/blogger_account.rb
|
368
|
+
- spec/generic/models/accounts/user_account.rb
|
369
|
+
- spec/generic/models/base_user.rb
|
370
|
+
- spec/generic/models/role.rb
|
371
|
+
- spec/generic/models/user.rb
|
372
|
+
- spec/integration/navigation_spec.rb
|
373
|
+
- spec/integration/troles/Running dummy tests.textile
|
374
|
+
- spec/integration/troles/navigation_spec.rb
|
375
|
+
- spec/mongoid/models.rb
|
376
|
+
- spec/mongoid/models/ref_many.rb
|
377
|
+
- spec/mongoid/models/ref_one.rb
|
378
|
+
- spec/mongoid/models/role.rb
|
379
|
+
- spec/mongoid/models/user.rb
|
380
|
+
- spec/mongoid/strategies/many/bit_many_spec.rb
|
381
|
+
- spec/mongoid/strategies/many/ref_many_spec.rb
|
382
|
+
- spec/mongoid/strategies/many/string_many_spec.rb
|
383
|
+
- spec/mongoid/strategies/one/bit_one_spec.rb
|
384
|
+
- spec/mongoid/strategies/one/ref_one_spec.rb
|
385
|
+
- spec/mongoid/strategies/one/string_one_spec.rb
|
386
|
+
- spec/mongoid/strategy_helper.rb
|
387
|
+
- spec/mongoid_helper.rb
|
388
|
+
- spec/playbox/rspec_examples.rb
|
389
|
+
- spec/support/shared_examples.rb
|
390
|
+
- spec/trole/Trole Design.textile
|
391
|
+
- spec/trole/api/cache_api_spec.rb
|
392
|
+
- spec/trole/api/core_api_spec.rb
|
393
|
+
- spec/trole/api/event_api.rb
|
394
|
+
- spec/trole/api/operations_api_spec.rb
|
395
|
+
- spec/trole/api/read_api_spec.rb
|
396
|
+
- spec/trole/api/validation_api_spec.rb
|
397
|
+
- spec/trole/api/write_api_spec.rb
|
398
|
+
- spec/trole/api_spec.rb
|
399
|
+
- spec/trole/multi_roles_spec.rb
|
400
|
+
- spec/trole/operations/read_spec.rb
|
401
|
+
- spec/trole/operations/write_spec.rb
|
402
|
+
- spec/trole/playbox/shared_examples.rb
|
403
|
+
- spec/trole/strategies/bit_one_spec.rb
|
404
|
+
- spec/trole/strategies/embed_one_spec.rb
|
405
|
+
- spec/trole/strategies/ref_one_spec.rb
|
406
|
+
- spec/trole/strategies/string_one_spec.rb
|
407
|
+
- spec/trole/strategy_helper.rb
|
408
|
+
- spec/trole/two_roles_spec.rb
|
409
|
+
- spec/trole_spec.rb
|
410
|
+
- spec/trole_spec_helper.rb
|
411
|
+
- spec/troles/api/cache_api_spec.rb
|
412
|
+
- spec/troles/api/core_api_spec.rb
|
413
|
+
- spec/troles/api/event_api.rb
|
414
|
+
- spec/troles/api/read_api_spec.rb
|
415
|
+
- spec/troles/api/validation_api_spec.rb
|
416
|
+
- spec/troles/api/write_api_spec.rb
|
417
|
+
- spec/troles/api_spec.rb
|
418
|
+
- spec/troles/common/api/cache_api_spec.rb
|
419
|
+
- spec/troles/common/api/config_api.rb
|
420
|
+
- spec/troles/common/api/core_api_spec.rb
|
421
|
+
- spec/troles/common/api/event_api_spec.rb
|
422
|
+
- spec/troles/common/api/operations_api_spec.rb
|
423
|
+
- spec/troles/common/api/read_api_spec.rb
|
424
|
+
- spec/troles/common/api/validation_api_spec.rb
|
425
|
+
- spec/troles/common/api/write_api_spec.rb
|
426
|
+
- spec/troles/common/api_spec.rb
|
427
|
+
- spec/troles/common/config_spec.rb
|
428
|
+
- spec/troles/common/multi_roles_spec.rb
|
429
|
+
- spec/troles/marshaller/bitmask_spec.rb
|
430
|
+
- spec/troles/operations/read_ops_spec.rb
|
431
|
+
- spec/troles/operations/write_ops_spec.rb
|
432
|
+
- spec/troles/playbox/shared_examples.rb
|
433
|
+
- spec/troles/strategies/bit_many_spec.rb
|
434
|
+
- spec/troles/strategies/embed_many_spec.rb
|
435
|
+
- spec/troles/strategies/ref_many_spec.rb
|
436
|
+
- spec/troles/strategies/string_many_spec.rb
|
437
|
+
- spec/troles/strategy_helper.rb
|
438
|
+
- spec/troles_spec.rb
|
439
|
+
- troles.gemspec
|
440
|
+
homepage: http://github.com/kristianmandrup/troles
|
441
|
+
licenses:
|
442
|
+
- MIT
|
443
|
+
post_install_message:
|
444
|
+
rdoc_options: []
|
445
|
+
require_paths:
|
446
|
+
- lib
|
447
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
448
|
+
none: false
|
449
|
+
requirements:
|
450
|
+
- - ! '>='
|
451
|
+
- !ruby/object:Gem::Version
|
452
|
+
version: '0'
|
453
|
+
segments:
|
454
|
+
- 0
|
455
|
+
hash: 1299069107000232731
|
456
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
457
|
+
none: false
|
458
|
+
requirements:
|
459
|
+
- - ! '>='
|
460
|
+
- !ruby/object:Gem::Version
|
461
|
+
version: '0'
|
462
|
+
requirements: []
|
463
|
+
rubyforge_project:
|
464
|
+
rubygems_version: 1.8.5
|
465
|
+
signing_key:
|
466
|
+
specification_version: 3
|
467
|
+
summary: Complete roles solution that is easy to integrate with any Rack app, including
|
468
|
+
Rails 3+
|
469
|
+
test_files: []
|