andrii_codebreaker 0.1.10 → 0.1.11

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: c76e659029aa6dd462471931657ed63a1c5f6dbfaf4482a2785b04e6ff283c30
4
- data.tar.gz: 484a39816c3997e458abdbd079294cf54ecaac28b5403893eff8df04e00b1c41
3
+ metadata.gz: 4bbc75e2ca53efd3c8c664765094884f8b2f1238c3b010b66f1652d41fbe3875
4
+ data.tar.gz: c929acbe775de6c16915289aab8ebcba90cc64c6e1f57bd671526552adeb6688
5
5
  SHA512:
6
- metadata.gz: 9780ba3df83d7369cc5beb19a85e3c3db5f2e6f36da96b1f1fcf9cba60c9714c6fe22e808e083f6ab37e45fae933cf1e6434d58bd5734d131edd425708ecb026
7
- data.tar.gz: e6dcf5747d03569eed9d26072668a2a8cae95381088a294e78c3bfac39c57d9158b6e2543fb0fda1606f2803890d514cbb80fd00aee6be001aeb6f47eb940983
6
+ metadata.gz: a034dc7c27ac804ca5ccfa9810134a34d71d9ca10af0da69123ea91e5d5e0bf88842ce272fc4c7d0946cd8b89738bcb87c7c61168119c9c042c46ddf9603c592
7
+ data.tar.gz: 48344173cf96f64068804b5e5e5074cbf3338a43731b36c509d5fade4db96f4dee327ac2e7565ea5a41042dba5d3174c996478c80424b765fcb313817110dd87
data/Gemfile.lock CHANGED
@@ -8,15 +8,12 @@ GEM
8
8
  specs:
9
9
  ast (2.4.2)
10
10
  colorize (0.8.1)
11
- concurrent-ruby (1.1.9)
12
11
  diff-lcs (1.4.4)
13
12
  docile (1.4.0)
14
13
  fasterer (0.9.0)
15
14
  colorize (~> 0.7)
16
15
  ruby_parser (>= 3.14.1)
17
16
  ffaker (2.20.0)
18
- i18n (1.8.11)
19
- concurrent-ruby (~> 1.0)
20
17
  parallel (1.21.0)
21
18
  parser (3.0.2.0)
22
19
  ast (~> 2.4.1)
@@ -69,7 +66,6 @@ DEPENDENCIES
69
66
  andrii_codebreaker!
70
67
  fasterer
71
68
  ffaker
72
- i18n
73
69
  rake
74
70
  rspec
75
71
  rubocop
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency 'fasterer'
23
23
  spec.add_development_dependency 'ffaker'
24
- spec.add_development_dependency 'i18n'
25
24
  spec.add_development_dependency 'rake'
26
25
  spec.add_development_dependency 'rspec'
27
26
  spec.add_development_dependency 'rubocop'
@@ -16,7 +16,7 @@ module AndriiCodebreaker
16
16
  def validate_difficulty(name)
17
17
  return DIFFICULTY[name.to_sym] if DIFFICULTY.keys.include? name.to_sym
18
18
 
19
- raise ArgumentError, I18n.t('game.difficulty_input_error')
19
+ raise ArgumentError
20
20
  end
21
21
  end
22
22
  end
@@ -8,13 +8,6 @@ module AndriiCodebreaker
8
8
  attr_reader :player_name, :difficulties, :secret_code
9
9
  attr_accessor :used_hints, :used_attempts, :available_hints
10
10
 
11
- CONST_COMMAND = {
12
- start: I18n.t('game.start'),
13
- rules: I18n.t('game.rules'),
14
- stats: I18n.t('game.stats'),
15
- exit: I18n.t('game.exit')
16
- }.freeze
17
-
18
11
  def initialize(player_name, difficulty)
19
12
  @player_name = User.new(player_name)
20
13
  @difficulties = Difficulty.new(difficulty)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AndriiCodebreaker
4
- VERSION = '0.1.10'
4
+ VERSION = '0.1.11'
5
5
  end
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'yaml'
4
- require 'i18n'
5
- require_relative '../config/i18n'
6
4
  require_relative 'andrii_codebreaker/constants'
7
5
  require_relative 'andrii_codebreaker/model'
8
6
  require_relative 'andrii_codebreaker/user'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andrii_codebreaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrii
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: i18n
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -144,8 +130,6 @@ files:
144
130
  - andrii_codebreaker.gemspec
145
131
  - bin/console
146
132
  - bin/setup
147
- - config/i18n.rb
148
- - config/locales/en.yml
149
133
  - lib/andrii_codebreaker.rb
150
134
  - lib/andrii_codebreaker/constants.rb
151
135
  - lib/andrii_codebreaker/difficulty.rb
data/config/i18n.rb DELETED
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- I18n.config.load_path << Dir[File.expand_path('config/locales').concat('/*.yml')]
@@ -1,7 +0,0 @@
1
- en:
2
- game:
3
- start: "start"
4
- rules: "rules"
5
- stats: "stats"
6
- exit: "exit"
7
- difficulty_input_error: "This difficulty is not available."