app_store_pricing_matrix 1.0.4 → 1.1.0

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.
@@ -0,0 +1,86 @@
1
+ 0.00
2
+ 3.92
3
+ 7.84
4
+ 11.76
5
+ 15.68
6
+ 19.60
7
+ 23.52
8
+ 27.44
9
+ 31.36
10
+ 35.28
11
+ 39.20
12
+ 43.12
13
+ 47.04
14
+ 50.96
15
+ 54.88
16
+ 58.80
17
+ 62.72
18
+ 66.64
19
+ 70.56
20
+ 74.48
21
+ 78.40
22
+ 82.32
23
+ 86.24
24
+ 90.16
25
+ 94.08
26
+ 98.00
27
+ 101.92
28
+ 105.84
29
+ 109.76
30
+ 113.68
31
+ 117.04
32
+ 121.52
33
+ 125.44
34
+ 129.36
35
+ 133.28
36
+ 137.20
37
+ 141.12
38
+ 145.04
39
+ 148.96
40
+ 152.88
41
+ 156.80
42
+ 160.72
43
+ 164.64
44
+ 168.56
45
+ 172.48
46
+ 176.40
47
+ 180.32
48
+ 184.24
49
+ 188.16
50
+ 192.08
51
+ 195.44
52
+ 215.60
53
+ 235.20
54
+ 254.80
55
+ 274.40
56
+ 294.00
57
+ 313.60
58
+ 333.20
59
+ 352.80
60
+ 372.40
61
+ 392.00
62
+ 431.20
63
+ 470.40
64
+ 509.60
65
+ 548.80
66
+ 588.00
67
+ 627.20
68
+ 666.40
69
+ 705.60
70
+ 744.80
71
+ 784.00
72
+ 823.20
73
+ 862.40
74
+ 901.60
75
+ 940.80
76
+ 980.00
77
+ 1176.00
78
+ 1372.00
79
+ 1568.00
80
+ 1764.00
81
+ 1960.00
82
+ 2352.00
83
+ 2744.00
84
+ 3136.00
85
+ 3528.00
86
+ 3920.00
@@ -0,0 +1,86 @@
1
+ 0.00
2
+ 0.90
3
+ 1.81
4
+ 2.93
5
+ 3.70
6
+ 4.54
7
+ 5.80
8
+ 6.99
9
+ 7.69
10
+ 9.09
11
+ 9.79
12
+ 10.49
13
+ 11.19
14
+ 11.89
15
+ 12.59
16
+ 13.29
17
+ 13.99
18
+ 14.69
19
+ 16.09
20
+ 16.79
21
+ 17.49
22
+ 18.19
23
+ 19.59
24
+ 20.29
25
+ 20.99
26
+ 21.69
27
+ 23.09
28
+ 24.49
29
+ 25.19
30
+ 25.89
31
+ 27.29
32
+ 27.99
33
+ 28.69
34
+ 29.39
35
+ 30.79
36
+ 31.49
37
+ 32.19
38
+ 32.89
39
+ 33.59
40
+ 34.29
41
+ 34.99
42
+ 35.69
43
+ 36.39
44
+ 37.79
45
+ 38.49
46
+ 39.19
47
+ 39.89
48
+ 41.29
49
+ 41.99
50
+ 42.69
51
+ 45.49
52
+ 52.49
53
+ 55.99
54
+ 59.49
55
+ 66.49
56
+ 69.99
57
+ 73.49
58
+ 76.99
59
+ 80.49
60
+ 83.99
61
+ 87.49
62
+ 104.99
63
+ 111.99
64
+ 118.99
65
+ 125.99
66
+ 139.99
67
+ 146.99
68
+ 160.99
69
+ 167.99
70
+ 174.99
71
+ 181.99
72
+ 188.99
73
+ 195.99
74
+ 202.99
75
+ 209.99
76
+ 223.99
77
+ 279.99
78
+ 314.99
79
+ 349.99
80
+ 384.99
81
+ 454.99
82
+ 524.99
83
+ 594.99
84
+ 664.99
85
+ 734.99
86
+ 874.99
@@ -40,4 +40,29 @@ describe "AppStorePricingMatrix" do
40
40
  spec_meat(file, currency)
41
41
  end
