Skip to content

Instantly share code, notes, and snippets.

Avatar
🕵️‍♂️
Looking for bugs 🦟

प्रथमेश Sonpatki prathamesh-sonpatki

🕵️‍♂️
Looking for bugs 🦟
View GitHub Profile
View gist:c9075f78ac6f1f372c7c
$ rails s
=> Booting Thin
=> Rails 5.0.0.beta2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
I am getting reloaded
Thin web server (v1.6.2 codename Doc Brown)
Maximum connections set to 1024
Listening on localhost:3000, CTRL+C to stop
View gist:ca9dbc32bcbae9066562
prathamesh ~/Projects/reproductions/cache_key_app 2.3.0
$ rails s
=> Booting Thin
=> Rails 5.0.0.beta2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
I am getting reloaded
Thin web server (v1.6.2 codename Doc Brown)
Maximum connections set to 1024
Listening on localhost:3000, CTRL+C to stop
View *scratch*.el
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/vagrant/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20160124-17861-92m5je.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
View gist:a86426fa369ba5c7d452
.........rake aborted!
ActiveRecord::ConnectionNotEstablished: No connection pool for ActiveRecord::InternalMetadata
/Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:878:in `retrieve_connection'
/Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
/Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/connection_handling.rb:87:in `connection'
/Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/internal_metadata.rb:30:in `block in table_exists?'
/Users/prathamesh/Projects/sources/rails/activesupport/lib/active_support/deprecation/reporting.rb:34:in `silence'
/Users/prathamesh/Projects/sources/rails/activesupport/lib/active_support/deprecation/instance_delegator.rb:19:in `silence'
/Users/prathamesh/Projects/sources/rails/activerecord/lib/active_record/internal_metadata.rb:30:in `table_exists?'
/Users/prathamesh/Projects/sources/rails/a
View application.rb
require File.expand_path('../boot', __FILE__)
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
# require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
View arel_tree.rb
#<Arel::SelectManager:0x007fcc66365c88 @ctx=#<Arel::Nodes::SelectCore:0x007fcc66365be8 @source=#<Arel::Nodes::JoinSource:0x007fcc66365b70 @left=#<Arel::Table:0x007fcc663ff900 @name="profiles", @columns=nil, @aliases=[], @type_caster=#<ActiveRecord::TypeCaster::Map:0x007fcc663ffa18 @types=Profile (call 'Profile.connection' to establish a connection)>, @table_alias=nil>, @right=[]>, @top=nil, @set_quantifier=nil, @projections=[#<struct Arel::Attributes::Attribute relation=#<Arel::Table:0x007fcc663ff900 @name="profiles", @columns=nil, @aliases=[], @type_caster=#<ActiveRecord::TypeCaster::Map:0x007fcc663ffa18 @types=Profile (call 'Profile.connection' to establish a connection)>, @table_alias=nil>, name="*">], @wheres=[#<Arel::Nodes::And:0x007fcc663653c8 @children=[#<Arel::Nodes::Equality:0x007fcc66365e40 @left=#<struct Arel::Attributes::Attribute relation=#<Arel::Table:0x007fcc66366868 @name="settings", @columns=nil, @aliases=[], @type_caster=#<ActiveRecord::TypeCaster::Connection:0x007fcc663668b8 @klass=Profile
View gist:d15ce1fcafb097986aef
$ bin/rails t
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <module:MultiFetchFragments> at /Users/prathamesh/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/multi_fetch_fragments-0.0.17/lib/multi_fetch_fragments.rb:5)
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <top (required)> at /Users/prathamesh/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/devise-a321282ccc93/lib/devise/orm/active_record.rb:3)
/Users/prathamesh/Projects/sources/codetriage/config/initializers/git_hub_bub.rb:2: warning: already initialized constant GitHubBub::Request::USER_AGENT
/Users/prathamesh/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/git_hub_bub-0.0.6/lib/git_hub_bub/request.rb:7: warning: previous definition of USER_AGENT was here
/Users/prathamesh/Projects/sources/codetriage/config/in
View gist:bfef67f03381086ff197
$ be rake
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /Users/prathamesh/Projects/sources/maildown/test/dummy/config/environments/test.rb:16)
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in <top (required)> at /Users/prathamesh/Projects/sources/maildown/test/dummy/config/environments/test.rb:16)
/Users/prathamesh/Projects/sources/m
View gist:82e17257738de6ed26aa
prathamesh ~/Projects/sources/reactjs-by-example/chapter11 2.3.0 (bigbinary/reactjs-by-example) -> master
$ npm start
> react-router-flux@0.0.1 start /Users/prathamesh/Projects/sources/reactjs-by-example/chapter11
> node server.js
events.js:141
throw er; // Unhandled 'error' event
^
View bug_report.rb
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
You can’t perform that action at this time.