inflation_db 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: 12183d8428864a15c76c665e453253a1d92226981e1179a4793a405fe1aed828
4
- data.tar.gz: 8a13afaf6f0b6ef3d7c593e36d3ff123c141ca7f486e4423ad5c8d064ee37229
3
+ metadata.gz: 50b172a9954fb2eb92e35b7f4298f6ea9820c1bd104819254a0df5f85734955f
4
+ data.tar.gz: ca3b5fe7dc827340a5abab15433fd9e9a432fc4b81ae181efbcacb9adc335440
5
5
  SHA512:
6
- metadata.gz: 846545788a620caf8b904725808eaddfab8739ba64c3303c8f8f4316e1ff4c7581b7651cb9d4eea22265cab745e983763fff3cfcee1b6d7d0a5a5defa1bd2f70
7
- data.tar.gz: 63c11b1360f8e8a8d3dbbb6bca2a0d242390ed6033528c38bdb653678eb45c0500d117878e7fdf9ca62d2cba9d49686ad424a2dd829e01c06fa5e22650b66939
6
+ metadata.gz: 7464bde4ab173b3af6a736abeba2afbaf1fcb16402219b98664c9c9b8dadf8a559be7c4c16d3dff4d79aedc9415740f2cbe27679f1ad1eadb8bee716198a7678
7
+ data.tar.gz: 960fdd4e7e46eef7bbd8b964a55dd7acddb1ead20609fd89df056b809030309bdf7a33512aa0dc3715f6a952b54684f0e23136c4dda79e507c7d1dd81bf202e4
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ inflation_db (0.2.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ rake (10.4.2)
11
+ rspec (3.8.0)
12
+ rspec-core (~> 3.8.0)
13
+ rspec-expectations (~> 3.8.0)
14
+ rspec-mocks (~> 3.8.0)
15
+ rspec-core (3.8.2)
16
+ rspec-support (~> 3.8.0)
17
+ rspec-expectations (3.8.4)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.8.0)
20
+ rspec-mocks (3.8.1)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.8.0)
23
+ rspec-support (3.8.2)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ bundler (~> 2.0)
30
+ inflation_db!
31
+ rake (~> 10.0)
32
+ rspec (~> 3.0)
33
+
34
+ BUNDLED WITH
35
+ 2.0.2
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # InflationDb
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/inflation_db`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ InflationDb allows you to take a dollar amount from any year between 1635 and 2018 and find that amount adjusted for inflation in 2019.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,17 +20,23 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ Call on the calculation method by adding this line to your code:
24
+
25
+ ```calculate_inflation(year_of_original_amount, that_original_amount)```
26
26
 
27
- ## Development
27
+ and the method will return a float rounded to two decimal places.
28
28
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
29
+ ## Roadmap
30
30
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
+ Future releases will include the ability to calculate inflation from any year (post-1635) to any later year (not just 2019); and the ability to reverse the calculation, ie calculate what a 2019 dollar amount would have been worth in a previous year.
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/<github username>/inflation_db. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dybushnell/inflation_db. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## Acknowledgments
38
+
39
+ I would like to thank Nick Stano for his guidance and assistance. I would also like to thank the Flatiron School, Tashawn Williams, Brianna Dixon, and Jeff Hwang.
36
40
 
37
41
  ## License
38
42
 
@@ -40,4 +44,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
44
 
41
45
  ## Code of Conduct
42
46
 
43
- Everyone interacting in the InflationDb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/<github username>/inflation_db/blob/master/CODE_OF_CONDUCT.md).
47
+ Everyone interacting in the InflationDb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dybushnell/inflation_db/blob/master/CODE_OF_CONDUCT.md).
data/inflation_db.gemspec CHANGED
@@ -4,7 +4,7 @@ require "inflation_db/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "inflation_db"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.2.0"
8
8
  spec.authors = ["Dave Bushnell"]
9
9
  spec.email = ["dybushnell@gmail.com"]
10
10
 
@@ -1,3 +1,3 @@
1
1
  module InflationDb
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inflation_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Bushnell
@@ -66,6 +66,7 @@ files:
66
66
  - ".travis.yml"
67
67
  - CODE_OF_CONDUCT.md
68
68
  - Gemfile
69
+ - Gemfile.lock
69
70
  - LICENSE.txt
70
71
  - README.md
71
72
  - Rakefile