.pryrc in git-semaphore-2.1.0 vs .pryrc in git-semaphore-2.2.0
- old
+ new
@@ -1,10 +1,16 @@
-$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
+# this loads all of "git-semaphore"
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'git/semaphore'
# utility function to set pry context
# to an instance of <Rugged::Repository>
-def repository() pry Git::Semaphore.git_repo ; end
+def repository
+ pry Git::Semaphore.git_repo
+end
# utility function to set pry context
# to an instance of <Git::Semaphore::Project>
-def project() pry Git::Semaphore::Project.from_repo(Git::Semaphore.git_repo) ; end
+def project
+ pry Git::Semaphore::Project.from_repo(Git::Semaphore.git_repo)
+end