Skip to content

Instantly share code, notes, and snippets.

View iL53n's full-sized avatar

Illia Hrybko iL53n

  • EPAM Systems @epam
  • Poland, Krakow
View GitHub Profile
@iL53n
iL53n / Gemfile
Created June 25, 2020 12:12 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@iL53n
iL53n / .travis.yml
Created April 23, 2020 18:04 — forked from palkan/.travis.yml
Travis config for TH project
language: ruby
rvm:
- 2.2.3
# Если Travis пишет вам слишком часто, то отключаем email уведомления
notifications:
email: false
# Указываем базу данных
addons:
@iL53n
iL53n / Guardfile
Created April 23, 2020 18:00 — forked from palkan/Guardfile
Guardfile for Rails
# По умолчанию запускаем только необходимых для тестов наблюдателей,
# то есть всех, кроме server.
# Для запуска всех: bundle exec guard -g default
scope groups: ['specs']
group 'specs' do
# запускаем тесты и использованием Spring
guard :rspec, cmd: "bundle exec spring rspec" do
require "guard/rspec/dsl"
dsl = Guard::RSpec::Dsl.new(self)
@iL53n
iL53n / 01_readme.md
Created April 23, 2020 17:54 — forked from palkan/01_readme.md
Docker Dev
@iL53n
iL53n / rubocop_pre_commit_hook.rb
Last active April 22, 2020 18:13 — forked from palkan/rubocop_pre_commit_hook
Rubocop pre-commit hook.rb
#!/usr/bin/env ruby
# -- Install --
# ln -s rubocop_pre_commit.rb .git/hooks/pre-commit
# chmod +x .git/hooks/pre-commit
ADDED_OR_MODIFIED = /^\s*(A|AM|M)/.freeze
changed_files = `git status --porcelain`.split(/\n/)
unstaged_files = `git ls-files -m`.split(/\n/)