timeprice 0.5.0 → 0.7.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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +76 -0
  3. data/DATA_LICENSES.md +16 -1
  4. data/README.md +46 -7
  5. data/data/cpi/au.json +419 -0
  6. data/data/cpi/ca.json +1501 -0
  7. data/data/cpi/cn.json +487 -0
  8. data/data/cpi/eu.json +2 -2
  9. data/data/cpi/jp.json +2 -2
  10. data/data/cpi/kr.json +549 -0
  11. data/data/cpi/ru.json +487 -0
  12. data/data/cpi/uk.json +2 -2
  13. data/data/cpi/us.json +2 -2
  14. data/data/cpi/vn.json +27 -27
  15. data/data/fx/usd/1999.json +1043 -263
  16. data/data/fx/usd/2000.json +1275 -259
  17. data/data/fx/usd/2001.json +1278 -258
  18. data/data/fx/usd/2002.json +1283 -259
  19. data/data/fx/usd/2003.json +1283 -259
  20. data/data/fx/usd/2004.json +1303 -263
  21. data/data/fx/usd/2005.json +1293 -261
  22. data/data/fx/usd/2006.json +1283 -259
  23. data/data/fx/usd/2007.json +1283 -259
  24. data/data/fx/usd/2008.json +1288 -260
  25. data/data/fx/usd/2009.json +1288 -260
  26. data/data/fx/usd/2010.json +1298 -262
  27. data/data/fx/usd/2011.json +1293 -261
  28. data/data/fx/usd/2012.json +1288 -260
  29. data/data/fx/usd/2013.json +1283 -259
  30. data/data/fx/usd/2014.json +1283 -259
  31. data/data/fx/usd/2015.json +1288 -260
  32. data/data/fx/usd/2016.json +1293 -261
  33. data/data/fx/usd/2017.json +1283 -259
  34. data/data/fx/usd/2018.json +1283 -259
  35. data/data/fx/usd/2019.json +1283 -259
  36. data/data/fx/usd/2020.json +1293 -261
  37. data/data/fx/usd/2021.json +1298 -262
  38. data/data/fx/usd/2022.json +1293 -261
  39. data/data/fx/usd/2023.json +1283 -259
  40. data/data/fx/usd/2024.json +1288 -260
  41. data/data/fx/usd/2025.json +1283 -259
  42. data/data/fx/usd/2026.json +458 -93
  43. data/data/fx/usd/_annual.json +47 -2
  44. data/data/manifest.json +156 -8
  45. data/lib/timeprice/cli.rb +6 -6
  46. data/lib/timeprice/compare.rb +36 -3
  47. data/lib/timeprice/cpi_lookup.rb +64 -18
  48. data/lib/timeprice/data_loader.rb +8 -13
  49. data/lib/timeprice/date.rb +62 -0
  50. data/lib/timeprice/exchange.rb +49 -23
  51. data/lib/timeprice/granularity.rb +41 -10
  52. data/lib/timeprice/inflation.rb +15 -7
  53. data/lib/timeprice/metadata.rb +121 -0
  54. data/lib/timeprice/metadata_snapshot.rb +23 -0
  55. data/lib/timeprice/point.rb +11 -3
  56. data/lib/timeprice/schema.rb +78 -0
  57. data/lib/timeprice/supported.rb +1 -1
  58. data/lib/timeprice/version.rb +1 -1
  59. data/lib/timeprice.rb +14 -1
  60. metadata +24 -1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timeprice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick
@@ -23,6 +23,20 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '1.3'
26
+ - !ruby/object:Gem::Dependency
27
+ name: lefthook
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.1'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.1'
26
40
  - !ruby/object:Gem::Dependency
27
41
  name: rake
28
42
  requirement: !ruby/object:Gem::Requirement
@@ -107,8 +121,13 @@ files:
107
121
  - LICENSE.txt
108
122
  - NOTICE
109
123
  - README.md
124
+ - data/cpi/au.json
125
+ - data/cpi/ca.json
126
+ - data/cpi/cn.json
110
127
  - data/cpi/eu.json
111
128
  - data/cpi/jp.json
129
+ - data/cpi/kr.json
130
+ - data/cpi/ru.json
112
131
  - data/cpi/uk.json
113
132
  - data/cpi/us.json
114
133
  - data/cpi/vn.json
@@ -153,11 +172,15 @@ files:
153
172
  - lib/timeprice/compare.rb
154
173
  - lib/timeprice/cpi_lookup.rb
155
174
  - lib/timeprice/data_loader.rb
175
+ - lib/timeprice/date.rb
156
176
  - lib/timeprice/errors.rb
157
177
  - lib/timeprice/exchange.rb
158
178
  - lib/timeprice/granularity.rb
159
179
  - lib/timeprice/inflation.rb
180
+ - lib/timeprice/metadata.rb
181
+ - lib/timeprice/metadata_snapshot.rb
160
182
  - lib/timeprice/point.rb
183
+ - lib/timeprice/schema.rb
161
184
  - lib/timeprice/sources.rb
162
185
  - lib/timeprice/sources/coverage.rb
163
186
  - lib/timeprice/supported.rb