[MacRuby] #994: Grit gem acts differently in macruby vs macruby app
#994: Grit gem acts differently in macruby vs macruby app ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ I'm trying to integrate the grit gem into a macruby app. If I try to create a Repo object and then do Grit::Status.new(repo) on the object, it claims all the objects in the repo are unversioned/untracked. However if I run the exact same code in macirb or place the code and run via macruby, it returns the correct status on the repo. Using MacRuby 7.1 release. -- Ticket URL: <http://www.macruby.org/trac/ticket/994> MacRuby <http://macruby.org/>
#994: Grit gem acts differently in macruby vs macruby app ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ Comment(by vincent.isambart@…): I get the same output from both the script run via MacRuby and the script run in an MacRuby app in Xcode: (I just changed filename to "~/src/rails") {{{ 0 ../Users/vincent/src/rails #<Grit::Repo "/Users/vincent/src/rails/.git"> }}} Please try with a nightly build, and if that still does not work for you, please attach a zip containing your Xcode project. -- Ticket URL: <http://www.macruby.org/trac/ticket/994#comment:1> MacRuby <http://macruby.org/>
#994: Grit gem acts differently in macruby vs macruby app ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ Comment(by isaackearse@…): OK I'm getting slightly different results again. Ruby 1.9 and MacRuby both return the same result from the command line: {{{ Isaac-2:Downloads isaac$ macruby test.rb 33 ../Users/isaac/src/rails #<Grit::Repo "/Users/isaac/src/rails/.git"> Isaac-2:Downloads isaac$ ruby19 test.rb 33 ../Users/isaac/src/rails #<Grit::Repo "/Users/isaac/src/rails/.git"> }}} When I run the same script in Xcode it sometimes returns different results and sometimes fails with this error: {{{ /Users/isaac/Downloads/994/build/Debug/994.app/Contents/Resources/rb_main.rb:18:in `block': Interrupted system call - /usr/bin/env git --git- dir='/Users/isaac/src/rails/.git' diff-files (Errno::EINTR) from /Users/isaac/Downloads/994/build/Debug/994.app/Contents/Resources/rb_main.rb:16:in `<main>' }}} When it runs successfully in Xcode it returns these results: {{{ 0 ../Users/isaac/src/rails #<Grit::Repo "/Users/isaac/src/rails/.git"> }}} Attached is a zip of the project - created with Xcode Version 3.2.5 -- Ticket URL: <http://www.macruby.org/trac/ticket/994#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby