Project

General

Profile

« Previous | Next » 

Revision 5f31bca4

Added by Greg Sutcliffe about 10 years ago

Update nokogiri gem when installing deface-based plugins

deface < 1.0 has a dependency on ~> 1.5.0 which conflicts
with the 1.6.x gem installed by default in core.

View differences:

plugins/ruby-foreman-column-view/debian/changelog
ruby-foreman-column-view (0.2.0-1) stable; urgency=low
* Update nokogiri on install
-- Greg Sutcliffe <gsutclif@redhat.com> Tue, 20 May 2014 21:23:00 +0000
ruby-foreman-column-view (0.2.0) unstable; urgency=low
* Release 0.2.0
plugins/ruby-foreman-column-view/debian/postinst
# Update gems
cd /usr/share/foreman
# Nokogiri causes us pain due to tight dependencies within deface
# so update it first. We rescue it as trusty will return non-zero if
# nokogiri isn't in the Gemfile.
if [ ! -z "${DEBUG}" ]; then
bundle update nokogiri || true
bundle update foreman_column_view
else
bundle update nokogiri 2>&1 >> $LOGFILE || true
bundle update foreman_column_view 2>&1 >> $LOGFILE
fi
plugins/ruby-foreman-dhcp-browser/debian/changelog
ruby-foreman-dhcp-browser (0.0.4-1) stable; urgency=low
* Update nokogiri on install
-- Greg Sutcliffe <gsutclif@redhat.com> Tue, 20 May 2014 21:23:00 +0000
ruby-foreman-dhcp-browser (0.0.4) stable; urgency=low
* Initial Release.
plugins/ruby-foreman-dhcp-browser/debian/postinst
# Update gems
cd /usr/share/foreman
# Nokogiri causes us pain due to tight dependencies within deface
# so update it first. We rescue it as trusty will return non-zero if
# nokogiri isn't in the Gemfile.
if [ ! -z "${DEBUG}" ]; then
bundle update nokogiri || true
bundle update foreman_dhcp_browser
else
bundle update nokogiri 2>&1 >> $LOGFILE || true
bundle update foreman_dhcp_browser 2>&1 >> $LOGFILE
fi
plugins/ruby-foreman-discovery/debian/changelog
ruby-foreman-discovery (1.3.0~rc2-1) stable; urgency=low
* Update nokogiri on install
-- Greg Sutcliffe <gsutclif@redhat.com> Tue, 20 May 2014 21:23:00 +0000
ruby-foreman-discovery (1.3.0~rc2) unstable; urgency=low
* Update to 1.3.0 rc2
plugins/ruby-foreman-discovery/debian/postinst
# Update gems
cd /usr/share/foreman
# Nokogiri causes us pain due to tight dependencies within deface
# so update it first. We rescue it as trusty will return non-zero if
# nokogiri isn't in the Gemfile.
if [ ! -z "${DEBUG}" ]; then
bundle update nokogiri || true
bundle update foreman_discovery
else
bundle update nokogiri 2>&1 >> $LOGFILE || true
bundle update foreman_discovery 2>&1 >> $LOGFILE
fi
plugins/ruby-foreman-setup/debian/changelog
ruby-foreman-setup (2.0.4-1) stable; urgency=low
* Update nokogiri on install
-- Greg Sutcliffe <gsutclif@redhat.com> Tue, 20 May 2014 21:23:00 +0000
ruby-foreman-setup (2.0.4) stable; urgency=low
* Release 2.0.4
plugins/ruby-foreman-setup/debian/postinst
# Update gems
cd /usr/share/foreman
# Nokogiri causes us pain due to tight dependencies within deface
# so update it first. We rescue it as trusty will return non-zero if
# nokogiri isn't in the Gemfile.
if [ ! -z "${DEBUG}" ]; then
bundle update nokogiri || true
if bundle show $PLUGIN >/dev/null 2>&1; then
bundle update $PLUGIN
else
bundle install
fi
else
bundle update nokogiri 2>&1 >> $LOGFILE || true
if bundle show $PLUGIN >/dev/null 2>&1; then
bundle update $PLUGIN 2>&1 >> $LOGFILE
else

Also available in: Unified diff