pokedex-terminal 0.2.2 → 0.2.3
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/lib/classes/Main_menu.rb +4 -3
- data/lib/pokedex-terminal.rb +1 -1
- data/lib/terminal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a3f72f33cbec63b11b6a7c928ab747fef4ee1e68257941f4ecfe2d69805846
|
4
|
+
data.tar.gz: 9da207f4276526738b0c7844a3d01b2773b04b1541a39e635f67bc7267ab032f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfbead1039bdd31d0c4b12f3373502628609cc80e554e06de70ac2c75c1806ea019e3a7eb2183224854cc014fced58f8d73654dfb1b0d81b342b4681a427856e
|
7
|
+
data.tar.gz: 6df4df31882eaedc6ac45d5020b942be1b96effd60457faf776be19b0b8b0ee5d5fccb7f3890c8757aa52525ddf569e6b370abfa4b54ae84819e0e0d74ac056c
|
data/Gemfile.lock
CHANGED
data/lib/classes/Main_menu.rb
CHANGED
@@ -11,7 +11,7 @@ require 'smarter_csv'
|
|
11
11
|
|
12
12
|
class Main_menu
|
13
13
|
# Creates an array of hashes from the CSV file with keys taken from CSV headers.
|
14
|
-
@@pokemon_data = SmarterCSV.process(
|
14
|
+
@@pokemon_data = SmarterCSV.process(File.expand_path("../pokemon.csv", __FILE__))
|
15
15
|
|
16
16
|
def self.run
|
17
17
|
loop do
|
@@ -83,9 +83,10 @@ class Main_menu
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def self.exit_menu
|
86
|
-
|
86
|
+
exit_menu_prompt = TTY::Prompt.new(active_color: :red)
|
87
|
+
save_changes = exit_menu_prompt.ask('Are you sure you want to save your changes?')
|
87
88
|
if save_changes == true
|
88
|
-
CSV.open(
|
89
|
+
CSV.open(File.expand_path("../pokemon.csv", __FILE__), 'wb') do |csv|
|
89
90
|
keys = @@pokemon_data.first.keys
|
90
91
|
csv << keys
|
91
92
|
@@pokemon_data.each do |hash|
|
data/lib/pokedex-terminal.rb
CHANGED
data/lib/terminal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pokedex-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nova
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: artii
|