fuelator 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -0
- data/lib/fuelator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca8f288aaca9783d8bae901f60d407142f4132e0
|
4
|
+
data.tar.gz: 4bd994d1b88bf000b2d41ff915abbb32e65c15a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 516dff6979b493648379ced6cb27b82b6aaf9569bf63350d99277bbb32cdb1ed2b0379b818bd5195ab3f75db7b17b0c2c048ad0f7441a99b8573fd8ce11de3f0
|
7
|
+
data.tar.gz: cd9347c040138684336e99bb551a64ca69e9befc3a87eb5c9722ddc4cc3b656c673ff5729d3677ecfc2f8d04052a6d55a2f8eec84fca1c2dd10efcfe528a2434
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,6 +24,13 @@ If you plan a trip to Moon, once you are at fuel station, run:
|
|
24
24
|
|
25
25
|
$ fuelator 28801, [[:launch, 9.807], [:land, 1.62], [:launch, 1.62], [:land, 9.807]]
|
26
26
|
|
27
|
+
Or use API provided:
|
28
|
+
```ruby
|
29
|
+
require 'fuelator'
|
30
|
+
|
31
|
+
Fuelator.calculate(28801, [[:launch, 9.807], [:land, 1.62], [:launch, 1.62], [:land, 9.807]])
|
32
|
+
# => 51898
|
33
|
+
```
|
27
34
|
## Development
|
28
35
|
|
29
36
|
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.
|
data/lib/fuelator/version.rb
CHANGED