Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
add guard for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen Teapot committed Jul 30, 2018
1 parent 706e7e8 commit e253220
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ source 'https://rubygems.org'

gemspec

gem 'cocoapods', '~> 1.5.3'

group :development do
gem 'bacon', '~> 1.2.0'
gem 'cocoapods', '~> 1.5.3'
gem 'guard'
gem 'guard-bundler'
gem 'guard-rake'
gem 'guard-rubocop'
gem 'mocha', '~> 1.6.0'
gem 'mocha-on-bacon', '~> 0.2.3'
gem 'prettybacon', '~> 0.0.2'
gem 'rubocop', '~> 0.58.2'
gem 'rubocop-require_tools'
gem 'terminal-notifier-guard', '~> 1.6.1'
end

48 changes: 48 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,45 @@ GEM
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.1.0)
coderay (1.1.2)
colored2 (3.1.2)
concurrent-ruby (1.0.5)
escape (0.0.4)
ffi (1.9.25)
formatador (0.2.5)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
guard (2.14.2)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-bundler (2.1.0)
bundler (~> 1.0)
guard (~> 2.2)
guard-compat (~> 1.1)
guard-compat (1.2.1)
guard-rake (1.0.0)
guard
rake
guard-rubocop (1.3.0)
guard (~> 2.0)
rubocop (~> 0.20)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.1)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
lumberjack (1.0.13)
metaclass (0.0.4)
method_source (0.9.0)
minitest (5.11.3)
mocha (1.6.0)
metaclass (~> 0.0.1)
Expand All @@ -68,15 +97,25 @@ GEM
molinillo (0.6.5)
nanaimo (0.2.6)
nap (1.1.0)
nenv (0.3.0)
netrc (0.11.0)
notiffany (0.1.1)
nenv (~> 0.1)
shellany (~> 0.0)
parallel (1.12.1)
parser (2.5.1.2)
ast (~> 2.4.0)
powerpack (0.1.2)
prettybacon (0.0.2)
bacon (~> 1.2)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
rainbow (3.0.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rubocop (0.58.2)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
Expand All @@ -89,6 +128,10 @@ GEM
rubocop (>= 0.49.1)
ruby-macho (1.2.0)
ruby-progressbar (1.9.0)
ruby_dep (1.5.0)
shellany (0.0.1)
terminal-notifier-guard (1.6.4)
thor (0.20.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
Expand All @@ -108,12 +151,17 @@ DEPENDENCIES
bundler (~> 1.3)
cocoapods (~> 1.5.3)
cocoapods-playgrounds!
guard
guard-bundler
guard-rake
guard-rubocop
mocha (~> 1.6.0)
mocha-on-bacon (~> 0.2.3)
prettybacon (~> 0.0.2)
rake
rubocop (~> 0.58.2)
rubocop-require_tools
terminal-notifier-guard (~> 1.6.1)

BUNDLED WITH
1.16.3
24 changes: 24 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# frozen_string_literal: true

guard :bundler do
require 'guard/bundler'
require 'guard/bundler/verify'
helper = Guard::Bundler::Verify.new

files = ['Gemfile']
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }

# Assume files are symlinked from somewhere
files.each { |file| watch(helper.real_path(file)) }
end

guard :rubocop do
watch(/.+\.rb$/)
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
end

if `uname`.match?(/Darwin/)
notification :terminal_notifier,
app_name: 'cocoapods-playgrounds',
activate: 'com.googlecode.iTerm2'
end

0 comments on commit e253220

Please sign in to comment.