Details

    • Type: Improvement
    • Status: In Progress (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: ruby-plugin
    • Labels:
      None
    • Environment:
      Platform: Macintosh, OS: All
    • Similar Issues:

      Description

      Stapler now supports Ruby. The attached patch allows Hudson to take advantage of
      that support.

        Attachments

          Activity

          Hide
          purp purp added a comment -

          Created an attachment (id=927)
          Patch to add Ruby as valid API target

          Show
          purp purp added a comment - Created an attachment (id=927) Patch to add Ruby as valid API target
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Are you the one who submitted
          https://stapler.dev.java.net/issues/show_bug.cgi?id=10 ?

          I've already applied your change in STAPLER-10, but I now wonder if it's better
          to use ostruct, instead of Hash. That is,

          OpenStruct.new(

          { "x" => 1, "y" => 2 })

          instead of:

          { "x" => 1, "y" => 2 }

          Since this will affect what the user sees rather profoundly, I'd like to get
          this right before exposing the Ruby API support.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Are you the one who submitted https://stapler.dev.java.net/issues/show_bug.cgi?id=10 ? I've already applied your change in STAPLER-10, but I now wonder if it's better to use ostruct, instead of Hash. That is, OpenStruct.new( { "x" => 1, "y" => 2 }) instead of: { "x" => 1, "y" => 2 } Since this will affect what the user sees rather profoundly, I'd like to get this right before exposing the Ruby API support.
          Hide
          purp purp added a comment -

          Thought about it a bit. I think I'm still in favor of the hash as it's a native
          datatype and more broadly understood. What advantages do you see in returning an
          OpenStruct?

          Show
          purp purp added a comment - Thought about it a bit. I think I'm still in favor of the hash as it's a native datatype and more broadly understood. What advantages do you see in returning an OpenStruct?

            People

            • Assignee:
              vivekp vivekp
              Reporter:
              purp purp
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: