debian/0000755000000000000000000000000012266000141007156 5ustar debian/rules0000755000000000000000000000012212265762617010257 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --buildsystem=ruby --with ruby debian/watch0000644000000000000000000000013312265762617010232 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/fog .*/fog-(.*).tar.gz debian/source/0000755000000000000000000000000012265762617010504 5ustar debian/source/format0000644000000000000000000000001412265762617011712 0ustar 3.0 (quilt) debian/require-rubygems.overrides0000644000000000000000000000425312265762617014443 0ustar --- - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/vmfusion/compute.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/create_cdn_directory.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/storage_metadata.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/download_file.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/create_private_directory.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/delete_file.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/upload_large_files.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/delete_directory.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/storage/upload_file.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/server_metadata.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/create_image.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/resize_server.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/delete_image.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/delete_server.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/server_attachments.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/detach_volume.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/compute_v2/create_server.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/block_storage/delete_volume.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/block_storage/create_volume.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/rackspace/examples/block_storage/create_snapshot.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/libvirt/compute.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/bin/google.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/bin/vmfusion.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/bin/libvirt.rb - debian/ruby-fog/usr/lib/ruby/vendor_ruby/fog/openstack/examples/image/upload-test-image.rb debian/copyright0000644000000000000000000001153212265762617011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fog Source: http://fog.io/ Files: * Copyright: 2010 Wesley Beary License: Expat Files: docs/public/js/libs/dd_belatedpng.* Copyright: 2009 Drew Diller License: Expat Files: docs/public/js/libs/jquery-1.4.2.* Copyright: 2010 John Resig License: Expat or GPL-2 Files: docs/public/js/libs/modernizr-1.6.* Copyright: 2009-2010 Faruk Ates 2009-2010 Paul Irish License: Expat or BSD-3-clause Files: docs/public/js/profiling/yahoo-profiling.* Copyright: 2009, Yahoo! Inc. All rights reserved. License: BSD-3-clause License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: BSD-3-clause Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . Neither the name of the organization nor the names of it's contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo! Inc. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2012 Laurent Bigonville License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000224712265773201010603 0ustar Source: ruby-fog Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Laurent Bigonville Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-fog.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-fog.git;a=summary Homepage: http://fog.io/ XS-Ruby-Versions: all Package: ruby-fog Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ruby | ruby-interpreter, ruby-builder, ruby-excon (>= 0.23.0), ruby-formatador (>= 0.2.0), ruby-hmac, ruby-mime-types, ruby-multi-json (>= 1.0), ruby-net-scp (>= 1.1), ruby-net-ssh (>= 1:2.1.3), ruby-nokogiri (>= 1.5.0), ${misc:Depends}, ${shlibs:Depends} Recommends: ruby-libvirt Description: Ruby cloud services library Fog supports all major cloud providers including AWS, Rackspace, Linode, Blue Box, StormOnDemand, and many others. . Full support for most AWS services including EC2, S3, CloudWatch, SimpleDB, ELB and RDS. debian/patches/0000755000000000000000000000000012265777240010631 5ustar debian/patches/fog_import.patch0000644000000000000000000000055412265766632014026 0ustar Description: Fix require of 'fog' to look in system path Author: Laurent Bigonville Forwarded: not-needed Last-Update: 2014-01-16 --- a/bin/fog +++ b/bin/fog @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'fog')) +require 'fog' require 'optparse' require 'irb' require 'yaml' debian/patches/remove_rubygems_examples.patch0000644000000000000000000002365312265777240016773 0ustar Description: remove rubygems from examples it is not needed since Debian Jessie+ has only ruby1.9+ which loads automatically rubygems. Author: Cédric Boutillier Last-Update: 2014-01-16 --- a/lib/fog/rackspace/examples/block_storage/create_snapshot.rb +++ b/lib/fog/rackspace/examples/block_storage/create_snapshot.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a snapshot from a Cloud Block Storage volume with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/block_storage/create_volume.rb +++ b/lib/fog/rackspace/examples/block_storage/create_volume.rb @@ -2,7 +2,6 @@ # This example demonstrates creating Cloud Block Storage volume with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/block_storage/delete_volume.rb +++ b/lib/fog/rackspace/examples/block_storage/delete_volume.rb @@ -2,7 +2,6 @@ # This example demonstrates deleting Cloud Block Storage volume with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/bootstrap_server.rb +++ b/lib/fog/rackspace/examples/compute_v2/bootstrap_server.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a server with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' require 'base64' #required to encode files for personality functionality require 'sshkey' #required to generate ssh keys. 'gem install sshkey' --- a/lib/fog/rackspace/examples/compute_v2/create_image.rb +++ b/lib/fog/rackspace/examples/compute_v2/create_image.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a server image with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/create_network.rb +++ b/lib/fog/rackspace/examples/compute_v2/create_network.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a private network and attaching it to a new server with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' # UUID for INTERNET --- a/lib/fog/rackspace/examples/compute_v2/create_server.rb +++ b/lib/fog/rackspace/examples/compute_v2/create_server.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a server with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' require "base64" #required to encode files for personality functionality --- a/lib/fog/rackspace/examples/compute_v2/delete_image.rb +++ b/lib/fog/rackspace/examples/compute_v2/delete_image.rb @@ -2,7 +2,6 @@ # This example demonstrates deleting a server image with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/delete_network.rb +++ b/lib/fog/rackspace/examples/compute_v2/delete_network.rb @@ -2,7 +2,6 @@ # This example demonstrates deletes a private network and attaching it to a new server with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def wait_for_server_deletion(server) @@ -75,4 +74,4 @@ network = service.networks.find {|n| n.label == 'my_private_net'} delete_network(network) -puts "The network '#{network.label}' has been successfully deleted" \ No newline at end of file +puts "The network '#{network.label}' has been successfully deleted" --- a/lib/fog/rackspace/examples/compute_v2/delete_server.rb +++ b/lib/fog/rackspace/examples/compute_v2/delete_server.rb @@ -2,7 +2,6 @@ # This example demonstrates how to delete servers with Fog and the Rackspace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/detach_volume.rb +++ b/lib/fog/rackspace/examples/compute_v2/detach_volume.rb @@ -2,7 +2,6 @@ # This example demonstrates working with server and volumes on the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/resize_server.rb +++ b/lib/fog/rackspace/examples/compute_v2/resize_server.rb @@ -2,7 +2,6 @@ # This example demonstrates how to resize servers with Fog and the Rackspace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/server_attachments.rb +++ b/lib/fog/rackspace/examples/compute_v2/server_attachments.rb @@ -2,7 +2,6 @@ # This example demonstrates working with server and volumes on the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/compute_v2/server_metadata.rb +++ b/lib/fog/rackspace/examples/compute_v2/server_metadata.rb @@ -2,7 +2,6 @@ # This example demonstrates working with server metadata on the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require './lib/fog' # Use username defined in ~/.fog file, if absent prompt for username. --- a/lib/fog/rackspace/examples/queues/claim_messages.rb +++ b/lib/fog/rackspace/examples/queues/claim_messages.rb @@ -2,7 +2,6 @@ # This example demonstrates claiming messages with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/queues/create_queue.rb +++ b/lib/fog/rackspace/examples/queues/create_queue.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a queue with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/queues/delete_message.rb +++ b/lib/fog/rackspace/examples/queues/delete_message.rb @@ -2,7 +2,6 @@ # This example demonstrates deleting a message with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/queues/delete_queue.rb +++ b/lib/fog/rackspace/examples/queues/delete_queue.rb @@ -2,7 +2,6 @@ # This example demonstrates deleting a queue with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/queues/list_messages.rb +++ b/lib/fog/rackspace/examples/queues/list_messages.rb @@ -2,7 +2,6 @@ # This example demonstrates listing messages in a queue with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) @@ -61,4 +60,4 @@ queue.messages.each do |message| puts message.inspect -end \ No newline at end of file +end --- a/lib/fog/rackspace/examples/queues/post_message.rb +++ b/lib/fog/rackspace/examples/queues/post_message.rb @@ -2,7 +2,6 @@ # This example demonstrates posting a message to a queue with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/storage/create_cdn_directory.rb +++ b/lib/fog/rackspace/examples/storage/create_cdn_directory.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a container with CDN on the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/storage/create_private_directory.rb +++ b/lib/fog/rackspace/examples/storage/create_private_directory.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a container with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) @@ -43,4 +42,4 @@ puts "\n Directory #{directory.key} was created." puts "To delete the container please execute the delete_directory.rb script\n\n" - \ No newline at end of file + --- a/lib/fog/rackspace/examples/storage/delete_directory.rb +++ b/lib/fog/rackspace/examples/storage/delete_directory.rb @@ -2,7 +2,6 @@ # This example demonstrates deleting a container with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/storage/delete_file.rb +++ b/lib/fog/rackspace/examples/storage/delete_file.rb @@ -2,7 +2,6 @@ # This example demonstrates deleting a file from a container with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/storage/download_file.rb +++ b/lib/fog/rackspace/examples/storage/download_file.rb @@ -2,7 +2,6 @@ # This example demonstrates downloading a file with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/storage/storage_metadata.rb +++ b/lib/fog/rackspace/examples/storage/storage_metadata.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a file on the CDN network with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' # Use username defined in ~/.fog file, if absent prompt for username. --- a/lib/fog/rackspace/examples/storage/upload_file.rb +++ b/lib/fog/rackspace/examples/storage/upload_file.rb @@ -2,7 +2,6 @@ # This example demonstrates creating a file on the CDN network with the Rackpace Open Cloud -require 'rubygems' #required for Ruby 1.8.x require 'fog' def get_user_input(prompt) --- a/lib/fog/rackspace/examples/storage/upload_large_files.rb +++ b/lib/fog/rackspace/examples/storage/upload_large_files.rb @@ -2,7 +2,6 @@ # This example demonstrates uploading large files in segments -require 'rubygems' #required for Ruby 1.8.x require 'fog' # Size of segment. The Rackspace cloud currently requires files larger than 5GB to be segmented so we will choose 5GB -1 for a size @@ -100,4 +99,4 @@ end end -NOTE \ No newline at end of file +NOTE debian/patches/series0000644000000000000000000000011412265772641012042 0ustar #add_missing_requires.patch fog_import.patch remove_rubygems_examples.patch debian/patches/add_missing_requires.patch0000644000000000000000000000121412265762617016052 0ustar Description: Add missing require to 'rubygems' Author: Laurent Bigonville Forwarded: yes --- a/lib/fog/bin/libvirt.rb +++ b/lib/fog/bin/libvirt.rb @@ -1,3 +1,5 @@ +require 'rubygems' + module Libvirt # deviates from other bin stuff to accomodate gem class << self --- a/lib/fog/bin/vmfusion.rb +++ b/lib/fog/bin/vmfusion.rb @@ -1,3 +1,5 @@ +require 'rubygems' + module Vmfusion # deviates from other bin stuff to accomodate gem class << self --- a/lib/fog/bin/google.rb +++ b/lib/fog/bin/google.rb @@ -1,3 +1,5 @@ +require 'rubygems' + module Google # deviates from other bin stuff to accomodate gem class << self debian/compat0000644000000000000000000000000212265762617010402 0ustar 7 debian/ruby-fog.docs0000644000000000000000000000001212265762617011601 0ustar README.md debian/changelog0000644000000000000000000000311112266000141011024 0ustar ruby-fog (1.19.0-1) unstable; urgency=low * Team upload [ Laurent Bigonville ] * debian/control: Use canonical URL in Vcs field [ Cédric Boutillier ] * Refresh fog_import.patch * Do not apply add_missing_requires.patch (not required anymore) * Add remove_rubygems_examples.patch (to remove rubygems from examples) * Drop rubygems from Depends, since it is shipped by Ruby1.9+ * Bump Standards-Version to 3.9.5 (no changes needed) -- Cédric Boutillier Thu, 16 Jan 2014 16:53:03 +0100 ruby-fog (1.12.1-1) unstable; urgency=low * New upstream release (Closes: #700449, #706225) - debian/control: Bump {build-}dependencies - debian/patches/add_missing_requires.patch: Refreshed - d/p/0001-Rename-dd_belatedpng.js-to-dd_belatedpng.min.js.patch, d/p/0002-Add-non-minified-javascript-files-used-in-docs-939.patch: Dropped, not needed anymore - debian/require-rubygems.overrides: Refreshed files list - debian/ruby-fog.docs: Adjust file list * debian/control: Bump Standards-Version to 3.9.4 (no further changes) -- Laurent Bigonville Sun, 07 Jul 2013 00:18:02 +0200 ruby-fog (1.3.1-2) unstable; urgency=low * debian/control: Run wrap-and-sort * Add missing non-minified javascript files, the 2 patches have been taken from upstream * Update debian/copyright file -- Laurent Bigonville Fri, 01 Jun 2012 13:18:17 +0200 ruby-fog (1.3.1-1) unstable; urgency=low * Initial release (Closes: #658858) -- Laurent Bigonville Fri, 11 May 2012 15:33:53 +0200