Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-154

Added package tasks for creating Rails plugin and namespaced both the rails and gem packaging

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients - ruby - flare
    • Labels:
      None
    • Environment:

      Ruby and Ruby on Rails

      Description

      Solrb's (sol.rb's?) rake file has a package:vendor task that is not generating proper rails plugin structure. Rather than just fix this, I've added a PackageTask to package up a proper Rails plugin directory structure and also build distributable packages. Included are the README, LICENSE.txt, and init.rb generated and destroyed on the fly. Also, I've namespaced the Gem PackageTask and the Rails PackageTask, so the commands:

      rake rails:package (and repackage, clobber, clobber_package)
      rake gem:package (and the rest...)

      package their files up and dump them into pkg/rails and pkg/gem, respectively. Their clobber tasks will only remove the sub-directory under pkg/, not pkg/ itself.

      rake package, rake repackage run both package tasks, while rake clobber and rake clobber_package remove the complete pkg/ directory.

        Attachments

        1. Rakefile_2.diff
          2 kB
          Jamie Orchard-Hays
        2. Rakefile.diff
          2 kB
          Jamie Orchard-Hays
        3. solrb_vendor_package.diff
          1 kB
          Coda Hale

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamieorc Jamie Orchard-Hays
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: