Skip to content

Instantly share code, notes, and snippets.

View sonalkr132's full-sized avatar
🐢
β€β€β€Ž

Aditya Prakash sonalkr132

🐢
β€β€β€Ž
View GitHub Profile

Heading

Move the Bundler API back into RubyGems.org

What is your project idea?

My project would re-implement the Bundler API on the Rails app that provides RubyGems.org. Bundler uses bundler-api to download dependency information about all the gems it is trying to install. This request for complex database queries, marshalling the output and everything else is quite CPU intensive and rubygems.org's limited hardware infrastructure could not support it until now. With help of Ruby Together, hopefully we will make bundle install faster and more reliable for everyone.

Have you found someone to mentor you already?

Yes. AndrΓ© Arko @indirect and Samuel E. Giddins @segiddins

What related experience and education do you have?

I am a computer science undergraduate student in my junior year from [National Institute of Technology, Durga

require 'benchmark/ips'
Benchmark.ips do |x|
x.report("reverse_dependencies_new") do
gems = ["mocha", "nokogiri", "activerecord", "thor"]
gems.each do |name|
Rubygem.find_by(name: name).reverse_dependencies_new
end
end
full_name created_at/yanked_at info_checksum correct_info_checksum yanked
newgem-1.5.3 2010-03-03 23:55:48 UTC f4264f082e3da61f5882b410997de829 c83502b63c2021a4b728f94ec6d1101e
treetop-1.6.8 2016-07-21 22:45:48 UTC 7a37cb3f05105e8fb9afd53c8b5f97e4 d48c5ab1c64b1bd497f25ccc3b47500e
capistrano-3.8.0 2017-03-10 17:05:42 UTC a86b34d1424874f8e46fbdd1e442cf72 e617af9a61d834329b6790842b157e43
rye-0.9.13 2015-04-15 02:16:07 UTC 059d872c514caf92ea61ac1492dd1ae9 d3c76f4edcf36b155818c63a27fdb71f
stompserver-0.9.1 2009-07-25 17:50:46 UTC fa735614d741091864f9673967d55959 5205ecb0d1294dd8c78f36cc551f53ab
sproutcore-1.10.3 2015-04-28 22:50:38 UTC 2e42c25ade6b3ed880b3ffa155a59d2f 8f17ce84b0a908e86a7f431a802944fc yanked
shenandoah-0.2.0 2009-11-30 07:09:08 UTC ace54f4c6ce855025481f27b93ed60d2 0c7b947ee60e5213325163411c3119b0
erector-0.10.0 2014-04-14 23:38:03 UTC 973c0ad044c51e83175a0389f47d3a40 56e7a4bcf068e437fa54dc2adb7208a8
rudy-0.9.8.020 2011-02-14 23:58:39 UTC d0c47ad44a71f62356af02bc65b81d95 e77fc630f4f7243dbbf153aa26e
[{"_shard"=>"[rubygems-test][0]",
"_node"=>"cImXsj-jTzSn4ZIOdGck7g",
"_index"=>"rubygems-test",
"_type"=>"rubygem",
"_id"=>"9108",
"_score"=>0.295259,
"_source"=>
{"summary"=>"some",
"latest_version_number"=>"0.0.10",
"downloads"=>1,
# Custom Analyzer for ActiveRecord integration with Elasticsearch
# ===============================================================
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'ansi'
require 'logger'
require 'active_record'
require 'elasticsearch/model'
1) Failure:
SearchTest#test_params_has_non_white_listed_keys [/home/addie/rubygems.org/test/integration/search_test.rb:64]:
Expected false to be truthy.
2) Failure:
SearchTest#test_searching_for_a_gem [/home/addie/rubygems.org/test/integration/search_test.rb:16]:
Expected false to be truthy.
@sonalkr132
sonalkr132 / cable.yml
Created May 1, 2017 12:18
rails 5 update new files which were removed on rubygems.org
development:
adapter: async
test:
adapter: async
production:
adapter: redis
url: redis://localhost:6379/1
@sonalkr132
sonalkr132 / Vagrantfile
Last active February 26, 2019 11:29
Setting up puppet master and agent using vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.hostmanager.enable = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
config.vm.define "puppet" do |puppet|
puppet.vm.box = "ubuntu/xenial64"
$ git s
On branch 5-1-upgrade
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: Gemfile
modified: Gemfile.lock
modified: config/application.rb