42
42
  end
43
+
44
+ context "Currency Mapping" do
45
+ it "should return the given currency code if it is a valid customer currency" do
46
+ AppStorePricingMatrix::CUSTOMER_CURRENCIES.each do |currency|
47
+ AppStorePricingMatrix.customer_currency_for(currency).should == currency
48
+ end
49
+ end
50
+
51
+ it "should return EUR for any currency codes that operate the store in Euros" do
52
+ AppStorePricingMatrix::EURO_CURRENCIES.each do |currency|
53
+ AppStorePricingMatrix.customer_currency_for(currency).should == "EUR"
54
+ end
55
+ end
56
+
57
+ it "should return nil for any unknown currency code" do
58
+ AppStorePricingMatrix.customer_currency_for(nil).should == nil
59
+ AppStorePricingMatrix.customer_currency_for("XXX").should == nil
60
+ AppStorePricingMatrix.customer_currency_for("-").should == nil
61
+ end
62
+
63
+ it "should accept symbols and lowercase currency codes" do
64
+ AppStorePricingMatrix.customer_currency_for(:eur).should == "EUR"
65
+ AppStorePricingMatrix.customer_currency_for('usd').should == "USD"
66
+ end
67
+ end
43
68
  end
metadata CHANGED
@@ -2,15 +2,16 @@
2
2
  name: app_store_pricing_matrix
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.4
5
+ version: 1.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kenn Ejima
9
+ - Elliot Bowes
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
13
 
13
- date: 2011-06-13 00:00:00 -07:00
14
+ date: 2011-09-26 00:00:00 -07:00
14
15
  default_executable:
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
@@ -18,9 +19,9 @@ dependencies:
18
19
  requirement: &id001 !ruby/object:Gem::Requirement
19
20
  none: false
20
21
  requirements:
21
- - - ~>
22
+ - - ">="
22
23
  - !ruby/object:Gem::Version
23
- version: 2.6.0
24
+ version: "0"
24
25
  type: :development
25
26
  prerelease: false
26
27
  version_requirements: *id001
@@ -29,34 +30,23 @@ dependencies:
29
30
  requirement: &id002 !ruby/object:Gem::Requirement
30
31
  none: false
31
32
  requirements:
32
- - - ~>
33
+ - - ">="
33
34
  - !ruby/object:Gem::Version
34
- version: 1.0.0
35
+ version: "0"
35
36
  type: :development
36
37
  prerelease: false
37
38
  version_requirements: *id002
38
39
  - !ruby/object:Gem::Dependency
39
40
  name: jeweler
40
41
  requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 1.6.2
46
- type: :development
47
- prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: pdf-reader
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
42
  none: false
53
43
  requirements:
54
44
  - - ">="
55
45
  - !ruby/object:Gem::Version
56
- version: 0.9.1
46
+ version: "0"
57
47
  type: :development
58
48
  prerelease: false
59
- version_requirements: *id004
49
+ version_requirements: *id003
60
50
  description: A simple module that holds currencies and prices from the Apple's iOS App Store.
61
51
  email: kenn.ejima@gmail.com
62
52
  executables: []
@@ -82,6 +72,7 @@ files:
82
72
  - lib/prices/cad
83
73
  - lib/prices/cad_pro
84
74
  - lib/prices/chf
75
+ - lib/prices/chf_pro
85
76
  - lib/prices/dkk
86
77
  - lib/prices/eur
87
78
  - lib/prices/eur_pro
@@ -90,8 +81,11 @@ files:
90
81
  - lib/prices/jpy
91
82
  - lib/prices/jpy_pro
92
83
  - lib/prices/mxn
84
+ - lib/prices/mxn_pro
93
85
  - lib/prices/nok
86
+ - lib/prices/nok_pro
94
87
  - lib/prices/nzd
88
+ - lib/prices/nzd_pro
95
89
  - lib/prices/sek
96
90
  - lib/prices/usd
97
91
  - lib/prices/usd_pro
@@ -111,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
105
  requirements:
112
106
  - - ">="
113
107
  - !ruby/object:Gem::Version
114
- hash: -4062902915031916330
108
+ hash: -2993562310533189727
115
109
  segments:
116
110
  - 0
117
111
  version: "0"