jpl_missions 0.2.0 → 0.2.1
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/jpl_missions-0.2.0.gem +0 -0
- data/lib/jpl_missions/cli.rb +4 -4
- data/lib/jpl_missions/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2eb28ba087126b6ce97ada201b9a4736c589d3bb07f2c7ff2554aef53c7b8155
|
|
4
|
+
data.tar.gz: 7617f3584904612c2a8f2288c1fec05f5c2cf6e4b4c8ebce859b08e1e60a1fdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f687d33e937db2cbf506052240f3ea54bea43a6958d1dc915c9c9d2aca2af637022d2ce0f93aa4b27eba2019146a5dd2ea43f0728755be0b6ad5c4cb3deaa8eb
|
|
7
|
+
data.tar.gz: 20ad5488f2bf2baa1d93feb71c6edcd64a6a7df0333834761e6def2353fc73d618c132a14721e77f75ebd1619cfec4daea634b4111b8ca52775ee352d4a1d8ff
|
|
Binary file
|
data/lib/jpl_missions/cli.rb
CHANGED
|
@@ -41,13 +41,13 @@ class JPLMissions::CLI
|
|
|
41
41
|
def list_missions(option)
|
|
42
42
|
case option
|
|
43
43
|
when '1'
|
|
44
|
-
list_missions_from_url('https://www.jpl.nasa.gov/missions/?search=&type=current&missions_target=&mission_type=&launch_date
|
|
44
|
+
list_missions_from_url('https://www.jpl.nasa.gov/missions/?search=&type=current&missions_target=&mission_type=&launch_date=ascending#submit')
|
|
45
45
|
list_nav
|
|
46
46
|
when '2'
|
|
47
|
-
list_missions_from_url('https://www.jpl.nasa.gov/missions/?search=&type=past&missions_target=&mission_type=&launch_date
|
|
47
|
+
list_missions_from_url('https://www.jpl.nasa.gov/missions/?search=&type=past&missions_target=&mission_type=&launch_date=ascending#submit')
|
|
48
48
|
list_nav
|
|
49
49
|
when '3'
|
|
50
|
-
list_missions_from_url('https://www.jpl.nasa.gov/missions/?search=&type=future&missions_target=&mission_type=&launch_date
|
|
50
|
+
list_missions_from_url('https://www.jpl.nasa.gov/missions/?search=&type=future&missions_target=&mission_type=&launch_date=ascending#submit')
|
|
51
51
|
list_nav
|
|
52
52
|
when '4'
|
|
53
53
|
list_missions_from_url('https://www.jpl.nasa.gov/missions/?type=proposed')
|
|
@@ -70,7 +70,7 @@ class JPLMissions::CLI
|
|
|
70
70
|
puts ">> To return to the main menu, enter 'exit.'"
|
|
71
71
|
puts ""
|
|
72
72
|
input = gets.chomp
|
|
73
|
-
if input.between?(
|
|
73
|
+
if input.to_i.between?(1, JPLMissions::Mission.all.size)
|
|
74
74
|
display_mission_details(input)
|
|
75
75
|
list_nav
|
|
76
76
|
elsif input == "exit"
|
data/lib/jpl_missions/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jpl_missions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "'Travis Petersen'"
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -59,6 +59,7 @@ files:
|
|
|
59
59
|
- bin/setup
|
|
60
60
|
- config/environment.rb
|
|
61
61
|
- jpl_missions-0.1.0.gem
|
|
62
|
+
- jpl_missions-0.2.0.gem
|
|
62
63
|
- jpl_missions.gemspec
|
|
63
64
|
- lib/jpl_missions.rb
|
|
64
65
|
- lib/jpl_missions/Mission.rb
|