Skip to content

Instantly share code, notes, and snippets.

Avatar
🕵️‍♂️
Looking for bugs 🦟

प्रथमेश Sonpatki prathamesh-sonpatki

🕵️‍♂️
Looking for bugs 🦟
View GitHub Profile
View .rubocop.yml
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec
- rubocop-rails
- rubocop-performance
AllCops:
EnabledByDefault: true
TargetRubyVersion: 2.6.5
View .rubocop.yml
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec
- rubocop-rails
- rubocop-performance
AllCops:
EnabledByDefault: true
TargetRubyVersion: 2.6.5
@prathamesh-sonpatki
prathamesh-sonpatki / manifest.json
Created Sep 23, 2019
Sample manifest.json file generated by Webpacker
View manifest.json
{
"admin.js": "/packs/js/admin-67dd60bc5c69e9e06cc3.js",
"admin.js.map": "/packs/js/admin-67dd60bc5c69e9e06cc3.js.map",
"application.js": "/packs/js/application-d351b587b51ad82444e4.js",
"application.js.map": "/packs/js/application-d351b587b51ad82444e4.js.map",
"entrypoints": {
"admin": {
"js": [
"/packs/js/admin-67dd60bc5c69e9e06cc3.js"
View .rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-09-11 08:43:14 +0530 using RuboCop version 0.74.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Cop supports --auto-correct.
View 1.3.rkt
(define (square x)
(* x x))
(define (sum-of-squares a b)
(+ (square a) (square b)))
(define (sum-of-squares-of-two-largest a b c)
(if (>= a b)
(sum-of-squares a (max b c))
(sum-of-squares b (max a c))
View gist:9d8d8c52e5b7445427bfab9104e4dc9c
sources/rails/railties upgrade-guide-- ✔ 2.6.0 16m
▶ bin/test test/generators/
Run options: --seed 25553
# Running:
...................................F
Failure:
Rails::Command::RoutesTest#test_rails_routes_with_controller_search_key [/Users/prathamesh/Projects/sources/rails/railties/test/commands/routes_test.rb:92]:
View gist:3539aa86f8d10c5378222ce45bd9574a
E
Error:
PolymorphicPathRoutesTest#test_irregular_plural_url_helper_prefixed_with_edit:
ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
/Users/prathamesh/Projects/sources/rails/actionpack/lib/action_dispatch/http/url.rb:63:in `full_url_for'
/Users/prathamesh/Projects/sources/rails/actionpack/lib/action_dispatch/http/url.rb:53:in `url_for'
/Users/prathamesh/Projects/sources/rails/actionpack/lib/action_dispatch/routing/route_set.rb:338:in `block in <class:RouteSet>'
/Users/prathamesh/Projects/sources/rails/actionpack/lib/action_dispatch/routing/route_set.rb:211:in `call'
/Users/prathamesh/Projects/sources/rails/actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block (2 levels) in define_url_helper'
View gist:f0eb5c265ef33a42161266508fbe0fed
Traceback (most recent call last):
21: from -e:1:in `<main>'
20: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
19: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
18: from /Users/prathamesh/Projects/sources/rails/activerecord/test/cases/associations/belongs_to_associations_test.rb:3:in `<top (required)>'
17: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
16: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
15: from /Users/prathamesh/Projects/sources/rails/activerecord/test/cases/helper.rb:7:in `<top (required)>'
14: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
13: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0
View gist:4a61dcd3bd8e94b3c8610800294ee5ad
prathamesh@Prathameshs-MacBook-Pro-2 rails (master)$ edgerails
Traceback (most recent call last):
8: from /Users/prathamesh/Projects/sources/rails/railties/exe/rails:10:in `<main>'
7: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
6: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
5: from /Users/prathamesh/Projects/sources/rails/railties/lib/rails/cli.rb:12:in `<top (required)>'
4: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
3: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
2: from /Users/prathamesh/Projects/sources/rails/railties/lib/rails/command.rb:3:in `<top (required)>'
1: from /Users/prathamesh/.rbenv/versions/2.6.0/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
You can’t perform that action at this time.