alex_codebreaker 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27cd5b4709e1ed372047a4ddb854b71afffea2ca579a37fae4b4047b5b9fd47b
4
- data.tar.gz: 2d87c18c9885633d9a96210dcf41b9dd391ed632495803d18ec067f1f108a254
3
+ metadata.gz: 45c5af39ea850dcbd22066892cd1e053979d47d08f59b2c74ea8d5b1f68e34ca
4
+ data.tar.gz: e47dd8355031d15aa7da23da06767cf3b650e7e98dcc5c50c8818f5c615167cd
5
5
  SHA512:
6
- metadata.gz: eaf51702ae8b5704f84b16d6986d8cc8c7e47339f45f15053c2bd32a563db555a7004b64076d94959439badae83f474e278b51e4bf8041393d685a5fa45c1d6a
7
- data.tar.gz: d6dac500500615a3c9655bd1ff85c1571300968397b147e489eaef7557c780b7f3b1c0e70529bd6191c020be0e60c33a1c6d7e938884f19e891b1df58b58779e
6
+ metadata.gz: 11a562623f8932d20f9c6f6aa9726fca094d05fd44c90970b8fc3be203bb8dd400003c6bdb88aae9a6e8c19fb26452a14e985f5a540797d11a353b80cfd84223
7
+ data.tar.gz: 99edfc134f0ca09d4795be1114d2ec6eeface1ae9bfa69175914aa44171db7a500898f23983493509eee587eed8078d6cc00f514e93ba4f6632e801b56f1cc75
@@ -1,7 +1,7 @@
1
1
  module AlexCodebreaker
2
2
  class Configuration
3
- DEFAULT_WINNERS_FOLDER_PATH = 'games/winners/'.freeze
4
- DEFAULT_GAMES_FOLDER_PATH = 'games/'.freeze
3
+ DEFAULT_WINNERS_FOLDER_PATH = 'games/winners'.freeze
4
+ DEFAULT_GAMES_FOLDER_PATH = 'games'.freeze
5
5
 
6
6
  attr_accessor :winners_folder_path, :games_folder_path
7
7
 
@@ -22,7 +22,7 @@ module AlexCodebreaker
22
22
  private
23
23
 
24
24
  def game_file_path
25
- "#{AlexCodebreaker.configuration.games_folder_path}#{@game_id}#{FILENAME_EXTENSION}"
25
+ "#{AlexCodebreaker.configuration.games_folder_path}/#{@game_id}#{FILENAME_EXTENSION}"
26
26
  end
27
27
  end
28
28
  end
@@ -43,7 +43,7 @@ module AlexCodebreaker
43
43
  def save_winner_statistic
44
44
  @time = Time.new
45
45
  check_folder_existence
46
- path = "#{AlexCodebreaker.configuration.winners_folder_path}#{WINNERS_FILE_NAME}"
46
+ path = "#{AlexCodebreaker.configuration.winners_folder_path}/#{WINNERS_FILE_NAME}"
47
47
  File.open(path, 'a') { |file| file.write(to_yaml) }
48
48
  end
49
49
 
@@ -1,5 +1,5 @@
1
1
  module AlexCodebreaker
2
2
  module Version
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alex_codebreaker
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
  - Oleksandr Loza
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2020-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler