app_store_pricing_matrix 3.0.0 → 3.0.1

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: 53a525f17423229adaad37b52842e1372e9eecde
4
- data.tar.gz: f633395f077384b335245f5e41dbc4a7a427aa74
3
+ metadata.gz: 989582e00437f46db843e7ec73e27f19f02469b1
4
+ data.tar.gz: c4f898d9a2686dd381f446abd653eb30e3db94c3
5
5
  SHA512:
6
- metadata.gz: 4d0beadde5af678e81c06abcd2d0a6267b071d7fc0fab9cd44d0a213e094574bc3535c701a34d4e9e3b2a8c407177dd3b14d04f54704039eaa5a3537f7ef5116
7
- data.tar.gz: 7e96661ca0f0d0efe659c05bdc3f8b3a19aba9c24ea954f5204952ff5467da106d42cbb616640e631b864832c31a17907edcd98cc8c6fb411c9c7c280f6ab0dd
6
+ metadata.gz: ecc541efc4b1e05117330ae790ee528a4888cf120b38148286712686da07e93790a8b0e034954b1741469c2739c2dd0c9a20656a188f1e2e06b3ebcfa817bf5d
7
+ data.tar.gz: 13b3ef70acee32a8cf137374d44d0da89cc43c2750c957c78276449ce80b8eb674d6f2fb2af6f23c6bdd7518390d7950fd1afc65abe337900905fa6d331ee0af
data/README.md CHANGED
@@ -10,25 +10,6 @@ Install
10
10
 
11
11
  gem install app_store_pricing_matrix
12
12
 
13
- Changelog
14
- ---------
15
-
16
- v3.0.0 (May 2, 2016)
17
-
18
- * Complete overhaul. Now we use the JSON data fetched from Apple's hidden API.
19
-
20
- v2.1.0 (October 26, 2012)
21
-
22
- * Based on v14.
23
- * Added RUB, TRY, INR, IDR, ILS, ZAR, SAR and AED
24
-
25
- v2.0.0 (July 18, 2012)
26
-
27
- * Based on v13.
28
- * Added SGD, HKD and TWD.
29
- * `CURRENCY_MAP` and `REVERSE_CURRENCY_MAP` are removed. They are all self-referential now.
30
- * `CUSTOMER_CURRENCIES` and `DEVELOPER_CURRENCIES` are removed. Use `CURRENCIES` instead.
31
-
32
13
  Usage
33
14
  -----
34
15
 
@@ -74,3 +55,22 @@ When you need to update the pricing matrix,
74
55
  1. Your default browser will launch and load the JSON. Copy the entire content and paste into `input/pricing_matrix.json`.
75
56
  1. Run `rake` to check if anything is broken.
76
57
  1. Send a pull request with updated `input/pricing_matrix.json`.
58
+
59
+ Changelog
60
+ ---------
61
+
62
+ v3.0.0 (May 2, 2016)
63
+
64
+ * Complete overhaul. Now we use the JSON data fetched from Apple's hidden API.
65
+
66
+ v2.1.0 (October 26, 2012)
67
+
68
+ * Based on v14.
69
+ * Added RUB, TRY, INR, IDR, ILS, ZAR, SAR and AED
70
+
71
+ v2.0.0 (July 18, 2012)
72
+
73
+ * Based on v13.
74
+ * Added SGD, HKD and TWD.
75
+ * `CURRENCY_MAP` and `REVERSE_CURRENCY_MAP` are removed. They are all self-referential now.
76
+ * `CUSTOMER_CURRENCIES` and `DEVELOPER_CURRENCIES` are removed. Use `CURRENCIES` instead.
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = 'app_store_pricing_matrix'
14
14
  gem.require_paths = ['lib']
15
- gem.version = '3.0.0' # retrieve this value by: Gem.loaded_specs['app_store_pricing_matrix'].version.to_s
15
+ gem.version = '3.0.1' # retrieve this value by: Gem.loaded_specs['app_store_pricing_matrix'].version.to_s
16
16
 
17
17
  gem.add_development_dependency 'rspec'
18
18
  gem.add_development_dependency 'bundler'
@@ -1,9 +1,13 @@
1
1
  require 'json'
2
+ require 'pathname'
2
3
 
3
4
  class AppStorePricingMatrix
4
5
  class << self
5
6
  def tiers
6
- @tiers ||= JSON.parse(File.read('input/pricing_matrix.json'))['data']['pricingTiers'].map{|i| Tier.new(i) }
7
+ @tiers ||= begin
8
+ path = Pathname.new(__FILE__).dirname.join('input', 'pricing_matrix.json')
9
+ JSON.parse(File.read(path))['data']['pricingTiers'].map{|i| Tier.new(i) }
10
+ end
7
11
  end
8
12
 
9
13
  def stems
File without changes
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: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenn Ejima
@@ -83,8 +83,8 @@ files:
83
83
  - README.md
84
84
  - Rakefile
85
85
  - app_store_pricing_matrix.gemspec
86
- - input/pricing_matrix.json
87
86
  - lib/app_store_pricing_matrix.rb
87
+ - lib/input/pricing_matrix.json
88
88
  - spec/app_store_pricing_matrix_spec.rb
89
89
  - spec/spec_helper.rb
90
90
  homepage: http://github.com/kenn/app_store_pricing_matrix