Skip to content

Instantly share code, notes, and snippets.

View khustochka's full-sized avatar
🇺🇦
Stand with Ukraine!

Vitalii Khustochka khustochka

🇺🇦
Stand with Ukraine!
View GitHub Profile
@khustochka
khustochka / 1.9.3-p362
Last active May 6, 2019 01:45
Patching ruby using ruby build Edit ruby definition
build_package_combined_patch() {
local package_name="$1"
{
curl https://raw.github.com/wayneeseguin/rvm/master/patches/ruby/1.9.3/p362/segfault_fix_7629.diff | patch -F 25 -p1 -N -f
autoconf
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
make -j 8
make install
} >&4 2>&1
vkhust@wren 1.9.3@global ~/btest
$ bundle install --deployment
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.0.3)
Using bundler (1.3.0)
Your bundle is complete! It was installed into ./vendor/bundle
vkhust@wren 1.9.3@global ~/btest
$ bundle outdated
Unfortunately, a fatal error has occurred. Please see the Bundler
Register der wissenschaftlichen Artbezeichnungen
R - голос, G - песня, J/JR - голоса молодых, K - щелканье клювом, F - звуки крыльев
Accipiter badius 3/56
Accipiter brevipes 3/57
Accipiter gentilis 3/52-53
Accipiter nisus 3/54-55
Acridotheres tristis 10/27
@khustochka
khustochka / gist:8071697
Last active January 1, 2016 01:19
Active record failure, 4.1.0.beta1
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
[1] pry(main)> RUBY_VERSION
=> "2.1.0"
[2] pry(main)> require 'active_support/hash_with_indifferent_access'
=> true
[3] pry(main)> h = ActiveSupport::HashWithIndifferentAccess.new({a: 1})
=> {"a"=>1}
[4] pry(main)> x = h.reject {|_, v| v.nil? }
=> {"a"=>1}
[5] pry(main)> x.class
=> ActiveSupport::HashWithIndifferentAccess
# frozen_string_literal: true
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
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", "6.0.2"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails"