amazon_product 3.0.0.pre.1 → 3.0.0.pre.2

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.
@@ -1,7 +1,7 @@
1
1
  module AmazonProduct
2
2
  # An Amazon locale.
3
3
  class Locale
4
- # Available Amazon hosts.
4
+ # Amazon hosts.
5
5
  HOSTS = { :ca => 'ecs.amazonaws.ca',
6
6
  :cn => 'webservices.amazon.cn',
7
7
  :de => 'ecs.amazonaws.de',
@@ -11,6 +11,9 @@ module AmazonProduct
11
11
  :us => 'ecs.amazonaws.com',
12
12
  :uk => 'ecs.amazonaws.co.uk' }
13
13
 
14
+ # Country codes for Amazon locales.
15
+ LOCALES = HOSTS.keys
16
+
14
17
  # The Amazon Web Services access key.
15
18
  attr_accessor :key
16
19
 
@@ -21,7 +24,7 @@ module AmazonProduct
21
24
  attr_accessor :tag
22
25
 
23
26
  def initialize(locale)
24
- raise BadLocale unless HOSTS.has_key?(locale)
27
+ raise BadLocale unless LOCALES.include?(locale)
25
28
  @locale = locale
26
29
  end
27
30
 
@@ -0,0 +1,647 @@
1
+ !RBIX
2
+ 6235178746665710376
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 13
54
+ AmazonProduct
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 13
67
+ AmazonProduct
68
+ i
69
+ 29
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 1
76
+ 65
77
+ 49
78
+ 1
79
+ 3
80
+ 13
81
+ 99
82
+ 12
83
+ 7
84
+ 2
85
+ 12
86
+ 7
87
+ 3
88
+ 12
89
+ 65
90
+ 12
91
+ 49
92
+ 4
93
+ 4
94
+ 15
95
+ 49
96
+ 2
97
+ 0
98
+ 11
99
+ I
100
+ 6
101
+ I
102
+ 0
103
+ I
104
+ 0
105
+ I
106
+ 0
107
+ n
108
+ p
109
+ 5
110
+ x
111
+ 6
112
+ Locale
113
+ x
114
+ 10
115
+ open_class
116
+ x
117
+ 14
118
+ __class_init__
119
+ M
120
+ 1
121
+ n
122
+ n
123
+ x
124
+ 6
125
+ Locale
126
+ i
127
+ 162
128
+ 5
129
+ 66
130
+ 65
131
+ 7
132
+ 0
133
+ 44
134
+ 43
135
+ 1
136
+ 4
137
+ 8
138
+ 49
139
+ 2
140
+ 1
141
+ 13
142
+ 7
143
+ 3
144
+ 7
145
+ 4
146
+ 64
147
+ 49
148
+ 5
149
+ 2
150
+ 15
151
+ 13
152
+ 7
153
+ 6
154
+ 7
155
+ 7
156
+ 64
157
+ 49
158
+ 5
159
+ 2
160
+ 15
161
+ 13
162
+ 7
163
+ 8
164
+ 7
165
+ 9
166
+ 64
167
+ 49
168
+ 5
169
+ 2
170
+ 15
171
+ 13
172
+ 7
173
+ 10
174
+ 7
175
+ 11
176
+ 64
177
+ 49
178
+ 5
179
+ 2
180
+ 15
181
+ 13
182
+ 7
183
+ 12
184
+ 7
185
+ 13
186
+ 64
187
+ 49
188
+ 5
189
+ 2
190
+ 15
191
+ 13
192
+ 7
193
+ 14
194
+ 7
195
+ 15
196
+ 64
197
+ 49
198
+ 5
199
+ 2
200
+ 15
201
+ 13
202
+ 7
203
+ 16
204
+ 7
205
+ 17
206
+ 64
207
+ 49
208
+ 5
209
+ 2
210
+ 15
211
+ 13
212
+ 7
213
+ 18
214
+ 7
215
+ 19
216
+ 64
217
+ 49
218
+ 5
219
+ 2
220
+ 15
221
+ 49
222
+ 20
223
+ 2
224
+ 15
225
+ 65
226
+ 7
227
+ 21
228
+ 45
229
+ 0
230
+ 22
231
+ 49
232
+ 23
233
+ 0
234
+ 49
235
+ 20
236
+ 2
237
+ 15
238
+ 5
239
+ 7
240
+ 24
241
+ 47
242
+ 49
243
+ 25
244
+ 1
245
+ 15
246
+ 5
247
+ 7
248
+ 26
249
+ 47
250
+ 49
251
+ 25
252
+ 1
253
+ 15
254
+ 5
255
+ 7
256
+ 27
257
+ 47
258
+ 49
259
+ 25
260
+ 1
261
+ 15
262
+ 99
263
+ 7
264
+ 28
265
+ 7
266
+ 29
267
+ 65
268
+ 67
269
+ 49
270
+ 30
271
+ 0
272
+ 49
273
+ 31
274
+ 4
275
+ 15
276
+ 99
277
+ 7
278
+ 32
279
+ 7
280
+ 33
281
+ 65
282
+ 67
283
+ 49
284
+ 30
285
+ 0
286
+ 49
287
+ 31
288
+ 4
289
+ 11
290
+ I
291
+ 6
292
+ I
293
+ 0
294
+ I
295
+ 0
296
+ I
297
+ 0
298
+ n
299
+ p
300
+ 34
301
+ x
302
+ 5
303
+ HOSTS
304
+ x
305
+ 4
306
+ Hash
307
+ x
308
+ 16
309
+ new_from_literal
310
+ x
311
+ 2
312
+ ca
313
+ s
314
+ 16
315
+ ecs.amazonaws.ca
316
+ x
317
+ 3
318
+ []=
319
+ x
320
+ 2
321
+ cn
322
+ s
323
+ 21
324
+ webservices.amazon.cn
325
+ x
326
+ 2
327
+ de
328
+ s
329
+ 16
330
+ ecs.amazonaws.de
331
+ x
332
+ 2
333
+ fr
334
+ s
335
+ 16
336
+ ecs.amazonaws.fr
337
+ x
338
+ 2
339
+ it
340
+ s
341
+ 21
342
+ webservices.amazon.it
343
+ x
344
+ 2
345
+ jp
346
+ s
347
+ 16
348
+ ecs.amazonaws.jp
349
+ x
350
+ 2
351
+ us
352
+ s
353
+ 17
354
+ ecs.amazonaws.com
355
+ x
356
+ 2
357
+ uk
358
+ s
359
+ 19
360
+ ecs.amazonaws.co.uk
361
+ x
362
+ 9
363
+ const_set
364
+ x
365
+ 7
366
+ LOCALES
367
+ n
368
+ x
369
+ 4
370
+ keys
371
+ x
372
+ 3
373
+ key
374
+ x
375
+ 13
376
+ attr_accessor
377
+ x
378
+ 6
379
+ secret
380
+ x
381
+ 3
382
+ tag
383
+ x
384
+ 10
385
+ initialize
386
+ M
387
+ 1
388
+ n
389
+ n
390
+ x
391
+ 10
392
+ initialize
393
+ i
394
+ 27
395
+ 45
396
+ 0
397
+ 1
398
+ 20
399
+ 0
400
+ 49
401
+ 2
402
+ 1
403
+ 9
404
+ 13
405
+ 1
406
+ 8
407
+ 21
408
+ 5
409
+ 45
410
+ 3
411
+ 4
412
+ 47
413
+ 49
414
+ 5
415
+ 1
416
+ 15
417
+ 20
418
+ 0
419
+ 38
420
+ 6
421
+ 11
422
+ I
423
+ 3
424
+ I
425
+ 1
426
+ I
427
+ 1
428
+ I
429
+ 1
430
+ n
431
+ p
432
+ 7
433
+ x
434
+ 7
435
+ LOCALES
436
+ n
437
+ x
438
+ 8
439
+ include?
440
+ x
441
+ 9
442
+ BadLocale
443
+ n
444
+ x
445
+ 5
446
+ raise
447
+ x
448
+ 7
449
+ @locale
450
+ p
451
+ 9
452
+ I
453
+ -1
454
+ I
455
+ 1a
456
+ I
457
+ 0
458
+ I
459
+ 1b
460
+ I
461
+ 15
462
+ I
463
+ 0
464
+ I
465
+ 16
466
+ I
467
+ 1c
468
+ I
469
+ 1b
470
+ x
471
+ 67
472
+ /Users/hakanensari/code/amazon_product/lib/amazon_product/locale.rb
473
+ p
474
+ 1
475
+ x
476
+ 6
477
+ locale
478
+ x
479
+ 17
480
+ method_visibility
481
+ x
482
+ 15
483
+ add_defn_method
484
+ x
485
+ 4
486
+ host
487
+ M
488
+ 1
489
+ n
490
+ n
491
+ x
492
+ 4
493
+ host
494
+ i
495
+ 9
496
+ 45
497
+ 0
498
+ 1
499
+ 39
500
+ 2
501
+ 49
502
+ 3
503
+ 1
504
+ 11
505
+ I
506
+ 2
507
+ I
508
+ 0
509
+ I
510
+ 0
511
+ I
512
+ 0
513
+ n
514
+ p
515
+ 4
516
+ x
517
+ 5
518
+ HOSTS
519
+ n
520
+ x
521
+ 7
522
+ @locale
523
+ x
524
+ 2
525
+ []
526
+ p
527
+ 5
528
+ I
529
+ -1
530
+ I
531
+ 20
532
+ I
533
+ 0
534
+ I
535
+ 21
536
+ I
537
+ 9
538
+ x
539
+ 67
540
+ /Users/hakanensari/code/amazon_product/lib/amazon_product/locale.rb
541
+ p
542
+ 0
543
+ p
544
+ 33
545
+ I
546
+ 2
547
+ I
548
+ 5
549
+ I
550
+ 5
551
+ I
552
+ c
553
+ I
554
+ e
555
+ I
556
+ 5
557
+ I
558
+ 18
559
+ I
560
+ 6
561
+ I
562
+ 22
563
+ I
564
+ 7
565
+ I
566
+ 2c
567
+ I
568
+ 8
569
+ I
570
+ 36
571
+ I
572
+ 9
573
+ I
574
+ 40
575
+ I
576
+ a
577
+ I
578
+ 4a
579
+ I
580
+ b
581
+ I
582
+ 54
583
+ I
584
+ c
585
+ I
586
+ 61
587
+ I
588
+ f
589
+ I
590
+ 6e
591
+ I
592
+ 12
593
+ I
594
+ 76
595
+ I
596
+ 15
597
+ I
598
+ 7e
599
+ I
600
+ 18
601
+ I
602
+ 86
603
+ I
604
+ 1a
605
+ I
606
+ 94
607
+ I
608
+ 20
609
+ I
610
+ a2
611
+ x
612
+ 67
613
+ /Users/hakanensari/code/amazon_product/lib/amazon_product/locale.rb
614
+ p
615
+ 0
616
+ x
617
+ 13
618
+ attach_method
619
+ p
620
+ 3
621
+ I
622
+ 2
623
+ I
624
+ 3
625
+ I
626
+ 1d
627
+ x
628
+ 67
629
+ /Users/hakanensari/code/amazon_product/lib/amazon_product/locale.rb
630
+ p
631
+ 0
632
+ x
633
+ 13
634
+ attach_method
635
+ p
636
+ 3
637
+ I
638
+ 0
639
+ I
640
+ 1
641
+ I
642
+ 1c
643
+ x
644
+ 67
645
+ /Users/hakanensari/code/amazon_product/lib/amazon_product/locale.rb
646
+ p
647
+ 0