awscosts 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07920a70ac787605ade0787734dfe9cf2478e1bd
4
- data.tar.gz: b10d72a338ac280c3bb9fd393cdec6bd935cd7fe
3
+ metadata.gz: 3422f781e513dd882c5ab6ad9b15a971c8736ac5
4
+ data.tar.gz: 968a727c9dfde3c0fd1b4d78a075b53207872284
5
5
  SHA512:
6
- metadata.gz: 3d47dc558e47f1c2e9bbb546b9ffdf2951a896ac24572f871d5293eff7cf9ab28495fe64e171e3026a46a46041f447d7a35f5b0c22097107a2d5e03e2bb2423d
7
- data.tar.gz: d6b2de5d128ac039a36e95883a6c4f8dd191be5d57b74358190fb5950dce1a2eae5d3afb4c956fc7134d59da263cfd57cc546ff3754a7faf3ac6e5fb7a979d8e
6
+ metadata.gz: 77585d2fcc6712018becb4c93a037bee5136d7d30654703d6e1430ba717c412f93e86d5ffb20be7bc334a661fdd97ec6b53fa751dd03a83ffe4997ae5e64bad6
7
+ data.tar.gz: 6e7c38273b203fd99c30734e1b3f14226e1e06cc306a098899cef3d2e2aaf3c6e69ca7e6db478a96046f96c7bffedbb69a4552e865d145feadf6512fd6fdac0d
@@ -13,28 +13,30 @@ http_interactions:
13
13
  message: Moved Permanently
14
14
  headers:
15
15
  date:
16
- - Wed, 08 Jul 2015 06:40:17 GMT
16
+ - Thu, 15 Oct 2015 21:25:16 GMT
17
17
  server:
18
18
  - Server
19
19
  x-frame-options:
20
20
  - SAMEORIGIN
21
21
  x-amz-id-1:
22
- - 1TWRTQ8KS9F97X6E5ESJ
22
+ - 00VMZDYF9XYDZMEW8JS9
23
23
  location:
24
24
  - "/elasticmapreduce/pricing/pricing-emr.json/"
25
25
  cache-control:
26
26
  - no-store, no-cache, must-revalidate
27
27
  content-length:
28
28
  - '0'
29
+ access-control-allow-origin:
30
+ - http://aws.amazon.com
29
31
  vary:
30
- - User-Agent
32
+ - Accept-Encoding,User-Agent
31
33
  content-type:
32
34
  - application/json
33
35
  body:
34
36
  encoding: UTF-8
35
37
  string: ''
36
38
  http_version: '1.1'
37
- recorded_at: Wed, 08 Jul 2015 06:40:42 GMT
39
+ recorded_at: Thu, 15 Oct 2015 21:25:16 GMT
38
40
  - request:
39
41
  method: get
40
42
  uri: http://aws.amazon.com/elasticmapreduce/pricing/pricing-emr.json/
@@ -48,28 +50,32 @@ http_interactions:
48
50
  message: Moved Permanently
49
51
  headers:
50
52
  date:
51
- - Wed, 08 Jul 2015 06:40:18 GMT
53
+ - Thu, 15 Oct 2015 21:25:17 GMT
52
54
  server:
53
55
  - Server
54
56
  x-frame-options:
55
57
  - SAMEORIGIN
56
58
  x-amz-id-1:
57
- - 0AHZQ9PJGXZ9PF2VPFDC
59
+ - 1Z554D701710MXZ9D4R5
60
+ last-modified:
61
+ - Thu, 08 Oct 2015 20:05:00 GMT
58
62
  location:
59
63
  - https://a0.awsstatic.com/pricing/1/deprecated/emr/pricing-emr.json
60
64
  content-type:
61
65
  - text/html;charset=UTF-8
62
66
  content-length:
63
67
  - '0'
68
+ access-control-allow-origin:
69
+ - http://aws.amazon.com
64
70
  set-cookie:
65
71
  - aws_lang=en; Domain=.amazon.com; Path=/
66
72
  vary:
67
- - User-Agent
73
+ - Accept-Encoding,User-Agent
68
74
  body:
69
75
  encoding: UTF-8
70
76
  string: ''
71
77
  http_version: '1.1'
72
- recorded_at: Wed, 08 Jul 2015 06:40:43 GMT
78
+ recorded_at: Thu, 15 Oct 2015 21:25:17 GMT
73
79
  - request:
74
80
  method: get
75
81
  uri: https://a0.awsstatic.com/pricing/1/deprecated/emr/pricing-emr.json
@@ -87,27 +93,29 @@ http_interactions:
87
93
  content-type:
88
94
  - application/json
89
95
  content-length:
90
- - '128732'
96
+ - '128751'
91
97
  connection:
92
98
  - close
93
99
  date:
94
- - Wed, 08 Jul 2015 05:30:59 GMT
100
+ - Thu, 15 Oct 2015 21:11:17 GMT
95
101
  cache-control:
96
102
  - max-age=3600
