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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6adf8f75acfb7f91179842218086cc2f97410355ebbf831279410c98f7b1cdbd
4
- data.tar.gz: 3f11a1787eb5773128277ab8759d7ec30f5158f48007f59afb3de8bc6264fb0b
3
+ metadata.gz: 31a3f72f33cbec63b11b6a7c928ab747fef4ee1e68257941f4ecfe2d69805846
4
+ data.tar.gz: 9da207f4276526738b0c7844a3d01b2773b04b1541a39e635f67bc7267ab032f
5
5
  SHA512:
6
- metadata.gz: 154c267a713315524bf3459fed8570459aa46a5ea9537ddf58fc662e6e351cf613b9b3418b4d562604015a86be2e3b6e87a4837f3171d5f40cf9d47308b790ac
7
- data.tar.gz: 41dd5043f73092f310d3a31faa2c64ec168f36def3cea59b811b0ca11a3ad8bd896567d29fb2ebf6dc5438acb73f3957b4e1c70f05c0175d9d19bfa702dd112c
6
+ metadata.gz: bfbead1039bdd31d0c4b12f3373502628609cc80e554e06de70ac2c75c1806ea019e3a7eb2183224854cc014fced58f8d73654dfb1b0d81b342b4681a427856e
7
+ data.tar.gz: 6df4df31882eaedc6ac45d5020b942be1b96effd60457faf776be19b0b8b0ee5d5fccb7f3890c8757aa52525ddf569e6b370abfa4b54ae84819e0e0d74ac056c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pokedex-terminal (0.2.2)
4
+ pokedex-terminal (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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('classes/pokemon.csv')
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
- save_changes = main_menu_prompt.ask('Are you sure you want to save your changes?')
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('classes/pokemon.csv', 'wb') do |csv|
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|
@@ -3,6 +3,6 @@
3
3
  require_relative 'classes/Main_menu'
4
4
 
5
5
  fork { exec "artii 'Pokedex' --font larry3d | lolcat -a -d 15" }
6
- fork { exec "mpg123 -q Pokemon.mp3"}
6
+ fork { exec "mpg123 -q lib/Pokemon.mp3"}
7
7
  sleep(8)
8
8
  Main_menu.run
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pokedex
4
4
  module Terminal
5
- VERSION = '0.2.2'
5
+ VERSION = '0.2.3'
6
6
  end
7
7
  end
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.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-13 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: artii