app_store_pricing_matrix 1.3.0 → 2.0.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,88 @@
1
+ 0
2
+ 0.90
3
+ 1.81
4
+ 2.79
5
+ 3.49
6
+ 4.19
7
+ 4.89
8
+ 6.29
9
+ 6.99
10
+ 7.69
11
+ 9.09
12
+ 9.79
13
+ 10.49
14
+ 11.19
15
+ 12.59
16
+ 13.29
17
+ 13.99
18
+ 15.39
19
+ 16.09
20
+ 16.79
21
+ 18.19
22
+ 18.89
23
+ 19.59
24
+ 20.29
25
+ 21.69
26
+ 22.39
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
+ 33.59
39
+ 34.29
40
+ 34.99
41
+ 36.39
42
+ 37.09
43
+ 37.79
44
+ 38.49
45
+ 39.89
46
+ 40.59
47
+ 41.29
48
+ 42.69
49
+ 43.39
50
+ 44.09
51
+ 45.49
52
+ 48.29
53
+ 52.49
54
+ 55.29
55
+ 62.29
56
+ 66.49
57
+ 69.29
58
+ 73.49
59
+ 76.29
60
+ 83.29
61
+ 90.29
62
+ 97.29
63
+ 104.29
64
+ 111.29
65
+ 118.29
66
+ 125.29
67
+ 132.29
68
+ 139.29
69
+ 146.29
70
+ 153.29
71
+ 160.29
72
+ 167.29
73
+ 181.29
74
+ 188.29
75
+ 195.29
76
+ 202.29
77
+ 209.29
78
+ 216.29
79
+ 258.29
80
+ 300.29
81
+ 342.29
82
+ 412.29
83
+ 454.29
84
+ 552.29
85
+ 622.29
86
+ 692.29
87
+ 762.29
88
+ 902.29
data/lib/prices/twd ADDED
@@ -0,0 +1,88 @@
1
+ 0
2
+ 30
3
+ 60
4
+ 90
5
+ 120
6
+ 150
7
+ 180
8
+ 210
9
+ 240
10
+ 270
11
+ 300
12
+ 330
13
+ 360
14
+ 390
15
+ 420
16
+ 450
17
+ 490
18
+ 520
19
+ 540
20
+ 570
21
+ 590
22
+ 630
23
+ 660
24
+ 690
25
+ 720
26
+ 750
27
+ 790
28
+ 820
29
+ 840
30
+ 870
31
+ 890
32
+ 930
33
+ 960
34
+ 990
35
+ 1020
36
+ 1050
37
+ 1090
38
+ 1120
39
+ 1140
40
+ 1170
41
+ 1190
42
+ 1230
43
+ 1260
44
+ 1290
45
+ 1320
46
+ 1350
47
+ 1390
48
+ 1420
49
+ 1440
50
+ 1470
51
+ 1490
52
+ 1590
53
+ 1790
54
+ 1990
55
+ 2090
56
+ 2190
57
+ 2390
58
+ 2490
59
+ 2690
60
+ 2790
61
+ 2990
62
+ 3290
63
+ 3590
64
+ 3790
65
+ 3890
66
+ 4190
67
+ 4490
68
+ 4790
69
+ 5090
70
+ 5290
71
+ 5390
72
+ 5690
73
+ 5990
74
+ 6290
75
+ 6590
76
+ 6890
77
+ 7190
78
+ 7490
79
+ 8990
80
+ 9990
81
+ 11900
82
+ 12900
83
+ 14900
84
+ 17900
85
+ 20900
86
+ 23900
87
+ 26900
88
+ 29900
@@ -0,0 +1,88 @@
1
+ 0
2
+ 21
3
+ 42
4
+ 63
5
+ 84
6
+ 105
7
+ 126
8
+ 147
9
+ 168
10
+ 189
11
+ 210
12
+ 231
13
+ 252
14
+ 273
15
+ 294
16
+ 315
17
+ 343
18
+ 364
19
+ 378
20
+ 399
21
+ 413
22
+ 441
23
+ 462
24
+ 483
25
+ 504
26
+ 525
27
+ 553
28
+ 574
29
+ 588
30
+ 609
31
+ 623
32
+ 651
33
+ 672
34
+ 693
35
+ 714
36
+ 735
37
+ 763
38
+ 784
39
+ 798
40
+ 819
41
+ 833
42
+ 861
43
+ 882
44
+ 903
45
+ 924
46
+ 945
47
+ 973
48
+ 994
49
+ 1008
50
+ 1029
51
+ 1043
52
+ 1113
53
+ 1253
54
+ 1393
55
+ 1463
56
+ 1533
57
+ 1673
58
+ 1743
59
+ 1883
60
+ 1953
61
+ 2093
62
+ 2303
63
+ 2513
64
+ 2653
65
+ 2723
66
+ 2933
67
+ 3143
68
+ 3353
69
+ 3563
70
+ 3703
71
+ 3773
72
+ 3983
73
+ 4193
74
+ 4403
75
+ 4613
76
+ 4823
77
+ 5033
78
+ 5243
79
+ 6293
80
+ 6993
81
+ 8330
82
+ 9030
83
+ 10430
84
+ 12530
85
+ 14630
86
+ 16730
87
+ 18830
88
+ 20930
@@ -14,6 +14,10 @@ module ExampleMethods
14
14
  lines.size.should be(88)
15
15
  end
16
16
 
17
+ it "should have 0 for tier 0" do
18
+ ['0', '0.00'].should include lines.first.chomp
19
+ end
20
+
17
21
  it "should verify format of table content" do
18
22
  lines.each_with_index do |line,i|
19
23
  line.should match(/^\d+(?:\.\d\d)?\n?$/), "Error while reading \"#{File.basename(file)}\", line:#{i+1}"
@@ -35,14 +39,14 @@ include ExampleMethods
35
39
  describe "AppStorePricingMatrix" do
36
40
 
37
41
  context "Customer Currencies" do
38
- AppStorePricingMatrix::CUSTOMER_CURRENCIES.each do |currency|
42
+ AppStorePricingMatrix::CURRENCIES.each do |currency|
39
43
  file = File.expand_path(File.dirname(__FILE__) + "/../lib/prices/#{currency.downcase}")
40
44
  spec_meat(file, currency)
41
45
  end
42
46
  end
43
47
 
44
48
  context "Developer Proceeds" do
45
- AppStorePricingMatrix::DEVELOPER_CURRENCIES.each do |currency|
49
+ AppStorePricingMatrix::CURRENCIES.each do |currency|
46
50
  file = File.expand_path(File.dirname(__FILE__) + "/../lib/prices/#{currency.downcase}_pro")
47
51
  spec_meat(file, currency)
48
52
  end
@@ -50,7 +54,7 @@ describe "AppStorePricingMatrix" do
50
54
 
51
55
  context "Currency Mapping" do
52
56
  it "should return the given currency code if it is a valid customer currency" do
53
- AppStorePricingMatrix::CUSTOMER_CURRENCIES.each do |currency|
57
+ AppStorePricingMatrix::CURRENCIES.each do |currency|
54
58
  AppStorePricingMatrix.customer_currency_for(currency).should == currency
55
59
  end
56
60
  end
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,9 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
3
4
  require 'rspec'
4
5
  require 'app_store_pricing_matrix'
5
6
 
6
- # Requires supporting files with custom matchers and macros, etc,
7
- # in ./support/ and its subdirectories.
8
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
-
10
7
  RSpec.configure do |config|
11
8
 
12
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_store_pricing_matrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-16 00:00:00.000000000 Z
13
+ date: 2012-07-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: !ruby/object:Gem::Requirement
17
+ requirement: &70339439075940 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,15 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: '0'
25
+ version_requirements: *70339439075940
31
26
  - !ruby/object:Gem::Dependency
32
27
  name: bundler
33
- requirement: !ruby/object:Gem::Requirement
28
+ requirement: &70339439075420 !ruby/object:Gem::Requirement
34
29
  none: false
35
30
  requirements:
36
31
  - - ! '>='
