fog-maestrodev 1.18.0.20131111203459 → 1.18.0.20131112185232

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjkyMTAwNDU4NjRjYjA4Y2Q2MWNlMzNlYjQ4NzliOTg1NjI3YWE2Mw==
4
+ NzYxNjdjNWQwMjZlYmQyNGZmYmUxZGJlZDdlMjE3NDBmNjQ1MjgyOQ==
5
5
  data.tar.gz: !binary |-
6
- MzA1YmQ5MzA5YTM5YjdlOTYwNWUzMTk3NjRkNTQ3NzMxYzhkN2UwOA==
6
+ ODYyZTAzNTZiNWZhYzc1YzI1YmQyMTQyYzQ1Yjk1NWEwN2Y1OGE1OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjY0MzYzYmNjMDhjMjA1MWI3ZTVmMjI0YzE4NTc2NDE1NWFlOWVjY2FlNWM4
10
- MzljYjY2NDQxNDRjOGQ4NGY4NmYyY2Y5NzZkNzRmNTc2YzI3NzViZjNjNzA5
11
- MTM2NTJmZGM2YzE4ODlhNjM2ZjY0MTRlY2MwY2NkYzMzZmFjYjA=
9
+ NmFlYzY1NDkwY2UwMjUxZjliYTk1MDI0MDQwNjQ5OTZkOWFiNDc0NTZhODA3
10
+ MDBmMTI1NzIzZjI2NDAyOGRkMmE1MzAwOTk0NDc2MjM5ZmEwOWQyYjUwYjFh
11
+ MGE5ZjViN2Y5YTJlMzAyNDdhZWNlNTg0ODZkMTM5NWE4NDlkNjE=
12
12
  data.tar.gz: !binary |-
13
- MDVhMjBhMWU5YmEyOGNlYWU4NjM2YzMzN2RlZjM4YjNlNzkxMjllMjA4MThj
14
- OWFkNzNiZjY1YjFiMjhhMTBiN2RjNjQ2MGQ1ZjI5YWYyNjQ3NWNiYTE1NjJk
15
- ZmI4NDU3ZGY0NmRjNjNhNDZhYTY5NjI5NmY1ZGU2ZDFjNGNiMDQ=
13
+ ZmM3ZDc3ZGNhZmU2YzBmYjY0OTY5MDkyMWFiYmFkZTFmM2U5MjIwNTU2ZjYy
14
+ YzlhZWZhNjY4OTE0ZDQ1NjhmNjFjMGUzYzg2MDkzNmU5ZjljNTY0YmZkMzBk
15
+ ZDBjMDdjZjFhOTkxZWM3ZTRmZTQ5MWQ2NjQwY2Q1OWVlNTgyMjE=
data/fog.gemspec CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'fog-maestrodev'
9
- s.version = '1.18.0.20131111203459'
10
- s.date = '2013-11-11'
9
+ s.version = '1.18.0.20131112185232'
10
+ s.date = '2013-11-12'
11
11
  s.rubyforge_project = 'fog'
12
12
 
13
13
  ## Make sure your summary is short. The description may be as long
@@ -43,7 +43,7 @@ module Fog
43
43
  options = {}
44
44
  for key in ['ExecutableBy', 'ImageId', 'Owner']
45
45
  if filters.is_a?(Hash) && filters.key?(key)
46
- options[key] = filters.delete(key)
46
+ options.merge!(Fog::AWS.indexed_request_param(key, filters.delete(key)))
47
47
  end
48
48
  end
49
49
  params = Fog::AWS.indexed_filters(filters).merge!(options)
@@ -60,6 +60,51 @@ module Fog
60
60
  end
61
61
 
62
62
  end
63
+
64
+ class Mock
65
+
66
+ def list_resource_record_sets(zone_id, options = {})
67
+ maxitems = [options[:max_items]||100,100].min
68
+
69
+ zone = self.data[:zones][zone_id]
70
+ if options[:type]
71
+ records = zone[:records][options[:type]].values
72
+ else
73
+ records = zone[:records].values.first.values
74
+ end
75
+
76
+ if options[:name]
77
+ name = options[:name].gsub(zone[:name],"")
78
+ records = records.select{|r| r[:name].gsub(zone[:name],"") >= name }
79
+ end
80
+
81
+ next_records = records[maxitems]
82
+ records = records[0, maxitems]
83
+ truncated = !next_records.nil?
84
+
85
+ response = Excon::Response.new
86
+ response.status = 200
87
+ response.body = {
88
+ 'ResourceRecordSets' => records.map do |r|
89
+ {
90
+ 'ResourceRecords' => r[:resource_records],
91
+ 'Name' => r[:name],
92
+ 'Type' => r[:type],
93
+ 'TTL' => r[:ttl]
94
+ }
95
+ end,
96
+ 'MaxItems' => maxitems.to_s,
97
+ 'IsTruncated' => truncated.to_s
98
+ }
99
+
100
+ if truncated
101
+ response.body['NextMarker'] = next_records[:id]
102
+ end
103
+
104
+ response
105
+ end
106
+
107
+ end
63
108
  end
64
109
  end
65
110
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-maestrodev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0.20131111203459
4
+ version: 1.18.0.20131112185232
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-11 00:00:00.000000000 Z
11
+ date: 2013-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder