fog 0.0.37 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -96,23 +96,3 @@ begin
96
96
  rescue LoadError
97
97
  puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
98
98
  end
99
-
100
- namespace :fog do
101
-
102
- desc 'Provide a sample yaml file for credentials'
103
- task :yml do
104
- puts('Copy the following sample to ~/.fog and fill in with your credentials as needed:')
105
- yml = <<YML
106
-
107
- :default:
108
- :aws_access_key_id: INTENTIONALLY_LEFT_BLANK
109
- :aws_secret_access_key: INTENTIONALLY_LEFT_BLANK
110
- :rackspace_api_key: INTENTIONALLY_LEFT_BLANK
111
- :rackspace_username: INTENTIONALLY_LEFT_BLANK
112
- :slicehost_password: INTENTIONALLY_LEFT_BLANK
113
-
114
- YML
115
- print(yml)
116
- end
117
-
118
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.37
1
+ 0.0.38
data/bin/fog CHANGED
@@ -7,6 +7,18 @@ module AWS
7
7
  class << self
8
8
  key = (ARGV.first && :"#{ARGV.first}") || :default
9
9
  unless Fog.credentials(key)
10
+ print("\n To run as '#{key}', add credentials like the following to ~/.fog\n")
11
+ yml = <<-YML
12
+
13
+ :#{key}:
14
+ :aws_access_key_id: INTENTIONALLY_LEFT_BLANK
15
+ :aws_secret_access_key: INTENTIONALLY_LEFT_BLANK
16
+ :rackspace_api_key: INTENTIONALLY_LEFT_BLANK
17
+ :rackspace_username: INTENTIONALLY_LEFT_BLANK
18
+ :slicehost_password: INTENTIONALLY_LEFT_BLANK
19
+
20
+ YML
21
+ print(yml)
10
22
  raise ArgumentError.new("No credentials for :#{key}")
11
23
  end
12
24
  if Fog.credentials(key)[:aws_access_key_id] && Fog.credentials(key)[:aws_secret_access_key]
@@ -57,6 +69,18 @@ module Rackspace
57
69
  class << self
58
70
  key = (ARGV.first && :"#{ARGV.first}") || :default
59
71
  unless Fog.credentials(key)
72
+ print("\n To run as '#{key}', add credentials like the following to ~/.fog\n")
73
+ yml = <<-YML
74
+
75
+ :#{key}:
76
+ :aws_access_key_id: INTENTIONALLY_LEFT_BLANK
77
+ :aws_secret_access_key: INTENTIONALLY_LEFT_BLANK
78
+ :rackspace_api_key: INTENTIONALLY_LEFT_BLANK
79
+ :rackspace_username: INTENTIONALLY_LEFT_BLANK
80
+ :slicehost_password: INTENTIONALLY_LEFT_BLANK
81
+
82
+ YML
83
+ print(yml)
60
84
  raise ArgumentError.new("No credentials for :#{key}")
61
85
  end
62
86
  if Fog.credentials(key)[:rackspace_api_key] && Fog.credentials(key)[:rackspace_username]
data/fog.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fog}
8
- s.version = "0.0.37"
8
+ s.version = "0.0.38"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["geemus (Wesley Beary)"]
12
- s.date = %q{2009-12-18}
12
+ s.date = %q{2009-12-24}
13
13
  s.default_executable = %q{fog}
14
14
  s.description = %q{brings clouds to you}
15
15
  s.email = %q{me@geemus.com}
@@ -15,7 +15,7 @@ module Fog
15
15
  def all(options = {})
16
16
  collection = bucket.collection.get(
17
17
  bucket.name,
18
- options.reject {|key, value| !['delimiter', 'marker', 'max-keys', 'prefix'].include?(key)}
18
+ options
19
19
  )
20
20
  collection && collection.objects
21
21
  end
@@ -39,7 +39,7 @@ unless Fog.mocking?
39
39
  end
40
40
  query = ''
41
41
  for key, value in options
42
- query << "#{key}=#{value};"
42
+ query << "#{key}=#{CGI.escape(value).gsub(/\+/, '%20')};"
43
43
  end
44
44
  query.chop!
45
45
  request({
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-18 00:00:00 -08:00
12
+ date: 2009-12-24 00:00:00 -08:00
13
13
  default_executable: fog
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency