devise_jwt_mehak 1.0.1 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/config/application.rb +30 -0
  3. data/config/boot.rb +4 -0
  4. data/config/cable.yml +10 -0
  5. data/config/credentials.yml.enc +1 -0
  6. data/config/database.yml +36 -0
  7. data/config/environment.rb +5 -0
  8. data/config/environments/development.rb +76 -0
  9. data/config/environments/production.rb +120 -0
  10. data/config/environments/test.rb +60 -0
  11. data/config/initializers/application_controller_renderer.rb +8 -0
  12. data/config/initializers/assets.rb +14 -0
  13. data/config/initializers/backtrace_silencers.rb +8 -0
  14. data/config/initializers/content_security_policy.rb +30 -0
  15. data/config/initializers/cookies_serializer.rb +5 -0
  16. data/config/initializers/devise.rb +329 -0
  17. data/config/initializers/filter_parameter_logging.rb +6 -0
  18. data/config/initializers/inflections.rb +16 -0
  19. data/config/initializers/mime_types.rb +4 -0
  20. data/config/initializers/permissions_policy.rb +11 -0
  21. data/config/initializers/warden_auth.rb +11 -0
  22. data/config/initializers/wrap_parameters.rb +14 -0
  23. data/config/locales/devise.en.yml +65 -0
  24. data/config/locales/en.yml +33 -0
  25. data/config/master.key +1 -0
  26. data/config/puma.rb +43 -0
  27. data/config/routes.rb +40 -0
  28. data/config/spring.rb +6 -0
  29. data/config/storage.yml +34 -0
  30. data/config/webpack/development.js +5 -0
  31. data/config/webpack/environment.js +3 -0
  32. data/config/webpack/production.js +5 -0
  33. data/config/webpack/test.js +5 -0
  34. data/config/webpacker.yml +92 -0
  35. data/devise_jwt.gemspec +4 -3
  36. data/lib/devise_jwt/version.rb +3 -0
  37. data/lib/devise_jwt.rb +11 -0
  38. data/lib/generators/devise_jwt_mehak/service/USAGE +8 -0
  39. data/lib/generators/devise_jwt_mehak/service/service_generator.rb +22 -0
  40. data/lib/generators/devise_jwt_mehak/service/templates/service.erb +16 -0
  41. metadata +39 -1
@@ -0,0 +1,92 @@
1
+ # Note: You must restart bin/webpack-dev-server for changes to take effect
2
+
3
+ default: &default
4
+ source_path: app/javascript
5
+ source_entry_path: packs
6
+ public_root_path: public
7
+ public_output_path: packs
8
+ cache_path: tmp/cache/webpacker
9
+ webpack_compile_output: true
10
+
11
+ # Additional paths webpack should lookup modules
12
+ # ['app/assets', 'engine/foo/app/assets']
13
+ additional_paths: []
14
+
15
+ # Reload manifest.json on all requests so we reload latest compiled packs
16
+ cache_manifest: false
17
+
18
+ # Extract and emit a css file
19
+ extract_css: false
20
+
21
+ static_assets_extensions:
22
+ - .jpg
23
+ - .jpeg
24
+ - .png
25
+ - .gif
26
+ - .tiff
27
+ - .ico
28
+ - .svg
29
+ - .eot
30
+ - .otf
31
+ - .ttf
32
+ - .woff
33
+ - .woff2
34
+
35
+ extensions:
36
+ - .mjs
37
+ - .js
38
+ - .sass
39
+ - .scss
40
+ - .css
41
+ - .module.sass
42
+ - .module.scss
43
+ - .module.css
44
+ - .png
45
+ - .svg
46
+ - .gif
47
+ - .jpeg
48
+ - .jpg
49
+
50
+ development:
51
+ <<: *default
52
+ compile: true
53
+
54
+ # Reference: https://webpack.js.org/configuration/dev-server/
55
+ dev_server:
56
+ https: false
57
+ host: localhost
58
+ port: 3035
59
+ public: localhost:3035
60
+ hmr: false
61
+ # Inline should be set to true if using HMR
62
+ inline: true
63
+ overlay: true
64
+ compress: true
65
+ disable_host_check: true
66
+ use_local_ip: false
67
+ quiet: false
68
+ pretty: false
69
+ headers:
70
+ 'Access-Control-Allow-Origin': '*'
71
+ watch_options:
72
+ ignored: '**/node_modules/**'
73
+
74
+
75
+ test:
76
+ <<: *default
77
+ compile: true
78
+
79
+ # Compile test packs to a separate directory
80
+ public_output_path: packs-test
81
+
82
+ production:
83
+ <<: *default
84
+
85
+ # Production depends on precompilation of packs prior to booting for performance.
86
+ compile: false
87
+
88
+ # Extract and emit a css file
89
+ extract_css: true
90
+
91
+ # Cache manifest.json for performance
92
+ cache_manifest: true
data/devise_jwt.gemspec CHANGED
@@ -1,4 +1,5 @@
1
1
  require File.expand_path('lib/devise_jwt/version',__dir__)
2
+ # $:.push File.expand_path("../lib", __FILE__)
2
3
  Gem::Specification.new do |s|
3
4
  s.name = 'devise_jwt_mehak'
4
5
  s.version = DeviseJwt::VERSION
@@ -7,13 +8,13 @@ Gem::Specification.new do |s|
7
8
  s.authors = ["Mehak Singla"]
8
9
  s.email = 'mehaksingla1897@gmail.com'
9
10
  # s.files = ["lib/devise_jwt.rb"]
10
- s.files = Dir["{lib}/**/*"]
11
+ # s.files = Dir["{lib}/**/*"]
11
12
  s.homepage = 'https://github.com/mehaksingla1897/starlance-docker'
12
13
  s.license = 'MIT'
13
14
  s.platform = Gem::Platform::RUBY
14
15
 
15
- s.files = Dir['README.md', 'LICENSE', 'devise_jwt.gemspec', 'Gemfile']
16
-
16
+ s.files = Dir["{lib,config}/**/*", 'README.md', 'LICENSE', 'devise_jwt.gemspec', 'Gemfile']
17
+ s.require_paths = ["lib"]
17
18
  # s.add_dependency 'test', ~> '2.1' #install during runtime
18
19
  # s.add_development_dependency 'rspec', ~> '1.6'
19
20
  end
@@ -0,0 +1,3 @@
1
+ module DeviseJwt
2
+ VERSION = '1.0.5'
3
+ end
data/lib/devise_jwt.rb ADDED
@@ -0,0 +1,11 @@
1
+ module DeviseJwt
2
+ class << self
3
+ attr_accessor :token
4
+
5
+ attr_writer :locales_path
6
+
7
+ def locales_path
8
+ @locales_path || "#{Rails.root}/config/locales"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator mehak
3
+
4
+ Example:
5
+ bin/rails generate service Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,22 @@
1
+ require 'rails'
2
+ class DeviseJwtMehak
3
+ class ServiceGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('templates', __dir__)
5
+
6
+ argument :methods, type: :array, default: [], banner: "method method"
7
+ class_option :module, type: :string
8
+
9
+ def create_service_file
10
+ @module_name = options[:module]
11
+
12
+ service_dir_path = "app/services"
13
+ generator_dir_path = service_dir_path + ("/#{@module_name.underscore}" if @module_name.present?).to_s
14
+ generator_path = generator_dir_path + "/#{file_name}.rb"
15
+
16
+ Dir.mkdir(service_dir_path) unless File.exist?(service_dir_path)
17
+ Dir.mkdir(generator_dir_path) unless File.exist?(generator_dir_path)
18
+
19
+ template "service.erb", generator_path
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,16 @@
1
+ <% if @module_name.present? %> module <%= @module_name.camelize %> <% end %>
2
+ class <%= class_name %>
3
+
4
+ def initialize
5
+ end
6
+
7
+ def call
8
+ end
9
+
10
+ <% if methods.present? %> private <% end %>
11
+ <% for method in methods %>
12
+ def <%= method %>
13
+ end
14
+ <% end %>
15
+ end
16
+ <% if @module_name.present? %> end <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_jwt_mehak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehak Singla
@@ -19,7 +19,45 @@ files:
19
19
  - Gemfile
20
20
  - LICENSE
21
21
  - README.md
22
+ - config/application.rb
23
+ - config/boot.rb
24
+ - config/cable.yml
25
+ - config/credentials.yml.enc
26
+ - config/database.yml
27
+ - config/environment.rb
28
+ - config/environments/development.rb
29
+ - config/environments/production.rb
30
+ - config/environments/test.rb
31
+ - config/initializers/application_controller_renderer.rb
32
+ - config/initializers/assets.rb
33
+ - config/initializers/backtrace_silencers.rb
34
+ - config/initializers/content_security_policy.rb
35
+ - config/initializers/cookies_serializer.rb
36
+ - config/initializers/devise.rb
37
+ - config/initializers/filter_parameter_logging.rb
38
+ - config/initializers/inflections.rb
39
+ - config/initializers/mime_types.rb
40
+ - config/initializers/permissions_policy.rb
41
+ - config/initializers/warden_auth.rb
42
+ - config/initializers/wrap_parameters.rb
43
+ - config/locales/devise.en.yml
44
+ - config/locales/en.yml
45
+ - config/master.key
46
+ - config/puma.rb
47
+ - config/routes.rb
48
+ - config/spring.rb
49
+ - config/storage.yml
50
+ - config/webpack/development.js
51
+ - config/webpack/environment.js
52
+ - config/webpack/production.js
53
+ - config/webpack/test.js
54
+ - config/webpacker.yml
22
55
  - devise_jwt.gemspec
56
+ - lib/devise_jwt.rb
57
+ - lib/devise_jwt/version.rb
58
+ - lib/generators/devise_jwt_mehak/service/USAGE
59
+ - lib/generators/devise_jwt_mehak/service/service_generator.rb
60
+ - lib/generators/devise_jwt_mehak/service/templates/service.erb
23
61
  homepage: https://github.com/mehaksingla1897/starlance-docker
24
62
  licenses:
25
63
  - MIT