codebreker_manfly 0.1.1 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7642ab574f4aae8600439d051488f121c97a1dc939ae085a9aa720a53bd9fa
|
4
|
+
data.tar.gz: 5091407e911b675423474aed6cbcf6ee6aaf0f612eccc4d72a1a66fb51b3cfb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea0cae7ef6cac284875d936bb07047b4846c304437f154b57d99ad0b8b5ba0ad961c5236528380a96ba49e86d693c09be582deed89070cc41a4b89c0170ff93d
|
7
|
+
data.tar.gz: 9a1db498800ef72bcc551e081c2845fa8745785db547547aae476318a92907b0d20ee0da01366305624fe2b02e7dd9d7f039aa99719c2652a6525ebd466edae4
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module
|
3
|
+
module CodebrekerManfly
|
4
4
|
class UserStatistics < ValidatableEntity
|
5
5
|
include Validator
|
6
6
|
attr_reader :user, :difficulty, :attempts, :hints, :date
|
@@ -17,8 +17,8 @@ module CodebreakerManflu
|
|
17
17
|
private
|
18
18
|
|
19
19
|
def validate
|
20
|
-
add_error(:user, I18n.t(:unexpected_class_error)) unless valid_class?(
|
21
|
-
add_error(:difficulty, I18n.t(:unexpected_class_error)) unless valid_class?(
|
20
|
+
add_error(:user, I18n.t(:unexpected_class_error)) unless valid_class?(CodebrekerManfly::User, user)
|
21
|
+
add_error(:difficulty, I18n.t(:unexpected_class_error)) unless valid_class?(CodebrekerManfly::Difficulty,
|
22
22
|
difficulty)
|
23
23
|
validate_attempts
|
24
24
|
validate_hints
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codebreker_manfly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manfly1
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- bin/console
|
169
169
|
- bin/setup
|
170
170
|
- codebreker_manfly-0.1.0.gem
|
171
|
+
- codebreker_manfly-0.1.1.gem
|
171
172
|
- config/locales/errors.yml
|
172
173
|
- lib/codebreker_manfly.rb
|
173
174
|
- lib/codebreker_manfly/autoload.rb
|