97
103
  last-modified:
98
- - Fri, 26 Jun 2015 06:11:27 GMT
104
+ - Wed, 14 Oct 2015 21:33:52 GMT
99
105
  etag:
100
- - '"dfe183ca9a820fbd34aea98deaf814c7"'
106
+ - '"3455961bffe1492b8a3d97169fc4e0f5"'
101
107
  accept-ranges:
102
108
  - bytes
103
109
  server:
104
110
  - AmazonS3
111
+ age:
112
+ - '843'
105
113
  x-cache:
106
- - RefreshHit from cloudfront
114
+ - Hit from cloudfront
107
115
  via:
108
- - 1.1 9d4e31d14f9ca2b4887f0d5ace789fde.cloudfront.net (CloudFront)
116
+ - 1.1 be7e14304ffc3b5972e7e225c4a1caf4.cloudfront.net (CloudFront)
109
117
  x-amz-cf-id:
110
- - oRqS01_gBmwgeSWKKbIyD-USxD0VHgu3vGGe3I1nalWGqiogEKIH2A==
118
+ - sjLPy8PB_AFrRiQ2EOwAPGPgmSZXT35YwXoDyLg6HxR-NFLM6lPnzQ==
111
119
  body:
112
120
  encoding: UTF-8
113
121
  string: |
@@ -120,7 +128,7 @@ http_interactions:
120
128
  ],
