1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-03 17:55:52 +03:00
Этот коммит содержится в:
Max Melentiev
2016-02-22 22:53:59 +06:00
Коммит 37a63f7b23
29 изменённых файлов: 1333 добавлений и 0 удалений

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 Исполняемый файл
Просмотреть файл

@@ -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 Исполняемый файл
Просмотреть файл

@@ -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 Исполняемый файл
Просмотреть файл

@@ -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