Sha256: 4e2f0452821d0b9262dee24c319d20962937309a68c30af508a83a7f6dcbd054

Contents?: true

Size: 592 Bytes

Versions: 29

Compression:

Stored size: 592 Bytes

Contents

#!/usr/bin/env bash

printf "\nBeginning snapshot of the current environment gem list into snapshot.gems\n"

file_name="snapshot.gems"

gems=($(gem list | sed 's#[\(|\)]##g' | sed 's#, #,#g' | \tr ' ' ';'))

for gem in "${gems[@]}" ; do

  name="$(echo $gem | awk -F';' '{print $1}')"

  versions=($(echo $gem | awk -F';' '{print $2}' | sed 's#,# #g'))

  for version in "${versions[@]}" ; do

    echo "$name -v$version" >> "$file_name"

  done ; unset version versions

done ; unset file_name

printf "\nCompleted snapshot of the current environment gem list into snapshot.gems\n"

exit $?

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
rvm-1.1.4 contrib/gemset_snapshot
rvm-1.1.3 contrib/gemset_snapshot
rvm-1.1.2 contrib/gemset_snapshot
rvm-1.1.1 contrib/gemset_snapshot
rvm-1.1.0 contrib/gemset_snapshot
rvm-1.0.23 contrib/gemset_snapshot
rvm-1.0.22 contrib/gemset_snapshot
rvm-1.0.21 contrib/gemset_snapshot
rvm-1.0.20 contrib/gemset_snapshot
rvm-1.0.19 contrib/gemset_snapshot
rvm-1.0.18 contrib/gemset_snapshot
rvm-1.0.17 contrib/gemset_snapshot
rvm-1.0.15 contrib/gemset_snapshot
gemrage-1.0.0 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot
gemrage-0.4.1 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot
gemrage-0.4.0 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot
gemrage-0.3.2 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot
gemrage-0.3.1 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot
gemrage-0.3.0 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot
gemrage-0.2.0 vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot