pokedex-terminal 0.2.1 → 0.2.2

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: f4e477833079d75675e32f8e120fcd75dc98cd4ba4d3d6b0ac547393e28c0a08
4
- data.tar.gz: 8e3b1000f9ed8bf6d1ddb8422bff9f27018275b11424e5c5b1bb7034a79dffec
3
+ metadata.gz: 6adf8f75acfb7f91179842218086cc2f97410355ebbf831279410c98f7b1cdbd
4
+ data.tar.gz: 3f11a1787eb5773128277ab8759d7ec30f5158f48007f59afb3de8bc6264fb0b
5
5
  SHA512:
6
- metadata.gz: a73b8513a4f38143f72264d327e4dc6aa4257328dcd8ba4d351ea1af0e653b7973af7bbfc55fd40c596716257eae7302432f62d05ef2efaedadc40c6c5f3ee01
7
- data.tar.gz: 0cc5b63b94d2120eb4c9d64f8b4ad589136ed7d46f97559200dab55654ed4755f8be7e510fb2c5fca3f99db1a4abc7ff74c9a2d87dd1e81818632a2f45873b17
6
+ metadata.gz: 154c267a713315524bf3459fed8570459aa46a5ea9537ddf58fc662e6e351cf613b9b3418b4d562604015a86be2e3b6e87a4837f3171d5f40cf9d47308b790ac
7
+ data.tar.gz: 41dd5043f73092f310d3a31faa2c64ec168f36def3cea59b811b0ca11a3ad8bd896567d29fb2ebf6dc5438acb73f3957b4e1c70f05c0175d9d19bfa702dd112c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pokedex-terminal (0.2.1)
4
+ pokedex-terminal (0.2.2)
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(File.dirname(__FILE__) + '/pokemon.csv')
14
+ @@pokemon_data = SmarterCSV.process('classes/pokemon.csv')
15
15
 
16
16
  def self.run
17
17
  loop do
@@ -85,7 +85,7 @@ class Main_menu
85
85
  def self.exit_menu
86
86
  save_changes = main_menu_prompt.ask('Are you sure you want to save your changes?')
87
87
  if save_changes == true
88
- CSV.open(File.dirname(__FILE__) + '/pokemon.csv', 'wb') do |csv|
88
+ CSV.open('classes/pokemon.csv', 'wb') do |csv|
89
89
  keys = @@pokemon_data.first.keys
90
90
  csv << keys
91
91
  @@pokemon_data.each do |hash|
@@ -5,4 +5,4 @@ require_relative 'classes/Main_menu'
5
5
  fork { exec "artii 'Pokedex' --font larry3d | lolcat -a -d 15" }
6
6
  fork { exec "mpg123 -q Pokemon.mp3"}
7
7
  sleep(8)
8
- Main_menu.run
8
+ Main_menu.run
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pokedex
4
4
  module Terminal
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokedex-terminal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nova