First, note that any Export in Lightroom is a RAW conversion***. So, attempting to get organization data from an export will result in getting that data into the JPG, but losing it in the RAW.

A better solution is to use Smart Collections, and have them be generated on metadata that can be associated with both RAW and JPEG.  Collections are convenient to create via drag and drop, so creating Smart Collections involves more work. So I create Collections first, then create metadata tags for those images in the Collection, then create a Smart Collection from the tags, I then delete the Collection.

This way, XMP sidecars associated from your RAW images contain the metadata for another application to create equivalent of Smart Collections later, and your JPG images also contain this information in IPTC tags.

***Original JPEGs won't get RAW conversion of course

Bulk exporting/archiving collections in Lightroom
I'm running a Mac, using Terminal, working with Ruby on Rails.

I was trying to figure out where bundle install gemfiles on my machine. So I ran the command

bundle --path


and now it appears my machine does not know where any of my gem files are located. How do I restore it to it's original functionality?

Here is the error...

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/Users/theDanOtto/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
/Users/theDanOtto/.rvm/rubies/ruby-2.1.2/bin/ruby: invalid option -D  (-h will show valid options) (RuntimeError)

extconf failed, exit code 1

Gem files will remain installed in /Users/theDanOtto/Dropbox/Sites/Current Development/ClashOfClanV2/path/ruby/2.1.0/gems/json-1.8.3 for inspection.

