create_new_gem_mehak 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +56 -0
- data/README.md +24 -0
- data/config/application.rb +22 -0
- data/config/boot.rb +4 -0
- data/config/cable.yml +10 -0
- data/config/credentials.yml.enc +1 -0
- data/config/database.yml +25 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +76 -0
- data/config/environments/production.rb +120 -0
- data/config/environments/test.rb +60 -0
- data/config/initializers/application_controller_renderer.rb +8 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/backtrace_silencers.rb +8 -0
- data/config/initializers/content_security_policy.rb +30 -0
- data/config/initializers/cookies_serializer.rb +5 -0
- data/config/initializers/filter_parameter_logging.rb +6 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/mime_types.rb +4 -0
- data/config/initializers/permissions_policy.rb +11 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/en.yml +33 -0
- data/config/master.key +1 -0
- data/config/puma.rb +43 -0
- data/config/routes.rb +3 -0
- data/config/spring.rb +6 -0
- data/config/storage.yml +34 -0
- data/config/webpack/development.js +5 -0
- data/config/webpack/environment.js +3 -0
- data/config/webpack/production.js +5 -0
- data/config/webpack/test.js +5 -0
- data/config/webpacker.yml +92 -0
- data/create_new_gem_mehak.gemspec +30 -0
- data/lib/create_new_gem_mehak/railtie.rb +13 -0
- data/lib/create_new_gem_mehak/version.rb +3 -0
- data/lib/create_new_gem_mehak.rb +5 -0
- data/lib/generators/service/USAGE +13 -0
- data/lib/generators/service/service_generator.rb +32 -0
- data/lib/generators/service/templates/service.erb +18 -0
- metadata +111 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b34dfe9ef9dcd782c33081f25b5134bf4e25a17061cf860589d1dac58a8180fe
|
|
4
|
+
data.tar.gz: 74feebdc88216a44e006a1988821ae4a769543bb5208fb6b34a3460809661130
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b7f4fc738f95d26b680dba8fb0c9b4335aa472c4b72eeb7e213ddaa7a2109339a885f8b2826d3f52ba11d342ffbd11ab2cf4e0e3c97a3958fa089a25ccb3a8b7
|
|
7
|
+
data.tar.gz: 8a982de3497709fde903ae9c1c6176896b11e91ab74f9fd6fd4b975e3bbc42f649e15f6ff2030a20c4350e3a77415decdb6d42fb180b2f81b3c1cf4f10320fb5
|
data/Gemfile
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
3
|
+
|
|
4
|
+
ruby '2.6.5'
|
|
5
|
+
|
|
6
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
|
|
7
|
+
gem 'rails', '~> 6.1.4', '>= 6.1.4.4'
|
|
8
|
+
# Use sqlite3 as the database for Active Record
|
|
9
|
+
gem 'sqlite3', '~> 1.4'
|
|
10
|
+
# Use Puma as the app server
|
|
11
|
+
gem 'puma', '~> 5.0'
|
|
12
|
+
# Use SCSS for stylesheets
|
|
13
|
+
gem 'sass-rails', '>= 6'
|
|
14
|
+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
|
15
|
+
gem 'webpacker', '~> 5.0'
|
|
16
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
|
17
|
+
gem 'turbolinks', '~> 5'
|
|
18
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
|
19
|
+
gem 'jbuilder', '~> 2.7'
|
|
20
|
+
# Use Redis adapter to run Action Cable in production
|
|
21
|
+
# gem 'redis', '~> 4.0'
|
|
22
|
+
# Use Active Model has_secure_password
|
|
23
|
+
# gem 'bcrypt', '~> 3.1.7'
|
|
24
|
+
|
|
25
|
+
# Use Active Storage variant
|
|
26
|
+
# gem 'image_processing', '~> 1.2'
|
|
27
|
+
|
|
28
|
+
# Reduces boot times through caching; required in config/boot.rb
|
|
29
|
+
gem 'bootsnap', '>= 1.4.4', require: false
|
|
30
|
+
|
|
31
|
+
group :development, :test do
|
|
32
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
|
33
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
group :development do
|
|
37
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
|
38
|
+
gem 'web-console', '>= 4.1.0'
|
|
39
|
+
# Display performance information such as SQL time and flame graphs for each request in your browser.
|
|
40
|
+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
|
|
41
|
+
gem 'rack-mini-profiler', '~> 2.0'
|
|
42
|
+
gem 'listen', '~> 3.3'
|
|
43
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
|
44
|
+
gem 'spring'
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
group :test do
|
|
48
|
+
# Adds support for Capybara system testing and selenium driver
|
|
49
|
+
gem 'capybara', '>= 3.26'
|
|
50
|
+
gem 'selenium-webdriver'
|
|
51
|
+
# Easy installation and use of web drivers to run system tests with browsers
|
|
52
|
+
gem 'webdrivers'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
56
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
data/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# README
|
|
2
|
+
|
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
|
4
|
+
application up and running.
|
|
5
|
+
|
|
6
|
+
Things you may want to cover:
|
|
7
|
+
|
|
8
|
+
* Ruby version
|
|
9
|
+
|
|
10
|
+
* System dependencies
|
|
11
|
+
|
|
12
|
+
* Configuration
|
|
13
|
+
|
|
14
|
+
* Database creation
|
|
15
|
+
|
|
16
|
+
* Database initialization
|
|
17
|
+
|
|
18
|
+
* How to run the test suite
|
|
19
|
+
|
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
+
|
|
22
|
+
* Deployment instructions
|
|
23
|
+
|
|
24
|
+
* ...
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require_relative "boot"
|
|
2
|
+
|
|
3
|
+
require "rails/all"
|
|
4
|
+
|
|
5
|
+
# Require the gems listed in Gemfile, including any gems
|
|
6
|
+
# you've limited to :test, :development, or :production.
|
|
7
|
+
Bundler.require(*Rails.groups)
|
|
8
|
+
|
|
9
|
+
module CreateNewGemMehak
|
|
10
|
+
class Application < Rails::Application
|
|
11
|
+
# Initialize configuration defaults for originally generated Rails version.
|
|
12
|
+
config.load_defaults 6.1
|
|
13
|
+
|
|
14
|
+
# Configuration for the application, engines, and railties goes here.
|
|
15
|
+
#
|
|
16
|
+
# These settings can be overridden in specific environments using the files
|
|
17
|
+
# in config/environments, which are processed later.
|
|
18
|
+
#
|
|
19
|
+
# config.time_zone = "Central Time (US & Canada)"
|
|
20
|
+
# config.eager_load_paths << Rails.root.join("extras")
|
|
21
|
+
end
|
|
22
|
+
end
|
data/config/boot.rb
ADDED
data/config/cable.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/5ux1Lbi1yDR5fSUSNW3ntwD6POQO5oOul8eA2jE+JbIhWN2SLt22wCc3gvk2YxVcBlFMySjkggy2d13IxkXxp7xqH6b//qGHq8eWSZhrB2DhCiaxQiorTeP/ShDTXNeQJG8QwFdWemXRCSmDiLSZ3qYfcj5yM63Y9dwK27uJYqsmqDdRVYPvZpnaPtK++N5VuycZf+C/a7kpuDgcAPB/HV3EV9CfMbqJ71ucHOc8Q8atQM0GqjBM9H7HyWMqr+U8Me7OuG5OK7yThPBA4SzRkCpkrlEO1YXp50TQlC1yPfhOJ1Zlx9331Jm+dC+yZd/vcwZsmJqwW8JmiDwPZ/AvdImHAs5b2m1CmfzHdN2/bZIA2k82TcIqEQjdMOSlPRBqLWlT0n7ewNSXG9brcP+WSF7DjvGKoziSQYK--2SrMcN1szl7+N4+u--2YrhiSYiu2jlJqux3mr5cw==
|
data/config/database.yml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SQLite. Versions 3.8.0 and up are supported.
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem 'sqlite3'
|
|
6
|
+
#
|
|
7
|
+
default: &default
|
|
8
|
+
adapter: sqlite3
|
|
9
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
10
|
+
timeout: 5000
|
|
11
|
+
|
|
12
|
+
development:
|
|
13
|
+
<<: *default
|
|
14
|
+
database: db/development.sqlite3
|
|
15
|
+
|
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
|
17
|
+
# re-generated from your development database when you run "rake".
|
|
18
|
+
# Do not set this db to the same as development or production.
|
|
19
|
+
test:
|
|
20
|
+
<<: *default
|
|
21
|
+
database: db/test.sqlite3
|
|
22
|
+
|
|
23
|
+
production:
|
|
24
|
+
<<: *default
|
|
25
|
+
database: db/production.sqlite3
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
|
2
|
+
|
|
3
|
+
Rails.application.configure do
|
|
4
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
|
5
|
+
|
|
6
|
+
# In the development environment your application's code is reloaded any time
|
|
7
|
+
# it changes. This slows down response time but is perfect for development
|
|
8
|
+
# since you don't have to restart the web server when you make code changes.
|
|
9
|
+
config.cache_classes = false
|
|
10
|
+
|
|
11
|
+
# Do not eager load code on boot.
|
|
12
|
+
config.eager_load = false
|
|
13
|
+
|
|
14
|
+
# Show full error reports.
|
|
15
|
+
config.consider_all_requests_local = true
|
|
16
|
+
|
|
17
|
+
# Enable/disable caching. By default caching is disabled.
|
|
18
|
+
# Run rails dev:cache to toggle caching.
|
|
19
|
+
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
|
20
|
+
config.action_controller.perform_caching = true
|
|
21
|
+
config.action_controller.enable_fragment_cache_logging = true
|
|
22
|
+
|
|
23
|
+
config.cache_store = :memory_store
|
|
24
|
+
config.public_file_server.headers = {
|
|
25
|
+
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
|
26
|
+
}
|
|
27
|
+
else
|
|
28
|
+
config.action_controller.perform_caching = false
|
|
29
|
+
|
|
30
|
+
config.cache_store = :null_store
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
|
34
|
+
config.active_storage.service = :local
|
|
35
|
+
|
|
36
|
+
# Don't care if the mailer can't send.
|
|
37
|
+
config.action_mailer.raise_delivery_errors = false
|
|
38
|
+
|
|
39
|
+
config.action_mailer.perform_caching = false
|
|
40
|
+
|
|
41
|
+
# Print deprecation notices to the Rails logger.
|
|
42
|
+
config.active_support.deprecation = :log
|
|
43
|
+
|
|
44
|
+
# Raise exceptions for disallowed deprecations.
|
|
45
|
+
config.active_support.disallowed_deprecation = :raise
|
|
46
|
+
|
|
47
|
+
# Tell Active Support which deprecation messages to disallow.
|
|
48
|
+
config.active_support.disallowed_deprecation_warnings = []
|
|
49
|
+
|
|
50
|
+
# Raise an error on page load if there are pending migrations.
|
|
51
|
+
config.active_record.migration_error = :page_load
|
|
52
|
+
|
|
53
|
+
# Highlight code that triggered database queries in logs.
|
|
54
|
+
config.active_record.verbose_query_logs = true
|
|
55
|
+
|
|
56
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
|
57
|
+
# This option may cause significant delays in view rendering with a large
|
|
58
|
+
# number of complex assets.
|
|
59
|
+
config.assets.debug = true
|
|
60
|
+
|
|
61
|
+
# Suppress logger output for asset requests.
|
|
62
|
+
config.assets.quiet = true
|
|
63
|
+
|
|
64
|
+
# Raises error for missing translations.
|
|
65
|
+
# config.i18n.raise_on_missing_translations = true
|
|
66
|
+
|
|
67
|
+
# Annotate rendered view with file names.
|
|
68
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
|
69
|
+
|
|
70
|
+
# Use an evented file watcher to asynchronously detect changes in source code,
|
|
71
|
+
# routes, locales, etc. This feature depends on the listen gem.
|
|
72
|
+
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
|
73
|
+
|
|
74
|
+
# Uncomment if you wish to allow Action Cable access from any origin.
|
|
75
|
+
# config.action_cable.disable_request_forgery_protection = true
|
|
76
|
+
end
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
|
2
|
+
|
|
3
|
+
Rails.application.configure do
|
|
4
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
|
5
|
+
|
|
6
|
+
# Code is not reloaded between requests.
|
|
7
|
+
config.cache_classes = true
|
|
8
|
+
|
|
9
|
+
# Eager load code on boot. This eager loads most of Rails and
|
|
10
|
+
# your application in memory, allowing both threaded web servers
|
|
11
|
+
# and those relying on copy on write to perform better.
|
|
12
|
+
# Rake tasks automatically ignore this option for performance.
|
|
13
|
+
config.eager_load = true
|
|
14
|
+
|
|
15
|
+
# Full error reports are disabled and caching is turned on.
|
|
16
|
+
config.consider_all_requests_local = false
|
|
17
|
+
config.action_controller.perform_caching = true
|
|
18
|
+
|
|
19
|
+
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
|
20
|
+
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
|
21
|
+
# config.require_master_key = true
|
|
22
|
+
|
|
23
|
+
# Disable serving static files from the `/public` folder by default since
|
|
24
|
+
# Apache or NGINX already handles this.
|
|
25
|
+
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
|
26
|
+
|
|
27
|
+
# Compress CSS using a preprocessor.
|
|
28
|
+
# config.assets.css_compressor = :sass
|
|
29
|
+
|
|
30
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
|
31
|
+
config.assets.compile = false
|
|
32
|
+
|
|
33
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
34
|
+
# config.asset_host = 'http://assets.example.com'
|
|
35
|
+
|
|
36
|
+
# Specifies the header that your server uses for sending files.
|
|
37
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
|
38
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
|
39
|
+
|
|
40
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
|
41
|
+
config.active_storage.service = :local
|
|
42
|
+
|
|
43
|
+
# Mount Action Cable outside main process or domain.
|
|
44
|
+
# config.action_cable.mount_path = nil
|
|
45
|
+
# config.action_cable.url = 'wss://example.com/cable'
|
|
46
|
+
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
|
47
|
+
|
|
48
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
49
|
+
# config.force_ssl = true
|
|
50
|
+
|
|
51
|
+
# Include generic and useful information about system operation, but avoid logging too much
|
|
52
|
+
# information to avoid inadvertent exposure of personally identifiable information (PII).
|
|
53
|
+
config.log_level = :info
|
|
54
|
+
|
|
55
|
+
# Prepend all log lines with the following tags.
|
|
56
|
+
config.log_tags = [ :request_id ]
|
|
57
|
+
|
|
58
|
+
# Use a different cache store in production.
|
|
59
|
+
# config.cache_store = :mem_cache_store
|
|
60
|
+
|
|
61
|
+
# Use a real queuing backend for Active Job (and separate queues per environment).
|
|
62
|
+
# config.active_job.queue_adapter = :resque
|
|
63
|
+
# config.active_job.queue_name_prefix = "create_new_gem_mehak_production"
|
|
64
|
+
|
|
65
|
+
config.action_mailer.perform_caching = false
|
|
66
|
+
|
|
67
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
|
68
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
69
|
+
# config.action_mailer.raise_delivery_errors = false
|
|
70
|
+
|
|
71
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
72
|
+
# the I18n.default_locale when a translation cannot be found).
|
|
73
|
+
config.i18n.fallbacks = true
|
|
74
|
+
|
|
75
|
+
# Send deprecation notices to registered listeners.
|
|
76
|
+
config.active_support.deprecation = :notify
|
|
77
|
+
|
|
78
|
+
# Log disallowed deprecations.
|
|
79
|
+
config.active_support.disallowed_deprecation = :log
|
|
80
|
+
|
|
81
|
+
# Tell Active Support which deprecation messages to disallow.
|
|
82
|
+
config.active_support.disallowed_deprecation_warnings = []
|
|
83
|
+
|
|
84
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
|
85
|
+
config.log_formatter = ::Logger::Formatter.new
|
|
86
|
+
|
|
87
|
+
# Use a different logger for distributed setups.
|
|
88
|
+
# require "syslog/logger"
|
|
89
|
+
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
|
90
|
+
|
|
91
|
+
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
|
92
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
|
93
|
+
logger.formatter = config.log_formatter
|
|
94
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Do not dump schema after migrations.
|
|
98
|
+
config.active_record.dump_schema_after_migration = false
|
|
99
|
+
|
|
100
|
+
# Inserts middleware to perform automatic connection switching.
|
|
101
|
+
# The `database_selector` hash is used to pass options to the DatabaseSelector
|
|
102
|
+
# middleware. The `delay` is used to determine how long to wait after a write
|
|
103
|
+
# to send a subsequent read to the primary.
|
|
104
|
+
#
|
|
105
|
+
# The `database_resolver` class is used by the middleware to determine which
|
|
106
|
+
# database is appropriate to use based on the time delay.
|
|
107
|
+
#
|
|
108
|
+
# The `database_resolver_context` class is used by the middleware to set
|
|
109
|
+
# timestamps for the last write to the primary. The resolver uses the context
|
|
110
|
+
# class timestamps to determine how long to wait before reading from the
|
|
111
|
+
# replica.
|
|
112
|
+
#
|
|
113
|
+
# By default Rails will store a last write timestamp in the session. The
|
|
114
|
+
# DatabaseSelector middleware is designed as such you can define your own
|
|
115
|
+
# strategy for connection switching and pass that into the middleware through
|
|
116
|
+
# these configuration options.
|
|
117
|
+
# config.active_record.database_selector = { delay: 2.seconds }
|
|
118
|
+
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
|
|
119
|
+
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
|
120
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
|
2
|
+
|
|
3
|
+
# The test environment is used exclusively to run your application's
|
|
4
|
+
# test suite. You never need to work with it otherwise. Remember that
|
|
5
|
+
# your test database is "scratch space" for the test suite and is wiped
|
|
6
|
+
# and recreated between test runs. Don't rely on the data there!
|
|
7
|
+
|
|
8
|
+
Rails.application.configure do
|
|
9
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
|
10
|
+
|
|
11
|
+
config.cache_classes = false
|
|
12
|
+
config.action_view.cache_template_loading = true
|
|
13
|
+
|
|
14
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
|
15
|
+
# just for the purpose of running a single test. If you are using a tool that
|
|
16
|
+
# preloads Rails for running tests, you may have to set it to true.
|
|
17
|
+
config.eager_load = false
|
|
18
|
+
|
|
19
|
+
# Configure public file server for tests with Cache-Control for performance.
|
|
20
|
+
config.public_file_server.enabled = true
|
|
21
|
+
config.public_file_server.headers = {
|
|
22
|
+
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
# Show full error reports and disable caching.
|
|
26
|
+
config.consider_all_requests_local = true
|
|
27
|
+
config.action_controller.perform_caching = false
|
|
28
|
+
config.cache_store = :null_store
|
|
29
|
+
|
|
30
|
+
# Raise exceptions instead of rendering exception templates.
|
|
31
|
+
config.action_dispatch.show_exceptions = false
|
|
32
|
+
|
|
33
|
+
# Disable request forgery protection in test environment.
|
|
34
|
+
config.action_controller.allow_forgery_protection = false
|
|
35
|
+
|
|
36
|
+
# Store uploaded files on the local file system in a temporary directory.
|
|
37
|
+
config.active_storage.service = :test
|
|
38
|
+
|
|
39
|
+
config.action_mailer.perform_caching = false
|
|
40
|
+
|
|
41
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
|
42
|
+
# The :test delivery method accumulates sent emails in the
|
|
43
|
+
# ActionMailer::Base.deliveries array.
|
|
44
|
+
config.action_mailer.delivery_method = :test
|
|
45
|
+
|
|
46
|
+
# Print deprecation notices to the stderr.
|
|
47
|
+
config.active_support.deprecation = :stderr
|
|
48
|
+
|
|
49
|
+
# Raise exceptions for disallowed deprecations.
|
|
50
|
+
config.active_support.disallowed_deprecation = :raise
|
|
51
|
+
|
|
52
|
+
# Tell Active Support which deprecation messages to disallow.
|
|
53
|
+
config.active_support.disallowed_deprecation_warnings = []
|
|
54
|
+
|
|
55
|
+
# Raises error for missing translations.
|
|
56
|
+
# config.i18n.raise_on_missing_translations = true
|
|
57
|
+
|
|
58
|
+
# Annotate rendered view with file names.
|
|
59
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
|
60
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
|
5
|
+
|
|
6
|
+
# Add additional assets to the asset load path.
|
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
|
8
|
+
# Add Yarn node_modules folder to the asset load path.
|
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
|
10
|
+
|
|
11
|
+
# Precompile additional assets.
|
|
12
|
+
# application.js, application.css, and all non-JS/CSS in the app/assets
|
|
13
|
+
# folder are already added.
|
|
14
|
+
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
|
5
|
+
|
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
|
7
|
+
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
|
8
|
+
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Define an application-wide content security policy
|
|
4
|
+
# For further information see the following documentation
|
|
5
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
|
6
|
+
|
|
7
|
+
# Rails.application.config.content_security_policy do |policy|
|
|
8
|
+
# policy.default_src :self, :https
|
|
9
|
+
# policy.font_src :self, :https, :data
|
|
10
|
+
# policy.img_src :self, :https, :data
|
|
11
|
+
# policy.object_src :none
|
|
12
|
+
# policy.script_src :self, :https
|
|
13
|
+
# policy.style_src :self, :https
|
|
14
|
+
# # If you are using webpack-dev-server then specify webpack-dev-server host
|
|
15
|
+
# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
|
16
|
+
|
|
17
|
+
# # Specify URI for violation reports
|
|
18
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
|
19
|
+
# end
|
|
20
|
+
|
|
21
|
+
# If you are using UJS then enable automatic nonce generation
|
|
22
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
|
23
|
+
|
|
24
|
+
# Set the nonce only to specific directives
|
|
25
|
+
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
|
|
26
|
+
|
|
27
|
+
# Report CSP violations to a specified URI
|
|
28
|
+
# For further information see the following documentation:
|
|
29
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
|
30
|
+
# Rails.application.config.content_security_policy_report_only = true
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
|
4
|
+
# are locale specific, and you may define rules for as many different
|
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
|
9
|
+
# inflect.irregular 'person', 'people'
|
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
|
11
|
+
# end
|
|
12
|
+
|
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
15
|
+
# inflect.acronym 'RESTful'
|
|
16
|
+
# end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Define an application-wide HTTP permissions policy. For further
|
|
2
|
+
# information see https://developers.google.com/web/updates/2018/06/feature-policy
|
|
3
|
+
#
|
|
4
|
+
# Rails.application.config.permissions_policy do |f|
|
|
5
|
+
# f.camera :none
|
|
6
|
+
# f.gyroscope :none
|
|
7
|
+
# f.microphone :none
|
|
8
|
+
# f.usb :none
|
|
9
|
+
# f.fullscreen :self
|
|
10
|
+
# f.payment :self, "https://secure.example.com"
|
|
11
|
+
# end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
|
4
|
+
# is enabled by default.
|
|
5
|
+
|
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
|
8
|
+
wrap_parameters format: [:json]
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
|
13
|
+
# self.include_root_in_json = true
|
|
14
|
+
# end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
+
# than English, add the necessary files in this directory.
|
|
4
|
+
#
|
|
5
|
+
# To use the locales, use `I18n.t`:
|
|
6
|
+
#
|
|
7
|
+
# I18n.t 'hello'
|
|
8
|
+
#
|
|
9
|
+
# In views, this is aliased to just `t`:
|
|
10
|
+
#
|
|
11
|
+
# <%= t('hello') %>
|
|
12
|
+
#
|
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
|
14
|
+
#
|
|
15
|
+
# I18n.locale = :es
|
|
16
|
+
#
|
|
17
|
+
# This would use the information in config/locales/es.yml.
|
|
18
|
+
#
|
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
|
20
|
+
# the default I18n backend:
|
|
21
|
+
#
|
|
22
|
+
# true, false, on, off, yes, no
|
|
23
|
+
#
|
|
24
|
+
# Instead, surround them with single quotes.
|
|
25
|
+
#
|
|
26
|
+
# en:
|
|
27
|
+
# 'true': 'foo'
|
|
28
|
+
#
|
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
|
31
|
+
|
|
32
|
+
en:
|
|
33
|
+
hello: "Hello world"
|
data/config/master.key
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0edd23428efd503555fb622325432d81
|
data/config/puma.rb
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
|
6
|
+
#
|
|
7
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
|
9
|
+
threads min_threads_count, max_threads_count
|
|
10
|
+
|
|
11
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
|
12
|
+
# terminating a worker in development environments.
|
|
13
|
+
#
|
|
14
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
|
15
|
+
|
|
16
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
|
17
|
+
#
|
|
18
|
+
port ENV.fetch("PORT") { 3000 }
|
|
19
|
+
|
|
20
|
+
# Specifies the `environment` that Puma will run in.
|
|
21
|
+
#
|
|
22
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
|
23
|
+
|
|
24
|
+
# Specifies the `pidfile` that Puma will use.
|
|
25
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
|
26
|
+
|
|
27
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
|
28
|
+
# Workers are forked web server processes. If using threads and workers together
|
|
29
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
|
30
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
|
31
|
+
# processes).
|
|
32
|
+
#
|
|
33
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
|
34
|
+
|
|
35
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
|
36
|
+
# This directive tells Puma to first boot the application and load code
|
|
37
|
+
# before forking the application. This takes advantage of Copy On Write
|
|
38
|
+
# process behavior so workers use less memory.
|
|
39
|
+
#
|
|
40
|
+
# preload_app!
|
|
41
|
+
|
|
42
|
+
# Allow puma to be restarted by `rails restart` command.
|
|
43
|
+
plugin :tmp_restart
|
data/config/routes.rb
ADDED
data/config/spring.rb
ADDED
data/config/storage.yml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
test:
|
|
2
|
+
service: Disk
|
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
|
4
|
+
|
|
5
|
+
local:
|
|
6
|
+
service: Disk
|
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
|
8
|
+
|
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
|
10
|
+
# amazon:
|
|
11
|
+
# service: S3
|
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
|
14
|
+
# region: us-east-1
|
|
15
|
+
# bucket: your_own_bucket
|
|
16
|
+
|
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
|
18
|
+
# google:
|
|
19
|
+
# service: GCS
|
|
20
|
+
# project: your_project
|
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
|
22
|
+
# bucket: your_own_bucket
|
|
23
|
+
|
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
|
25
|
+
# microsoft:
|
|
26
|
+
# service: AzureStorage
|
|
27
|
+
# storage_account_name: your_account_name
|
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
|
29
|
+
# container: your_container_name
|
|
30
|
+
|
|
31
|
+
# mirror:
|
|
32
|
+
# service: Mirror
|
|
33
|
+
# primary: local
|
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
|
@@ -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
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require "create_new_gem_mehak/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "create_new_gem_mehak"
|
|
7
|
+
spec.version = CreateNewGemMehak::VERSION
|
|
8
|
+
spec.authors = ["Mehak Singla"]
|
|
9
|
+
spec.email = ["mehaksingla1897@gmail.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = %q{Creates a Service Generator inisde your app}
|
|
12
|
+
spec.description = %q{This gem creates a Service Generator so you can use it as a part of rails generators}
|
|
13
|
+
spec.homepage = "https://github.com/mehaksingla1897/starlance-docker"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
19
|
+
# spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
20
|
+
# `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
21
|
+
# end
|
|
22
|
+
|
|
23
|
+
spec.files = Dir["{lib,config}/**/*", 'README.md', 'LICENSE', 'create_new_gem_mehak.gemspec', 'Gemfile']
|
|
24
|
+
spec.bindir = "exe"
|
|
25
|
+
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
|
+
spec.require_paths = ["lib"]
|
|
27
|
+
|
|
28
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
|
29
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
30
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module CreateNewGemMehak
|
|
2
|
+
def self.root
|
|
3
|
+
File.dirname __dir__
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
class MyRailtie < Rails::Railtie
|
|
7
|
+
service_generator_path = CreateNewGemMehak::root.+'/matas_service_generator/service/service_generator.rb'
|
|
8
|
+
|
|
9
|
+
config.app_generators do
|
|
10
|
+
require service_generator_path
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Description:
|
|
2
|
+
Stubs out a new service. Pass the service name, either
|
|
3
|
+
CamelCased or under_scored, and an optional list of its methods as arguments. MEHAK SINGLA
|
|
4
|
+
|
|
5
|
+
To create a service within a module, just add --module NAME, or --module=NAME
|
|
6
|
+
|
|
7
|
+
This generates a service class in app/services, or app/services/module if module name is present.
|
|
8
|
+
|
|
9
|
+
Example:
|
|
10
|
+
`rails generate service MailerService send receive --module MailerModule`
|
|
11
|
+
|
|
12
|
+
This will create:
|
|
13
|
+
app/services/mailer_module/mailer_service.rb
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
require 'rails/generators'
|
|
2
|
+
require 'fileutils'
|
|
3
|
+
|
|
4
|
+
class ServiceGenerator < Rails::Generators::NamedBase
|
|
5
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
6
|
+
|
|
7
|
+
argument :methods, type: :array, default: [], banner: "method method"
|
|
8
|
+
class_option :module, type: :string
|
|
9
|
+
|
|
10
|
+
def create_service_file
|
|
11
|
+
@module_name = options[:module]
|
|
12
|
+
|
|
13
|
+
service_dir_path = Rails.root.join 'app', 'services'
|
|
14
|
+
service_dir_path = service_dir_path.join @module_name.underscore if module?
|
|
15
|
+
generator_path = service_dir_path.join "#{file_name}.rb"
|
|
16
|
+
|
|
17
|
+
FileUtils.mkdir_p(service_dir_path)
|
|
18
|
+
|
|
19
|
+
template "service.erb", generator_path
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
private
|
|
23
|
+
|
|
24
|
+
def module?
|
|
25
|
+
@module_name.present?
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def methods?
|
|
29
|
+
methods.any?
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<%- indent = module? ? ' ' : '' -%>
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
<%= "module #{@module_name.camelize}\n" if module? -%>
|
|
5
|
+
<%= "#{indent}class #{class_name}" %>
|
|
6
|
+
<%= indent %>def initialize
|
|
7
|
+
<%= indent %>end
|
|
8
|
+
|
|
9
|
+
<%= indent %>def call
|
|
10
|
+
<%= indent %>end
|
|
11
|
+
<%= "\n#{indent} private\n" if methods? -%>
|
|
12
|
+
<%- for method in methods -%>
|
|
13
|
+
|
|
14
|
+
<%= "#{indent}def #{method}" %>
|
|
15
|
+
<%= indent %>end
|
|
16
|
+
<%- end -%>
|
|
17
|
+
<%= indent %>end
|
|
18
|
+
<%= 'end' if module? -%>
|
metadata
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: create_new_gem_mehak
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Mehak Singla
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.16'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.16'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
description: This gem creates a Service Generator so you can use it as a part of rails
|
|
42
|
+
generators
|
|
43
|
+
email:
|
|
44
|
+
- mehaksingla1897@gmail.com
|
|
45
|
+
executables: []
|
|
46
|
+
extensions: []
|
|
47
|
+
extra_rdoc_files: []
|
|
48
|
+
files:
|
|
49
|
+
- Gemfile
|
|
50
|
+
- README.md
|
|
51
|
+
- config/application.rb
|
|
52
|
+
- config/boot.rb
|
|
53
|
+
- config/cable.yml
|
|
54
|
+
- config/credentials.yml.enc
|
|
55
|
+
- config/database.yml
|
|
56
|
+
- config/environment.rb
|
|
57
|
+
- config/environments/development.rb
|
|
58
|
+
- config/environments/production.rb
|
|
59
|
+
- config/environments/test.rb
|
|
60
|
+
- config/initializers/application_controller_renderer.rb
|
|
61
|
+
- config/initializers/assets.rb
|
|
62
|
+
- config/initializers/backtrace_silencers.rb
|
|
63
|
+
- config/initializers/content_security_policy.rb
|
|
64
|
+
- config/initializers/cookies_serializer.rb
|
|
65
|
+
- config/initializers/filter_parameter_logging.rb
|
|
66
|
+
- config/initializers/inflections.rb
|
|
67
|
+
- config/initializers/mime_types.rb
|
|
68
|
+
- config/initializers/permissions_policy.rb
|
|
69
|
+
- config/initializers/wrap_parameters.rb
|
|
70
|
+
- config/locales/en.yml
|
|
71
|
+
- config/master.key
|
|
72
|
+
- config/puma.rb
|
|
73
|
+
- config/routes.rb
|
|
74
|
+
- config/spring.rb
|
|
75
|
+
- config/storage.yml
|
|
76
|
+
- config/webpack/development.js
|
|
77
|
+
- config/webpack/environment.js
|
|
78
|
+
- config/webpack/production.js
|
|
79
|
+
- config/webpack/test.js
|
|
80
|
+
- config/webpacker.yml
|
|
81
|
+
- create_new_gem_mehak.gemspec
|
|
82
|
+
- lib/create_new_gem_mehak.rb
|
|
83
|
+
- lib/create_new_gem_mehak/railtie.rb
|
|
84
|
+
- lib/create_new_gem_mehak/version.rb
|
|
85
|
+
- lib/generators/service/USAGE
|
|
86
|
+
- lib/generators/service/service_generator.rb
|
|
87
|
+
- lib/generators/service/templates/service.erb
|
|
88
|
+
homepage: https://github.com/mehaksingla1897/starlance-docker
|
|
89
|
+
licenses:
|
|
90
|
+
- MIT
|
|
91
|
+
metadata: {}
|
|
92
|
+
post_install_message:
|
|
93
|
+
rdoc_options: []
|
|
94
|
+
require_paths:
|
|
95
|
+
- lib
|
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
|
+
requirements:
|
|
98
|
+
- - ">="
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: '0'
|
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: '0'
|
|
106
|
+
requirements: []
|
|
107
|
+
rubygems_version: 3.0.8
|
|
108
|
+
signing_key:
|
|
109
|
+
specification_version: 4
|
|
110
|
+
summary: Creates a Service Generator inisde your app
|
|
111
|
+
test_files: []
|