@@ -38,15 +33,10 @@ dependencies:
38
33
  version: '0'
39
34
  type: :development
40
35
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
36
+ version_requirements: *70339439075420
47
37
  - !ruby/object:Gem::Dependency
48
- name: jeweler
49
- requirement: !ruby/object:Gem::Requirement
38
+ name: rake
39
+ requirement: &70339439074740 !ruby/object:Gem::Requirement
50
40
  none: false
51
41
  requirements:
52
42
  - - ! '>='
@@ -54,29 +44,39 @@ dependencies:
54
44
  version: '0'
55
45
  type: :development
56
46
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
47
+ version_requirements: *70339439074740
63
48
  description: A simple module that holds currencies and prices from the Apple's iOS
64
49
  App Store.
65
- email: kenn.ejima@gmail.com
50
+ email:
51
+ - kenn.ejima@gmail.com
66
52
  executables: []
67
53
  extensions: []
68
- extra_rdoc_files:
69
- - LICENSE.txt
70
- - README.md
54
+ extra_rdoc_files: []
71
55
  files:
72
- - .document
56
+ - .gitignore
73
57
  - .rspec
58
+ - .travis.yml
74
59
  - Gemfile
75
- - LICENSE.txt
60
+ - LICENSE
76
61
  - README.md
77
62
  - Rakefile
78
- - VERSION
79
63
  - app_store_pricing_matrix.gemspec
64
+ - input/aud.txt
65
+ - input/cad.txt
66
+ - input/chf.txt
67
+ - input/cny.txt
68
+ - input/dkk.txt
69
+ - input/eur.txt
70
+ - input/gbp.txt
71
+ - input/hkd.txt
72
+ - input/jpy.txt
73
+ - input/mxn.txt
74
+ - input/nok.txt
75
+ - input/nzd.txt
76
+ - input/sek.txt
77
+ - input/sgd.txt
78
+ - input/twd.txt
79
+ - input/usd.txt
80
80
  - lib/app_store_pricing_matrix.rb
81
81
  - lib/prices/aud
82
82
  - lib/prices/aud_pro
@@ -92,6 +92,8 @@ files:
92
92
  - lib/prices/eur_pro
93
93
  - lib/prices/gbp
94
94
  - lib/prices/gbp_pro
95
+ - lib/prices/hkd
96
+ - lib/prices/hkd_pro
95
97
  - lib/prices/jpy
96
98
  - lib/prices/jpy_pro
97
99
  - lib/prices/mxn
@@ -102,13 +104,16 @@ files:
102
104
  - lib/prices/nzd_pro
103
105
  - lib/prices/sek
104
106
  - lib/prices/sek_pro
107
+ - lib/prices/sgd
108
+ - lib/prices/sgd_pro
109
+ - lib/prices/twd
110
+ - lib/prices/twd_pro
105
111
  - lib/prices/usd
106
112
  - lib/prices/usd_pro
107
113
  - spec/app_store_pricing_matrix_spec.rb
108
114
  - spec/spec_helper.rb
109
115
  homepage: http://github.com/kenn/app_store_pricing_matrix
110
- licenses:
111
- - MIT
116
+ licenses: []
112
117
  post_install_message:
113
118
  rdoc_options: []
114
119
  require_paths:
@@ -119,9 +124,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
124
  - - ! '>='
120
125
  - !ruby/object:Gem::Version
121
126
  version: '0'
122
- segments:
123
- - 0
124
- hash: 2827004380753888769
125
127
  required_rubygems_version: !ruby/object:Gem::Requirement
126
128
  none: false
127
129
  requirements:
@@ -130,8 +132,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
132
  version: '0'
131
133
  requirements: []
132
134
  rubyforge_project:
133
- rubygems_version: 1.8.19
135
+ rubygems_version: 1.8.17
134
136
  signing_key:
135
137
  specification_version: 3
136
138
  summary: Constants for App Store Pricing Matrix
137
- test_files: []
139
+ test_files:
140
+ - spec/app_store_pricing_matrix_spec.rb
141
+ - spec/spec_helper.rb