usman 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/controllers/usman/admin_controller.rb +1 -18
- data/app/controllers/usman/api/v1/docs_controller.rb +53 -12
- data/app/controllers/usman/application_controller.rb +2 -0
- data/app/controllers/usman/features_controller.rb +4 -2
- data/app/controllers/usman/permissions_controller.rb +34 -3
- data/app/controllers/usman/resource_controller.rb +6 -1
- data/app/controllers/usman/user_roles_controller.rb +1 -0
- data/app/helpers/usman/authentication_helper.rb +102 -34
- data/app/models/feature.rb +2 -2
- data/app/models/permission.rb +11 -0
- data/app/models/user.rb +65 -0
- data/app/services/usman/sms_service.rb +91 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +125 -72
- data/app/views/usman/dashboard/_index.html.erb +40 -0
- data/app/views/usman/dashboard/_super_admin_index.html.erb +22 -0
- data/app/views/usman/dashboard/index.html.erb +6 -128
- data/app/views/usman/features/_form.html.erb +1 -1
- data/app/views/usman/features/_index.html.erb +18 -8
- data/app/views/usman/features/_row.html.erb +14 -8
- data/app/views/usman/features/_show.html.erb +13 -10
- data/app/views/usman/features/index.html.erb +2 -2
- data/app/views/usman/permissions/_form.html.erb +2 -2
- data/app/views/usman/permissions/_index.html.erb +6 -5
- data/app/views/usman/permissions/_row.html.erb +6 -5
- data/app/views/usman/permissions/_show.html.erb +5 -5
- data/app/views/usman/permissions/index.html.erb +15 -17
- data/app/views/usman/registration_devices/_index.html.erb +11 -7
- data/app/views/usman/registration_devices/_row.html.erb +18 -18
- data/app/views/usman/registrations/_index.html.erb +17 -13
- data/app/views/usman/registrations/_row.html.erb +14 -10
- data/app/views/usman/roles/_index.html.erb +8 -4
- data/app/views/usman/roles/_row.html.erb +7 -5
- data/app/views/usman/roles/_show.html.erb +9 -5
- data/app/views/usman/roles/index.html.erb +3 -3
- data/app/views/usman/sessions/_permission_denied.js.erb +3 -0
- data/app/views/usman/user_roles/_index.html.erb +6 -0
- data/app/views/usman/user_roles/_row.html.erb +4 -0
- data/app/views/usman/users/_index.html.erb +19 -15
- data/app/views/usman/users/_row.html.erb +17 -15
- data/app/views/usman/users/_show.html.erb +5 -3
- data/app/views/usman/users/index.html.erb +3 -3
- data/config/locales/usman/authentication.ar.yml +5 -2
- data/config/locales/usman/authentication.en.yml +2 -2
- data/config/locales/usman/sms.en.yml +17 -0
- data/config/routes.rb +11 -12
- data/db/data/dummy/permissions.csv +1 -76
- data/db/data/dummy/users.csv +3 -6
- data/db/data/users.csv +3 -1
- data/db/master_data/features.csv +9 -0
- data/db/master_data/roles.csv +1 -0
- data/lib/tasks/usman/data.rake +15 -9
- data/lib/tasks/usman/master_data.rake +7 -3
- data/lib/usman/action_view/permissions_helper.rb +24 -0
- data/lib/usman/engine.rb +6 -0
- data/lib/usman/version.rb +1 -1
- data/lib/usman.rb +1 -0
- metadata +27 -12
- data/app/controllers/usman/api/v1/docs_base_controller.rb +0 -25
- data/app/views/kuppayam/api/docs/_navigation.html.erb +0 -67
- data/db/data/dummy/features.csv +0 -17
- data/db/data/dummy/roles.csv +0 -5
- data/db/data/features.csv +0 -17
- data/db/data/roles.csv +0 -5
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kpvarma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
version: '0.1'
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.1.
|
110
|
+
version: 0.1.16
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: '0.1'
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.1.
|
120
|
+
version: 0.1.16
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: pattana
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
version: '0.1'
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.1.
|
130
|
+
version: 0.1.13
|
131
131
|
type: :runtime
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
version: '0.1'
|
138
138
|
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.1.
|
140
|
+
version: 0.1.13
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: bcrypt
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,6 +166,20 @@ dependencies:
|
|
166
166
|
- - "~>"
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0.8'
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: aws-sdk-sns
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: 1.1.0
|
176
|
+
type: :runtime
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 1.1.0
|
169
183
|
- !ruby/object:Gem::Dependency
|
170
184
|
name: pry
|
171
185
|
requirement: !ruby/object:Gem::Requirement
|
@@ -373,7 +387,6 @@ files:
|
|
373
387
|
- app/assets/sketches/logo.sketch
|
374
388
|
- app/controllers/usman/admin_controller.rb
|
375
389
|
- app/controllers/usman/api/v1/base_controller.rb
|
376
|
-
- app/controllers/usman/api/v1/docs_base_controller.rb
|
377
390
|
- app/controllers/usman/api/v1/docs_controller.rb
|
378
391
|
- app/controllers/usman/api/v1/profile_controller.rb
|
379
392
|
- app/controllers/usman/api/v1/profile_picture_controller.rb
|
@@ -410,9 +423,9 @@ files:
|
|
410
423
|
- app/serializers/registration_serializer.rb
|
411
424
|
- app/services/usman/authentication_service.rb
|
412
425
|
- app/services/usman/mobile_registration_service.rb
|
426
|
+
- app/services/usman/sms_service.rb
|
413
427
|
- app/uploaders/feature_image_uploader.rb
|
414
428
|
- app/uploaders/profile_picture_uploader.rb
|
415
|
-
- app/views/kuppayam/api/docs/_navigation.html.erb
|
416
429
|
- app/views/layouts/kuppayam/_footer.html.erb
|
417
430
|
- app/views/layouts/kuppayam/_header.html.erb
|
418
431
|
- app/views/layouts/kuppayam/_navbar.html.erb
|
@@ -465,6 +478,8 @@ files:
|
|
465
478
|
- app/views/usman/api/v1/docs/verify_otp/_neg_case_4.html.erb
|
466
479
|
- app/views/usman/api/v1/docs/verify_otp/_pos_case_1.html.erb
|
467
480
|
- app/views/usman/api/v1/docs/verify_otp/_pos_case_2.html.erb
|
481
|
+
- app/views/usman/dashboard/_index.html.erb
|
482
|
+
- app/views/usman/dashboard/_super_admin_index.html.erb
|
468
483
|
- app/views/usman/dashboard/index.html.erb
|
469
484
|
- app/views/usman/features/_form.html.erb
|
470
485
|
- app/views/usman/features/_index.html.erb
|
@@ -492,6 +507,7 @@ files:
|
|
492
507
|
- app/views/usman/roles/_show.html.erb
|
493
508
|
- app/views/usman/roles/index.html.erb
|
494
509
|
- app/views/usman/sessions/_form.html.erb
|
510
|
+
- app/views/usman/sessions/_permission_denied.js.erb
|
495
511
|
- app/views/usman/sessions/_sign_in.js.erb
|
496
512
|
- app/views/usman/sessions/sign_in.html.erb
|
497
513
|
- app/views/usman/user_roles/_form.html.erb
|
@@ -506,15 +522,13 @@ files:
|
|
506
522
|
- config/locales/usman/api.en.yml
|
507
523
|
- config/locales/usman/authentication.ar.yml
|
508
524
|
- config/locales/usman/authentication.en.yml
|
525
|
+
- config/locales/usman/sms.en.yml
|
509
526
|
- config/routes.rb
|
510
|
-
- db/data/dummy/features.csv
|
511
527
|
- db/data/dummy/permissions.csv
|
512
|
-
- db/data/dummy/roles.csv
|
513
528
|
- db/data/dummy/users.csv
|
514
|
-
- db/data/features.csv
|
515
529
|
- db/data/permissions.csv
|
516
|
-
- db/data/roles.csv
|
517
530
|
- db/data/users.csv
|
531
|
+
- db/master_data/features.csv
|
518
532
|
- db/master_data/roles.csv
|
519
533
|
- db/migrate/20170000000100_create_users.rb
|
520
534
|
- db/migrate/20170000000101_create_features.rb
|
@@ -533,6 +547,7 @@ files:
|
|
533
547
|
- lib/temp/roles.rake
|
534
548
|
- lib/temp/users.rake
|
535
549
|
- lib/usman.rb
|
550
|
+
- lib/usman/action_view/permissions_helper.rb
|
536
551
|
- lib/usman/engine.rb
|
537
552
|
- lib/usman/factories.rb
|
538
553
|
- lib/usman/version.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Usman
|
2
|
-
module Api
|
3
|
-
module V1
|
4
|
-
class DocsBaseController < Kuppayam::BaseController
|
5
|
-
|
6
|
-
include Usman::AuthenticationHelper
|
7
|
-
|
8
|
-
layout 'kuppayam/docs'
|
9
|
-
|
10
|
-
before_action :current_user
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def breadcrumbs_configuration
|
15
|
-
{
|
16
|
-
heading: "Usman - API Documentation",
|
17
|
-
description: "A brief documentation of all APIs implemented in the gem Usman with input and output details and examples",
|
18
|
-
links: []
|
19
|
-
}
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
<ul class="nav tabs-vertical">
|
2
|
-
<li class="<%= nav_active?('docs/register') ? 'active' : '' %>">
|
3
|
-
<a href="/docs/api/v1/register">
|
4
|
-
<i class="fa-globe visible-xs"></i>
|
5
|
-
<span class="hidden-xs">Register</span>
|
6
|
-
</a>
|
7
|
-
</li>
|
8
|
-
<li class="<%= nav_active?('docs/resend_otp') ? 'active' : '' %>">
|
9
|
-
<a href="/docs/api/v1/resend_otp">
|
10
|
-
<i class="fa-globe visible-xs"></i>
|
11
|
-
<span class="hidden-xs">Resend OTP</span>
|
12
|
-
</a>
|
13
|
-
</li>
|
14
|
-
<li class="<%= nav_active?('docs/verify_otp') ? 'active' : '' %>">
|
15
|
-
<a href="/docs/api/v1/verify_otp">
|
16
|
-
<i class="fa-globe visible-xs"></i>
|
17
|
-
<span class="hidden-xs">Verify OTP</span>
|
18
|
-
</a>
|
19
|
-
</li>
|
20
|
-
<li class="<%= nav_active?('docs/accept_tac') ? 'active' : '' %>">
|
21
|
-
<a href="/docs/api/v1/accept_tac">
|
22
|
-
<i class="fa-globe visible-xs"></i>
|
23
|
-
<span class="hidden-xs">Terms & Conditions</span>
|
24
|
-
</a>
|
25
|
-
</li>
|
26
|
-
<li class="<%= nav_active?('docs/create_profile') ? 'active' : '' %>">
|
27
|
-
<a href="/docs/api/v1/create_profile">
|
28
|
-
<i class="fa-globe visible-xs"></i>
|
29
|
-
<span class="hidden-xs">Create Profile</span>
|
30
|
-
</a>
|
31
|
-
</li>
|
32
|
-
<li class="<%= nav_active?('docs/update_profile') ? 'active' : '' %>">
|
33
|
-
<a href="/docs/api/v1/update_profile">
|
34
|
-
<i class="fa-globe visible-xs"></i>
|
35
|
-
<span class="hidden-xs">Update Profile</span>
|
36
|
-
</a>
|
37
|
-
</li>
|
38
|
-
<li class="<%= nav_active?('docs/get_profile_info') ? 'active' : '' %>">
|
39
|
-
<a href="/docs/api/v1/get_profile_info">
|
40
|
-
<i class="fa-globe visible-xs"></i>
|
41
|
-
<span class="hidden-xs">Get Profile Info</span>
|
42
|
-
</a>
|
43
|
-
</li>
|
44
|
-
<li class="<%= nav_active?('docs/upload_profile_picture_base64') ? 'active' : '' %>">
|
45
|
-
<a href="/docs/api/v1/upload_profile_picture_base64">
|
46
|
-
<i class="fa-globe visible-xs"></i>
|
47
|
-
<span class="hidden-xs">Upload Profile Picture (Base64)</span>
|
48
|
-
</a>
|
49
|
-
</li>
|
50
|
-
<li class="<%= nav_active?('docs/upload_profile_picture') ? 'active' : '' %>">
|
51
|
-
<a href="/docs/api/v1/upload_profile_picture">
|
52
|
-
<i class="fa-globe visible-xs"></i>
|
53
|
-
<span class="hidden-xs">Upload Profile Picture</span>
|
54
|
-
</a>
|
55
|
-
</li>
|
56
|
-
<li class="<%= nav_active?('docs/delete_profile_picture') ? 'active' : '' %>">
|
57
|
-
<a href="/docs/api/v1/delete_profile_picture">
|
58
|
-
<i class="fa-globe visible-xs"></i>
|
59
|
-
<span class="hidden-xs">Delete Profile Picture</span>
|
60
|
-
</a>
|
61
|
-
</li>
|
62
|
-
</ul>
|
63
|
-
|
64
|
-
<style type="text/css">
|
65
|
-
.panel-positive h4.panel-title a { color: #68b828 !important; }
|
66
|
-
.panel-negative h4.panel-title a { color: #cc3f44 !important; }
|
67
|
-
</style>
|
data/db/data/dummy/features.csv
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
name,status
|
2
|
-
Users,published
|
3
|
-
Roles,published
|
4
|
-
Products,published
|
5
|
-
Categories,published
|
6
|
-
Brands,published
|
7
|
-
Stores,published
|
8
|
-
Suppliers,published
|
9
|
-
Countries,published
|
10
|
-
Regions,published
|
11
|
-
Exchange Rates,published
|
12
|
-
Events & News,unpublished
|
13
|
-
Subscriptions,deactivated
|
14
|
-
Enquiries,unpublished
|
15
|
-
Teams,unpublished
|
16
|
-
Testimonials,unpublished
|
17
|
-
Careers / Jobs,deactivated
|
data/db/data/dummy/roles.csv
DELETED
data/db/data/features.csv
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
name,status
|
2
|
-
Users,published
|
3
|
-
Roles,published
|
4
|
-
Products,published
|
5
|
-
Categories,published
|
6
|
-
Brands,published
|
7
|
-
Stores,published
|
8
|
-
Suppliers,published
|
9
|
-
Countries,published
|
10
|
-
Regions,published
|
11
|
-
Exchange Rates,published
|
12
|
-
Events & News,unpublished
|
13
|
-
Subscriptions,deactivated
|
14
|
-
Enquiries,unpublished
|
15
|
-
Teams,unpublished
|
16
|
-
Testimonials,unpublished
|
17
|
-
Careers / Jobs,deactivated
|