codebreaker-mikhail 0.1.2 → 0.1.5

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: 9ae855fc9138d9fcaad1c52d2699a384618b67ffa25ef37e3f39cefb60a45fec
4
- data.tar.gz: 2a1363abbd28057e78633c4c0f03673e798da27eced6606088211158baa86d58
3
+ metadata.gz: e9b27a05a66bf88a3742fbed5449b6ffaa97a936aad50129b28315d07d786768
4
+ data.tar.gz: b9445642ebeb0c9e13c3ccf457c9053368450c2ed91f6e9451137730df3abcef
5
5
  SHA512:
6
- metadata.gz: 3e587f7e5c1e708485ab6589ef722d7a584668715f3b2002c1a3167cfb93cc87027cb862a199ec419e11c4b3d68f7851932542618673e81d904bf075707c0098
7
- data.tar.gz: 6b8d8c0fdbd3c977cd7d2ebdc138f0793f5b62372b2a1012ba3c326eddc5cdadfe274271a81d34c7c3570fb08f8b062412a3619e6b755083e37436b64394dda5
6
+ metadata.gz: 5bad0188d94baae33335f95670c18aaca6a1b5886926574c5ad76c6a3361a4e044d6f1a6b8cf954fe628993d9ee884dc2dcf6243d99660ae551d61f89f4ea2ea
7
+ data.tar.gz: 643d8387d3e929b37787e2c779925328edce4146ca9b3ce5aaf3d8a38189a853a5c31fa670cf7b398c5a649af3196956aaa5d8ecd1fd935f28685eb96ee4ff37
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker-mikhail (0.1.1)
4
+ codebreaker-mikhail (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/codebreaker.gemspec CHANGED
@@ -14,7 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.metadata["homepage_uri"] = "https://github.com/MikhailBogun/Codebreaker"
15
15
  spec.metadata["source_code_uri"] = "https://github.com/MikhailBogun/Codebreaker"
16
16
  spec.metadata["changelog_uri"] = "https://github.com/MikhailBogun/Codebreaker"
17
- spec.metadata["rubygems_mfa_required"] = "false"
18
17
 
19
18
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
19
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
@@ -1,2 +1,12 @@
1
+ require "yaml"
2
+ require_relative "version"
1
3
  require_relative "game_const"
2
4
  require_relative "matrix"
5
+ require_relative "validation/errors/input_error"
6
+ require_relative "validation/errors/length_error"
7
+ require_relative "validation/errors/state_error"
8
+ require_relative "validation/validation"
9
+ require_relative "code_generator"
10
+ require_relative "user"
11
+ require_relative "file_store"
12
+ require_relative "game"
@@ -3,6 +3,7 @@
3
3
  module Codebreaker
4
4
  class Game
5
5
  include Validation
6
+ include FileStore
6
7
 
7
8
  attr_reader :hints, :user, :state, :secret_code
8
9
 
@@ -47,7 +48,7 @@ module Codebreaker
47
48
  true
48
49
  end
49
50
 
50
- def show_difficulties
51
+ def self.show_difficulties
51
52
  Constants::DIFFICULTIES
52
53
  end
53
54
 
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "errors/input_error"
4
- require_relative "errors/length_error"
5
- require_relative "errors/state_error"
6
-
7
3
  module Codebreaker
8
4
  module Validation
9
5
  NUMBERS = /^[1-6]{4}$/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Codebreaker
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.5"
5
5
  end
data/lib/codebreaker.rb CHANGED
@@ -1,15 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "yaml"
4
-
5
- require_relative "codebreaker/version"
6
- require_relative "codebreaker/game_const"
7
3
  require_relative "codebreaker/autoloader"
8
- require_relative "codebreaker/validation/validation"
9
- require_relative "codebreaker/code_generator"
10
- require_relative "codebreaker/user"
11
- require_relative "codebreaker/file_store"
12
- require_relative "codebreaker/game"
13
4
 
14
5
  module Codebreaker
15
6
  class Error < StandardError; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker-mikhail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Bogun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler