Skip to content
Browse files

Configured Guard for auto-running specs.

  • Loading branch information...
1 parent ffbf18f commit 4b42a18534f7bc0acd5604937a9fdb269878c2ca @lukeredpath lukeredpath committed Feb 24, 2012
Showing with 34 additions and 1 deletion.
  1. +4 −0 Gemfile
  2. +15 −0 Gemfile.lock
  3. +12 −0 Guardfile
  4. +2 −1 lib/cocoapods.rb
  5. +1 −0 lib/cocoapods/installer.rb
View
4 Gemfile
@@ -3,4 +3,8 @@ source "http://rubygems.org"
group :development do
gem "rake"
gem "bacon"
+ gem "guard"
+ gem "guard-bacon"
+ gem "rb-fsevent"
+ gem "growl"
end
View
15 Gemfile.lock
@@ -2,11 +2,26 @@ GEM
remote: http://rubygems.org/
specs:
bacon (1.1.0)
+ growl (1.0.3)
+ guard (0.8.8)
+ thor (~> 0.14.6)
+ guard-bacon (1.0.2)
+ guard (~> 0.8.4)
+ schmurfy-bacon (~> 1.2)
rake (0.9.2.2)
+ rb-fsevent (0.9.0)
+ schmurfy-bacon (1.2.1)
+ term-ansicolor
+ term-ansicolor (1.0.7)
+ thor (0.14.6)
PLATFORMS
ruby
DEPENDENCIES
bacon
+ growl
+ guard
+ guard-bacon
rake
+ rb-fsevent
View
12 Guardfile
@@ -0,0 +1,12 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+
+# parameters:
+# output => the formatted to use
+# backtrace => number of lines, nil = everything
+guard 'bacon', :output => "BetterOutput", :backtrace => 4 do
+ watch(%r{^lib/cocoapods/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
+ watch(%r{spec/.+\.rb$})
+end
+
View
3 lib/cocoapods.rb
@@ -14,11 +14,12 @@ class Informative < StandardError
autoload :Platform, 'cocoapods/platform'
autoload :Podfile, 'cocoapods/podfile'
autoload :Resolver, 'cocoapods/resolver'
+ autoload :Sandbox, 'cocoapods/sandbox'
autoload :Source, 'cocoapods/source'
autoload :Spec, 'cocoapods/specification'
autoload :Specification, 'cocoapods/specification'
autoload :Version, 'cocoapods/version'
-
+
autoload :Pathname, 'pathname'
autoload :FileList, 'cocoapods/file_list'
View
1 lib/cocoapods/installer.rb
@@ -23,6 +23,7 @@ def download_only_specifications
def initialize(podfile)
@podfile = podfile
+ @sandbox = Sandbox.new(config.project_pods_root)
end
def lock_file

0 comments on commit 4b42a18

Please sign in to comment.
Something went wrong with that request. Please try again.