oxen_user 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.envrc +0 -0
- data/.gitignore +10 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +7 -0
- data/Guardfile +77 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +10 -0
- data/app/assets/javascripts/oxen_user.js +3 -0
- data/app/assets/javascripts/pw_strength.js.coffee +24 -0
- data/app/assets/javascripts/zxcvbn.js +43 -0
- data/app/controllers/oxen/invitations_controller.rb +66 -0
- data/app/controllers/oxen/users_controller.rb +96 -0
- data/app/helpers/oxen/users_helper.rb +8 -0
- data/app/models/ox_user.rb +89 -0
- data/app/policies/oxen/user_policy.rb +48 -0
- data/app/views/devise/confirmations/new.html.haml +13 -0
- data/app/views/devise/mailer/eksempel +10 -0
- data/app/views/devise/mailer/invitation_instructions.html.erb +1087 -0
- data/app/views/devise/passwords/edit.html.haml +21 -0
- data/app/views/devise/passwords/new.html.haml +10 -0
- data/app/views/devise/registrations/edit.html.haml +51 -0
- data/app/views/devise/registrations/new.html.haml +32 -0
- data/app/views/devise/sessions/new.html.haml +25 -0
- data/app/views/devise/shared/_links.html.haml +24 -0
- data/app/views/devise/unlocks/new.html.haml +13 -0
- data/app/views/oxen/users/_account_user.html.haml +14 -0
- data/app/views/oxen/users/_account_users.html.haml +15 -0
- data/app/views/oxen/users/_form.html.haml +41 -0
- data/app/views/oxen/users/_user_form.html.erb +12 -0
- data/app/views/oxen/users/confirm.html.haml +4 -0
- data/app/views/oxen/users/invitations/_new.html.haml +38 -0
- data/app/views/oxen/users/invitations/create.html.haml +5 -0
- data/app/views/oxen/users/invitations/edit.html.haml +22 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/config/initializers/devise.rb +360 -0
- data/config/initializers/devise_permitted_parameters.rb +17 -0
- data/config/locales/devise.da.yml +58 -0
- data/config/locales/devise.en.yml +61 -0
- data/config/locales/devise_invitable.da.yml +26 -0
- data/config/locales/devise_invitable.en.yml +23 -0
- data/config/routes.rb +51 -0
- data/lib/generators/oxen_user/account_generator.rb +26 -0
- data/lib/generators/oxen_user/templates/user.rb +10 -0
- data/lib/generators/oxen_user/templates/user_permission.rb +14 -0
- data/lib/oxen_user/engine.rb +17 -0
- data/lib/oxen_user/version.rb +3 -0
- data/lib/oxen_user.rb +10 -0
- data/oxen_user.gemspec +57 -0
- metadata +377 -0
data/lib/oxen_user.rb
ADDED
data/oxen_user.gemspec
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'oxen_user/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "oxen_user"
|
8
|
+
spec.version = OxenUser::VERSION
|
9
|
+
spec.authors = ["Walther H Diechmann"]
|
10
|
+
spec.email = ["walther@diechmann.net"]
|
11
|
+
|
12
|
+
# if spec.respond_to?(:metadata)
|
13
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
14
|
+
# end
|
15
|
+
|
16
|
+
spec.summary = %q{Offers a user table for customer users}
|
17
|
+
spec.description = %q{The account table is strictly for managing customer users}
|
18
|
+
spec.homepage = "http://gitserver.alco.dk/oxen_user"
|
19
|
+
spec.license = "MIT"
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_dependency 'devise'
|
27
|
+
spec.add_dependency 'devise_invitable'
|
28
|
+
spec.add_dependency 'devise_zxcvbn'
|
29
|
+
|
30
|
+
spec.add_dependency "paper_trail"
|
31
|
+
spec.add_dependency 'pundit'
|
32
|
+
|
33
|
+
#spec.add_dependency "devise_cas_authenticatable"
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 1.8"
|
36
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
37
|
+
|
38
|
+
spec.add_development_dependency 'combustion', '~> 0.5.3'
|
39
|
+
spec.add_development_dependency "sqlite3"
|
40
|
+
# spec.add_development_dependency "railties", ">= 3.2.6", "< 5"
|
41
|
+
# spec.add_development_dependency "activerecord", ">= 3.2.6"
|
42
|
+
# spec.add_development_dependency "bundler", "~> 1.7"
|
43
|
+
# spec.add_development_dependency "rake", "~> 10.0"
|
44
|
+
spec.add_development_dependency 'factory_girl_rails'
|
45
|
+
spec.add_development_dependency 'database_cleaner'
|
46
|
+
spec.add_development_dependency 'capybara'
|
47
|
+
#
|
48
|
+
spec.add_development_dependency "rspec"
|
49
|
+
spec.add_development_dependency 'rspec-rails'
|
50
|
+
spec.add_development_dependency "rspec-nc"
|
51
|
+
spec.add_development_dependency "guard"
|
52
|
+
spec.add_development_dependency "guard-rspec"
|
53
|
+
spec.add_development_dependency "pry"
|
54
|
+
spec.add_development_dependency "pry-remote"
|
55
|
+
spec.add_development_dependency "pry-nav"
|
56
|
+
|
57
|
+
end
|
metadata
ADDED
@@ -0,0 +1,377 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oxen_user
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Walther H Diechmann
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: devise
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: devise_invitable
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: devise_zxcvbn
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: paper_trail
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pundit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: combustion
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.5.3
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.5.3
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sqlite3
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: factory_girl_rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: database_cleaner
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: capybara
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rspec
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rspec-rails
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rspec-nc
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: guard
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: guard-rspec
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: pry
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: pry-remote
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: pry-nav
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
description: The account table is strictly for managing customer users
|
294
|
+
email:
|
295
|
+
- walther@diechmann.net
|
296
|
+
executables: []
|
297
|
+
extensions: []
|
298
|
+
extra_rdoc_files: []
|
299
|
+
files:
|
300
|
+
- ".envrc"
|
301
|
+
- ".gitignore"
|
302
|
+
- ".rspec"
|
303
|
+
- ".ruby-version"
|
304
|
+
- ".travis.yml"
|
305
|
+
- CODE_OF_CONDUCT.md
|
306
|
+
- Gemfile
|
307
|
+
- Guardfile
|
308
|
+
- LICENSE.txt
|
309
|
+
- README.md
|
310
|
+
- Rakefile
|
311
|
+
- app/assets/javascripts/oxen_user.js
|
312
|
+
- app/assets/javascripts/pw_strength.js.coffee
|
313
|
+
- app/assets/javascripts/zxcvbn.js
|
314
|
+
- app/controllers/oxen/invitations_controller.rb
|
315
|
+
- app/controllers/oxen/users_controller.rb
|
316
|
+
- app/helpers/oxen/users_helper.rb
|
317
|
+
- app/models/ox_user.rb
|
318
|
+
- app/policies/oxen/user_policy.rb
|
319
|
+
- app/views/devise/confirmations/new.html.haml
|
320
|
+
- app/views/devise/mailer/eksempel
|
321
|
+
- app/views/devise/mailer/invitation_instructions.html.erb
|
322
|
+
- app/views/devise/passwords/edit.html.haml
|
323
|
+
- app/views/devise/passwords/new.html.haml
|
324
|
+
- app/views/devise/registrations/edit.html.haml
|
325
|
+
- app/views/devise/registrations/new.html.haml
|
326
|
+
- app/views/devise/sessions/new.html.haml
|
327
|
+
- app/views/devise/shared/_links.html.haml
|
328
|
+
- app/views/devise/unlocks/new.html.haml
|
329
|
+
- app/views/oxen/users/_account_user.html.haml
|
330
|
+
- app/views/oxen/users/_account_users.html.haml
|
331
|
+
- app/views/oxen/users/_form.html.haml
|
332
|
+
- app/views/oxen/users/_user_form.html.erb
|
333
|
+
- app/views/oxen/users/confirm.html.haml
|
334
|
+
- app/views/oxen/users/invitations/_new.html.haml
|
335
|
+
- app/views/oxen/users/invitations/create.html.haml
|
336
|
+
- app/views/oxen/users/invitations/edit.html.haml
|
337
|
+
- bin/console
|
338
|
+
- bin/setup
|
339
|
+
- config/initializers/devise.rb
|
340
|
+
- config/initializers/devise_permitted_parameters.rb
|
341
|
+
- config/locales/devise.da.yml
|
342
|
+
- config/locales/devise.en.yml
|
343
|
+
- config/locales/devise_invitable.da.yml
|
344
|
+
- config/locales/devise_invitable.en.yml
|
345
|
+
- config/routes.rb
|
346
|
+
- lib/generators/oxen_user/account_generator.rb
|
347
|
+
- lib/generators/oxen_user/templates/user.rb
|
348
|
+
- lib/generators/oxen_user/templates/user_permission.rb
|
349
|
+
- lib/oxen_user.rb
|
350
|
+
- lib/oxen_user/engine.rb
|
351
|
+
- lib/oxen_user/version.rb
|
352
|
+
- oxen_user.gemspec
|
353
|
+
homepage: http://gitserver.alco.dk/oxen_user
|
354
|
+
licenses:
|
355
|
+
- MIT
|
356
|
+
metadata: {}
|
357
|
+
post_install_message:
|
358
|
+
rdoc_options: []
|
359
|
+
require_paths:
|
360
|
+
- lib
|
361
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
362
|
+
requirements:
|
363
|
+
- - ">="
|
364
|
+
- !ruby/object:Gem::Version
|
365
|
+
version: '0'
|
366
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
367
|
+
requirements:
|
368
|
+
- - ">="
|
369
|
+
- !ruby/object:Gem::Version
|
370
|
+
version: '0'
|
371
|
+
requirements: []
|
372
|
+
rubyforge_project:
|
373
|
+
rubygems_version: 2.4.5
|
374
|
+
signing_key:
|
375
|
+
specification_version: 4
|
376
|
+
summary: Offers a user table for customer users
|
377
|
+
test_files: []
|