codebreaker_mats 0.1.4 → 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: be5d1581cc67c924f9d76bfbb08dce8d6863891f3805e2fdd563994e0d998f91
4
- data.tar.gz: 21fa43b72410628ab21c125504794b5f0c0c64783adcd01d71d9e5e878af5e59
3
+ metadata.gz: 12b55316ac669cd102916e9ba8464d9b59496d9c3989d6060fd6072589f0cc20
4
+ data.tar.gz: 80940e1039b864382fd3f48fdfe9c6b08afb58bcd1d345bbdf15172dacf768da
5
5
  SHA512:
6
- metadata.gz: 6163601c6f48cb4c801ea3c5b4e26867a0df9ef6b3a25d970ce642ecf1312eaf92276aa33d9468dae6468c4e027a2ade0fc374126314b969ef54a2b6f32f1dce
7
- data.tar.gz: b5e9b933d4da8e96fc7566bf8e125a949ddcd088dd82bfee077eed719cd3c32a9cfd93bd939776a9182fdf2504919cdbd9cdb76d5b9a00cd788793bfb2db9d21
6
+ metadata.gz: 4a062ea5f80757f5536c61dedc8254ad321176c3d7353df6f37945bbe883e052352210acd4743e1db13ede973702e4090852d4274ca1447435491f13f6db209f
7
+ data.tar.gz: 5dc51e336f99829bb4cc3f91182ba36b64d589d9560aee782bf5cf5a706427cf3c6bae878d92f874a01ed15a9241ddccd5b2e973beb6bd00bc3e8c1b9070d9cc
@@ -0,0 +1,70 @@
1
+ version: 2.1
2
+
3
+ executors:
4
+ default:
5
+ working_directory: ~/repo
6
+ description: The official CircleCI Ruby Docker image
7
+ docker:
8
+ - image: circleci/ruby:2.6.0-node
9
+ environment:
10
+ BUNDLER_VERSION: 2.1.4
11
+
12
+ caches:
13
+ - &bundle_cache_full v2-repo-{{ checksum "Gemfile.lock" }}
14
+ - &bundle_cache v2-repo-
15
+
16
+ commands:
17
+ defaults:
18
+ steps:
19
+ - checkout
20
+ - restore_cache:
21
+ keys:
22
+ - *bundle_cache_full
23
+ - *bundle_cache
24
+ - run:
25
+ name: Configure Bundler
26
+ command: |
27
+ gem update --system
28
+ gem install bundler
29
+ - run: bundle install --path vendor/bundle
30
+ - save_cache:
31
+ key: *bundle_cache_full
32
+ paths:
33
+ - vendor/bundle
34
+ run_linters:
35
+ description: command to start linters
36
+ steps:
37
+ - run:
38
+ name: rubocop
39
+ command: bundle exec rubocop
40
+
41
+ run_specs:
42
+ steps:
43
+ - run:
44
+ name: run specs
45
+ command: |
46
+ mkdir /tmp/test-results
47
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
48
+ bundle exec rspec --format progress \
49
+ --out /tmp/test-results/rspec.xml \
50
+ $TEST_FILES
51
+ jobs:
52
+ lintering:
53
+ executor: default
54
+ steps:
55
+ - defaults
56
+ - run_linters
57
+ run_specs:
58
+ executor: default
59
+ steps:
60
+ - defaults
61
+ - run_specs
62
+
63
+ workflows:
64
+ version: 2
65
+ build:
66
+ jobs:
67
+ - lintering
68
+ - run_specs:
69
+ requires:
70
+ - lintering
data/Gemfile CHANGED
@@ -3,9 +3,9 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in codebreaker_mats.gemspec
4
4
  gemspec
5
5
 
6
+ gem 'fasterer', '0.8.3'
6
7
  gem 'rake', '~> 12.0'
7
8
  gem 'rspec', '~> 3.0'
8
9
  gem 'rubocop-rspec', require: false
9
- gem 'fasterer', '0.8.3'
10
10
 
11
11
  gem 'simplecov'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codebreaker_mats (0.1.4)
4
+ codebreaker_mats (0.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -66,6 +66,12 @@ module Codebreaker
66
66
  end
67
67
  end
68
68
 
69
+ def set_difficulty(diff, attempts, hints)
70
+ @number_of_attempts = @attempts_left = attempts
71
+ @number_of_hints = @hints_left = hints
72
+ @difficulty = diff
73
+ end
74
+
69
75
  private
70
76
 
71
77
  def generate_secret_code
@@ -1,3 +1,3 @@
1
1
  module CodebreakerMats
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebreaker_mats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-26 00:00:00.000000000 Z
11
+ date: 2020-07-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The app provides core for codebreaker game
14
14
  email:
@@ -17,11 +17,11 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".circleci/config.yml"
20
21
  - ".faterer.yml"
21
22
  - ".gitignore"
22
23
  - ".rspec"
23
24
  - ".rubocop.yml"
24
- - ".travis.yml"
25
25
  - CODE_OF_CONDUCT.md
26
26
  - Gemfile
27
27
  - Gemfile.lock
@@ -38,7 +38,6 @@ files:
38
38
  - lib/codebreaker_mats/markers/plus_minus_marker.rb
39
39
  - lib/codebreaker_mats/matcher.rb
40
40
  - lib/codebreaker_mats/version.rb
41
- - stat.yml
42
41
  homepage: https://github.com/Swooty18/codebreaker_mats.git
43
42
  licenses:
44
43
  - MIT
@@ -60,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
61
  requirements: []
63
- rubygems_version: 3.1.3
62
+ rubygems_version: 3.1.4
64
63
  signing_key:
65
64
  specification_version: 4
66
65
  summary: codebreaker game
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.1
6
- before_install: gem install bundler -v 2.1.4
data/stat.yml DELETED
File without changes