121
129
  "regions": [
122
130
  {
123
- "region": "us-east",
131
+ "region": "us-east-1",
124
132
  "footnotes": {
125
133
  },
126
134
  "instanceTypes": [
@@ -133,7 +141,7 @@ http_interactions:
133
141
  {
134
142
  "name": "ec2",
135
143
  "prices": {
136
- "USD": "0.280"
144
+ "USD": "0.266"
137
145
  }
138
146
  },
139
147
  {
@@ -150,7 +158,7 @@ http_interactions:
150
158
  {
151
159
  "name": "ec2",
152
160
  "prices": {
153
- "USD": "0.560"
161
+ "USD": "0.532"
154
162
  }
155
163
  },
156
164
  {
@@ -749,7 +757,7 @@ http_interactions:
749
757
  {
750
758
  "name": "ec2",
751
759
  "prices": {
752
- "USD": "0.280"
760
+ "USD": "0.266"
753
761
  }
754
762
  },
755
763
  {
@@ -766,7 +774,7 @@ http_interactions:
766
774
  {
767
775
  "name": "ec2",
768
776
  "prices": {
769
- "USD": "0.560"
777
+ "USD": "0.532"
770
778
  }
771
779
  },
772
780
  {
@@ -1332,7 +1340,7 @@ http_interactions:
1332
1340
  ]
1333
1341
  },
1334
1342
  {
1335
- "region": "us-west",
1343
+ "region": "us-west-1",
1336
1344
  "instanceTypes": [
1337
1345
  {
1338
1346
  "type": "General Purpose - Current Generation",
@@ -1785,7 +1793,7 @@ http_interactions:
1785
1793
  ]
1786
1794
  },
1787
1795
  {
1788
- "region": "eu-ireland",
1796
+ "region": "eu-west-1",
1789
1797
  "instanceTypes": [
1790
1798
  {
1791
1799
  "type": "General Purpose - Current Generation",
@@ -1796,7 +1804,7 @@ http_interactions:
1796
1804
  {
1797
1805
  "name": "ec2",
1798
1806
  "prices": {
1799
- "USD": "0.308"
1807
+ "USD": "0.293"
1800
1808
  }
1801
1809
  },
1802
1810
  {
@@ -1813,7 +1821,7 @@ http_interactions:
1813
1821
  {
1814
1822
  "name": "ec2",
1815
1823
  "prices": {
1816
- "USD": "0.616"
1824
+ "USD": "0.585"
1817
1825
  }
1818
1826
  },
1819
1827
  {
@@ -2412,7 +2420,7 @@ http_interactions:
2412
2420
  {
2413
2421
  "name": "ec2",
2414
2422
  "prices": {
2415
- "USD": "0.332"
2423
+ "USD": "0.315"
2416
2424
  }
2417
2425
  },
2418
2426
  {
@@ -2429,7 +2437,7 @@ http_interactions:
2429
2437
  {
2430
2438
  "name": "ec2",
2431
2439
  "prices": {
2432
- "USD": "0.665"
2440
+ "USD": "0.632"
2433
2441
  }
2434
2442
  },
2435
2443
  {
@@ -2732,7 +2740,7 @@ http_interactions:
2732
2740
  ]
2733
2741
  },
2734
2742
  {
2735
- "region": "apac-sin",
2743
+ "region": "ap-southeast-1",
2736
2744
  "instanceTypes": [
2737
2745
  {
2738
2746
  "type": "General Purpose - Current Generation",
@@ -3275,7 +3283,7 @@ http_interactions:
3275
3283
  ]
3276
3284
  },
3277
3285
  {
3278
- "region": "apac-tokyo",
3286
+ "region": "ap-northeast-1",
3279
3287
  "instanceTypes": [
3280
3288
  {
3281
3289
  "type": "General Purpose - Current Generation",
@@ -3286,7 +3294,7 @@ http_interactions:
3286
3294
  {
3287
3295
  "name": "ec2",
3288
3296
  "prices": {
3289
- "USD": "0.405"
3297
+ "USD": "0.385"
3290
3298
  }
3291
3299
  },
3292
3300
  {
@@ -3303,7 +3311,7 @@ http_interactions:
3303
3311
  {
3304
3312
  "name": "ec2",
3305
3313
  "prices": {
3306
- "USD": "0.810"
3314
+ "USD": "0.770"
3307
3315
  }
3308
3316
  },
3309
3317
  {
@@ -3847,7 +3855,7 @@ http_interactions:
3847
3855
  ]
3848
3856
  },
3849
3857
  {
3850
- "region": "apac-syd",
3858
+ "region": "ap-southeast-2",
3851
3859
  "instanceTypes": [
3852
3860
  {
3853
3861
  "type": "General Purpose - Current Generation",
@@ -3858,7 +3866,7 @@ http_interactions:
3858
3866
  {
3859
3867
  "name": "ec2",
3860
3868
  "prices": {
3861
- "USD": "0.392"
3869
+ "USD": "0.372"
3862
3870
  }
3863
3871
  },
3864
3872
  {
@@ -3875,7 +3883,7 @@ http_interactions:
3875
3883
  {
3876
3884
  "name": "ec2",
3877
3885
  "prices": {
3878
- "USD": "0.784"
3886
+ "USD": "0.745"
3879
3887
  }
3880
3888
  },
3881
3889
  {
@@ -4982,5 +4990,5 @@ http_interactions:
4982
4990
  }
4983
4991
  }
4984
4992
  http_version: '1.1'
4985
- recorded_at: Wed, 08 Jul 2015 06:40:44 GMT
4993
+ recorded_at: Thu, 15 Oct 2015 21:25:19 GMT
4986
4994
  recorded_with: VCR 2.9.3
@@ -4,15 +4,15 @@ class AWSCosts::Region
4
4
  attr_reader :name, :full_name, :price_mapping, :emr_mapping
5
5
 
6
6
  SUPPORTED = {
7
- 'us-east-1' => { :full_name => 'US (Northern Virginia)', :price_mapping => 'us-east-1', :emr_mapping => 'us-east' },
8
- 'us-west-1' => { :full_name => 'US (Northern California)', :price_mapping => 'us-west-1', :emr_mapping => 'us-west' },
9
- 'us-west-2' => { :full_name => 'US (Oregon)', :price_mapping => 'us-west-2', :emr_mapping => 'us-west-2' },
10
- 'eu-west-1' => { :full_name => 'EU (Ireland)', :price_mapping => 'eu-west-1', :emr_mapping => 'eu-ireland' },
7
+ 'us-east-1' => { :full_name => 'US (Northern Virginia)' },
8
+ 'us-west-1' => { :full_name => 'US (Northern California)' },
9
+ 'us-west-2' => { :full_name => 'US (Oregon)' },
10
+ 'eu-west-1' => { :full_name => 'EU (Ireland)' },
11
11
  'eu-central-1' => { :full_name => 'EU (Frankfurt)' },
12
- 'ap-southeast-1' => { :full_name => 'Asia Pacific (Singapore)', :price_mapping => 'ap-southeast-1', :emr_mapping => 'apac-sin' },
13
- 'ap-southeast-2' => { :full_name => 'Asia Pacific (Sydney)', :price_mapping => 'ap-southeast-2', :emr_mapping => 'apac-syd' },
14
- 'ap-northeast-1' => { :full_name => 'Asia Pacific (Tokyo)', :price_mapping => 'ap-northeast-1', :emr_mapping => 'apac-tokyo' },
15
- 'sa-east-1' => { :full_name => 'South America (Sao Paulo)', :price_mapping => 'sa-east-1', :emr_mapping => 'sa-east-1' }
12
+ 'ap-southeast-1' => { :full_name => 'Asia Pacific (Singapore)' },
13
+ 'ap-southeast-2' => { :full_name => 'Asia Pacific (Sydney)' },
14
+ 'ap-northeast-1' => { :full_name => 'Asia Pacific (Tokyo)' },
15
+ 'sa-east-1' => { :full_name => 'South America (Sao Paulo)' }
16
16
  }
17
17
 
18
18
  def self.find name
@@ -25,7 +25,7 @@ class AWSCosts::Region
25
25
  end
26
26
 
27
27
  def emr
28
- AWSCosts::EMR.fetch(self.emr_mapping)
28
+ AWSCosts::EMR.fetch(self.name)
29
29
  end
30
30
 
31
31
  def s3
@@ -1,3 +1,3 @@
1
1
  module AWSCosts
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awscosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bartlett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty