<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On a related note to some things touched upon in this thread, it seems that in macbacon test scripts you don't need to require rubygems or mac_bacon, as this is done for you in the macbacon executable.<div><br></div><div>Stephen<br><div><br><div><div>On 30/11/2012, at 18:26, J Silver &lt;<a href="mailto:jsilverman2@gmail.com">jsilverman2@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Wow, didn't even know 1.9 required
      "rubygems" by default! Thanks!<br>
      <br>
      On 30/11/2012 10:22, Joshua Ballanco wrote:<br>
    </div>
    <blockquote cite="mid:BB0713FC86604A3FABC8FE8B7B5F950A@gmail.com" type="cite">
      <div>Do you have a "require 'rubygems'" in your script? Unlike
        Ruby 1.9, MacRuby doesn't automatically load RubyGems by
        default. </div><p style="color: #A0A0A8;">On Friday, November 30, 2012 at 8:11
        PM, stephen horne wrote:</p>
      <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
        <span>
          <div>
            <div>
              <meta http-equiv="Content-Type" content="text/html;
                charset=ISO-8859-1">
              <div>Thanks&nbsp;Daniel, you were right - I'd <font face="Courier">gem installed</font> it. I've now <font face="Courier">gem uninstall</font>ed it and tried
                with <font face="Courier">macgem</font>, but whilst
                that claims to install it, I get a Gem::LoadError when I
                try to use it:</div>
              <div><br>
              </div>
              <blockquote style="margin: 0 0 0 40px; border: none;
                padding: 0px;">
                <div>
                  <div><font face="Courier">$sudo macgem install
                      mac_bacon</font></div>
                </div>
                <div>
                  <div><font face="Courier">Successfully installed
                      mac_bacon-1.3</font></div>
                </div>
                <div>
                  <div><font face="Courier">1 gem installed</font></div>
                </div>
              </blockquote>
              <div><br>
              </div>
              <div>and then try:</div>
              <div><br>
              </div>
              <blockquote style="margin: 0 0 0 40px; border: none;
                padding: 0px;">
                <div><font face="Courier">$macbacon my_class_test.rb</font></div>
              </blockquote>
              <div><br>
              </div>
              <div>I get:</div>
              <div><br>
              </div>
              <blockquote style="margin: 0 0 0 40px; border: none;
                padding: 0px;">
                <div><font face="Courier">/usr/local/bin/macbacon:18:in
                    `&lt;main&gt;': Could not find mac_bacon (&gt;= 0)
                    amongst [ParseTree-2.1.1, RubyInline-3.11.3,
                    ZenTest-4.8.2, addressable-2.2.8, autotest-4.4.6,
                    bacon-1.1.0, bouncy-castle-java-1.5.0146.1,
                    bundle-0.0.1, bundler-1.0.22, cheat-1.3.0,
                    choice-0.1.6, dbi-0.4.5, debugger-1.2.2,
                    debugger-linecache-1.1.2,
                    debugger-ruby_core_source-1.1.5, deprecated-2.0.1,
                    diff-lcs-1.1.3, fuzzy-string-match_pure-0.9.3,
                    gem-man-0.3.0, git-1.2.5, hoe-3.2.0, htty-1.4.0,
                    jruby-openssl-0.7.7, launchy-2.1.0,
                    lolcommits-0.1.5, lucene-0.5.0.beta.1,
                    mime-types-1.19, net-ftp-list-3.2.3, net-sftp-2.0.5,
                    net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1,
                    rack-test-0.6.2, rb-appscript-0.6.1,
                    rb-fsevent-0.9.2, rbx-require-relative-0.0.9,
                    rdebug-0.1, rdiscount-1.6.8, redcar-0.13,
                    redcar-bundles-0.3, redcar-icons-0.3,
                    redcar-javamateview-0.2, redcar-jruby-0.1,
                    redcar-svnkit-0.2, rmagick-2.13.1, rspec-2.12.0,
                    rspec-core-2.12.0, rspec-core-2.11.1,
                    rspec-expectations-2.12.0,
                    rspec-expectations-2.11.3, rspec-mocks-2.12.0,
                    rspec-mocks-2.11.3, ruby-blockcache-0.2,
                    ruby2ruby-1.1.8, sake-1.0.15, spoon-0.0.1, swt-0.13,
                    yard-0.8.2.1] (Gem::LoadError)</font></div>
              </blockquote>
              <div><br>
              </div>
              <div>and indeed, when I run</div>
              <div><br>
              </div>
              <div>
                <blockquote style="margin: 0 0 0 40px; border: none;
                  padding: 0px;">
                  <div><font face="Courier">macgem list</font></div>
                </blockquote>
              </div>
              <div><br>
              </div>
              <div>there is no mac_bacon listed there. Do you know what
                else I'm missing here?</div>
              <div><br>
              </div>
              <div>Thanks,</div>
              <div><br>
              </div>
              <div>Stephen</div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div><br>
                <div>
                  <div>On 30/11/2012, at 17:52, Daniel Westendorf &lt;<a moz-do-not-send="true" href="mailto:daniel@prowestech.com">daniel@prowestech.com</a>&gt;
                    wrote:</div>
                  <br>
                  <blockquote type="cite">
                    <div>Stephen,
                      <div><br>
                      </div>
                      <div>It looks like MacBacon is using MRI Ruby, not
                        MacRuby. Did you install the gem using macgem?
                        You might have to uninstall any other versions
                        you've installed.</div>
                      <div><br>
                      </div>
                      <div>I never had much luck with RVM+MacRuby; I
                        always installed MacRuby using the installer
                        from the website. This might have been fixed
                        though.</div>
                      <div><br>
                      </div>
                      <div>dw<br>
                        <br>
                        <div>On Fri, Nov 30, 2012 at 10:46 AM, stephen
                          horne <span dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:fatste@gmail.com" target="_blank">fatste@gmail.com</a>&gt;</span>
                          wrote:<br>
                          <blockquote type="cite">
                            <div>
                              <div style="word-wrap:break-word">I'm
                                trying to get started with tdd and
                                MacRuby, but I've hit a stumbling block
                                immediately with macbacon. I suspect
                                it's something to do with rvm, but I'm
                                not sure.
                                <div><br>
                                </div>
                                <div>When I run macbacon like this:</div>
                                <div><br>
                                </div>
                                <div><span style="white-space:pre-wrap">
                                  </span><font face="Courier">$macbacon
                                    my_class_test.rb&nbsp;</font></div>
                                <div><br>
                                </div>
                                <div>I get the following error
                                  backtrace:</div>
                                <div><br>
                                </div>
                                <blockquote style="margin:0 0 0
                                  40px;border:none;padding:0px">
                                  <div>
                                    <div><font face="Courier">/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
                                        `require':
                                        /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
                                        syntax error, unexpected tLABEL
                                        (SyntaxError)</font></div>
                                  </div>
                                  <div><font face="Courier">...eForKeyPath(key_path,
                                      ofObject:object, change:_,
                                      context:__)</font></div>
                                  <div><font face="Courier">... &nbsp; &nbsp; &nbsp; &nbsp;
                                      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</font></div>
                                  <div>
                                    <div><font face="Courier">/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
                                        class definition in method body</font></div>
                                  </div>
                                  <div><font face="Courier">/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
                                      syntax error, unexpected
                                      keyword_end, expecting $end</font></div>
                                  <div>
                                    <div><span style="white-space:pre-wrap"><font face="Courier"> </font></span></div>
                                    <font face="Courier">from
                                      /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
                                      `require'</font></div>
                                  <div>
                                    <div><span style="white-space:pre-wrap"><font face="Courier"> </font></span></div>
                                    <font face="Courier">from
                                      /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
                                      `&lt;top (required)&gt;'</font></div>
                                  <div>
                                    <div><span style="white-space:pre-wrap"><font face="Courier"> </font></span></div>
                                    <font face="Courier">from
                                      /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in
                                      `load'</font></div>
                                  <div>
                                    <div><span style="white-space:pre-wrap"><font face="Courier"> </font></span></div>
                                    <font face="Courier">from
                                      /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in
                                      `&lt;main&gt;'</font></div>
                                  <div><br>
                                  </div>
                                </blockquote>
                                Can anyone see what's wrong with my
                                setup?
                                <div><br>
                                </div>
                                <div>Thanks.<br>
                                  <div>
                                    <div>
                                      <div>--</div>
                                      <div>Stephen Horne</div>
                                    </div>
                                    <br>
                                  </div>
                                </div>
                              </div>
                              <br>
_______________________________________________<br>
                              MacRuby-devel mailing list<br>
                              <a moz-do-not-send="true" href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a><br>
                              <a moz-do-not-send="true" href="http://lists.macosforge.org/mailman/listinfo/macruby-devel" target="_blank">http://lists.macosforge.org/mailman/listinfo/macruby-devel</a><br>
                              <br>
                            </div>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      _______________________________________________<br>
                      MacRuby-devel mailing list<br>
                      <a moz-do-not-send="true" href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a><br>
                      <a moz-do-not-send="true" href="http://lists.macosforge.org/mailman/listinfo/macruby-devel">http://lists.macosforge.org/mailman/listinfo/macruby-devel</a><br>
                    </div>
                  </blockquote>
                </div>
                <br>
                <div>
                  <div>--</div>
                  <div>Stephen Horne</div>
                </div>
                <br>
              </div>
            </div>
            <div>
              <div>_______________________________________________</div>
              <div>MacRuby-devel mailing list</div>
              <div><a moz-do-not-send="true" href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a></div>
              <div><a moz-do-not-send="true" href="http://lists.macosforge.org/mailman/listinfo/macruby-devel">http://lists.macosforge.org/mailman/listinfo/macruby-devel</a></div>
            </div>
          </div>
        </span> </blockquote>
      <div> <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
MacRuby-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a>
<a class="moz-txt-link-freetext" href="http://lists.macosforge.org/mailman/listinfo/macruby-devel">http://lists.macosforge.org/mailman/listinfo/macruby-devel</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>MacRuby-devel mailing list<br><a href="mailto:MacRuby-devel@lists.macosforge.org">MacRuby-devel@lists.macosforge.org</a><br>http://lists.macosforge.org/mailman/listinfo/macruby-devel<br></blockquote></div><br><div>
<div>--</div><div>Stephen Horne</div>

</div>
<br></div></div></body></html>