зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-03 17:55:52 +03:00
v0.1.0
Этот коммит содержится в:
7
bin/console
Исполняемый файл
7
bin/console
Исполняемый файл
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require 'bundler/setup'
|
||||
require 'telegram/bot'
|
||||
|
||||
require 'pry'
|
||||
Pry.start
|
||||
14
bin/git-hooks/pre-commit
Исполняемый файл
14
bin/git-hooks/pre-commit
Исполняемый файл
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
pattern=$(echo -n '\.rb
|
||||
\.gemspec
|
||||
\.jbuilder
|
||||
\.rake
|
||||
config\.ru
|
||||
Gemfile
|
||||
Rakefile' | tr "\\n" '|')
|
||||
|
||||
files=`git diff --cached --name-status | grep -E "^[AM].*($pattern)$" | cut -f2-`
|
||||
if [ -n "$files" ]; then
|
||||
bundle exec rubocop $files --force-exclusion
|
||||
fi
|
||||
8
bin/install_git_hooks
Исполняемый файл
8
bin/install_git_hooks
Исполняемый файл
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
root = File.expand_path('../../', __FILE__)
|
||||
hooks_dir = "#{root}/bin/git-hooks"
|
||||
|
||||
`ls -1 #{hooks_dir}`.each_line.map(&:strip).each do |file|
|
||||
`ln -sf #{hooks_dir}/#{file} #{root}/.git/hooks/#{file}`
|
||||
end
|
||||
8
bin/setup
Исполняемый файл
8
bin/setup
Исполняемый файл
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
bundle install
|
||||
bin/install_git_hooks
|
||||
|
||||
# Do any other automated setup that you need to do here
|
||||
Ссылка в новой задаче
Block a user