aws-sdk 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,7 @@ require 'aws/core/autoloader'
58
58
  module AWS
59
59
 
60
60
  # Current version of the AWS SDK for Ruby
61
- VERSION = "1.3.3"
61
+ VERSION = "1.3.4"
62
62
 
63
63
  register_autoloads(self) do
64
64
  autoload :Errors, 'errors'
@@ -26,7 +26,6 @@ module AWS
26
26
  base_error_grammar = self::BASE_ERROR_GRAMMAR
27
27
  mod = self::ERROR_MODULE
28
28
  const_missing_mutex.synchronize do
29
- return if const_defined?(name)
30
29
  const_set(name,
31
30
  Class.new(self::Base) do
32
31
  include mod::ModeledError
@@ -40,7 +39,7 @@ module AWS
40
39
  end
41
40
 
42
41
  def error_class(code)
43
- module_eval(code.gsub(".","::"))
42
+ module_eval("#{self}::#{code.gsub(".","::")}")
44
43
  end
45
44
 
46
45
  def included(mod)
@@ -512,10 +512,15 @@ module AWS
512
512
  # @param [String] name Defaults to the name of this class.
513
513
  # @return [String] Returns the full prefixed domain name for this class.
514
514
  def shard_name name = nil
515
- name = @_shard_name if name.nil?
516
- name = self.name if name.nil?
517
- name = name.name if name.is_a?(Core::Model) # sdb domain or ddb table
518
- name
515
+ case name
516
+ when nil
517
+ @_shard_name || self.name
518
+ when AWS::DynamoDB::Table
519
+ name.name.gsub(/^#{Record::table_prefix}/, '')
520
+ when AWS::SimpleDB::Domain
521
+ name.name.gsub(/^#{Record::domain_prefix}/, '')
522
+ else name
523
+ end
519
524
  end
520
525
  alias_method :domain_name, :shard_name
521
526
 
metadata CHANGED
@@ -1,92 +1,66 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.4
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 3
10
- version: 1.3.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Amazon Web Services
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-02 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-02-09 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: uuidtools
16
+ requirement: &2178333900 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 1
29
- segments:
30
- - 2
31
- - 1
32
- version: "2.1"
33
- name: uuidtools
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- prerelease: false
20
+ - !ruby/object:Gem::Version
21
+ version: '2.1'
37
22
  type: :runtime
38
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *2178333900
25
+ - !ruby/object:Gem::Dependency
26
+ name: httparty
27
+ requirement: &2178333160 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 5
44
- segments:
45
- - 0
46
- - 7
47
- version: "0.7"
48
- name: httparty
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- prerelease: false
31
+ - !ruby/object:Gem::Version
32
+ version: '0.7'
52
33
  type: :runtime
53
- requirement: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *2178333160
36
+ - !ruby/object:Gem::Dependency
37
+ name: nokogiri
38
+ requirement: &2178332320 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 15
59
- segments:
60
- - 1
61
- - 4
62
- - 4
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
63
43
  version: 1.4.4
64
- name: nokogiri
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- prerelease: false
68
44
  type: :runtime
69
- requirement: &id004 !ruby/object:Gem::Requirement
45
+ prerelease: false
46
+ version_requirements: *2178332320
47
+ - !ruby/object:Gem::Dependency
48
+ name: json
49
+ requirement: &2178331680 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
51
+ requirements:
72
52
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 7
75
- segments:
76
- - 1
77
- - 4
78
- version: "1.4"
79
- name: json
80
- version_requirements: *id004
53
+ - !ruby/object:Gem::Version
54
+ version: '1.4'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2178331680
81
58
  description: AWS SDK for Ruby
82
59
  email:
83
60
  executables: []
84
-
85
61
  extensions: []
86
-
87
62
  extra_rdoc_files: []
88
-
89
- files:
63
+ files:
90
64
  - ca-bundle.crt
91
65
  - rails/init.rb
92
66
  - lib/aws/core/api_config.rb
@@ -390,37 +364,31 @@ files:
390
364
  - NOTICE.txt
391
365
  - LICENSE.txt
392
366
  homepage: http://aws.amazon.com/sdkforruby
393
- licenses:
367
+ licenses:
394
368
  - Apache 2.0
395
369
  post_install_message:
396
370
  rdoc_options: []
397
-
398
- require_paths:
371
+ require_paths:
399
372
  - lib
400
- required_ruby_version: !ruby/object:Gem::Requirement
373
+ required_ruby_version: !ruby/object:Gem::Requirement
401
374
  none: false
402
- requirements:
403
- - - ">="
404
- - !ruby/object:Gem::Version
405
- hash: 3
406
- segments:
375
+ requirements:
376
+ - - ! '>='
377
+ - !ruby/object:Gem::Version
378
+ version: '0'
379
+ segments:
407
380
  - 0
408
- version: "0"
409
- required_rubygems_version: !ruby/object:Gem::Requirement
381
+ hash: 2879492431833111040
382
+ required_rubygems_version: !ruby/object:Gem::Requirement
410
383
  none: false
411
- requirements:
412
- - - ">="
413
- - !ruby/object:Gem::Version
414
- hash: 3
415
- segments:
416
- - 0
417
- version: "0"
384
+ requirements:
385
+ - - ! '>='
386
+ - !ruby/object:Gem::Version
387
+ version: '0'
418
388
  requirements: []
419
-
420
389
  rubyforge_project:
421
390
  rubygems_version: 1.8.15
422
391
  signing_key:
423
392
  specification_version: 3
424
393
  summary: AWS SDK for Ruby
425
394
  test_files: []
426
-