rbCaptcha 0.3.1 → 0.3.3

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: af6a0b184daadf75fd692dc4c5d458f0754cd5492c7141bd07cc8abf80d1d205
4
- data.tar.gz: 8d096981aa0929fb1476bb2908d74b2eb762656f4a28814621139a625772c1e3
3
+ metadata.gz: 61e816d8dbfb2b952f318648b04ffacb40ebbce8078f5f71a76784f89cae18e8
4
+ data.tar.gz: a31a9c205a1de26baad0adf80f0e609acdf0b9dfcfe820fcb54ab5ee6ad8be69
5
5
  SHA512:
6
- metadata.gz: 3c27f9262fa759faba28b06f488721055d82533969e09aeab176bf70513430c6f15afab879f8f30ddf1abeab15e61f1092cdce6b293f738bd16fa5ecb08933d1
7
- data.tar.gz: f24ffdaf0c11a5b63a74e884e1238ebca1ceb09efaee013677be2bf2db99d746230805621a9c17b92775741033021b33dfbf4f4236bfd89c7507fecef748bd2f
6
+ metadata.gz: 0cb6558cc05464f5d808144cab1b2bcf1600ceedfe73e711c0261e39d6a719eacae74e7a7c08485076bda19817695abefa05827396788fc1f4a96804ffb50406
7
+ data.tar.gz: 11bd44607fd55adb2dcd4ae6e4d53498c7f4f96d7fa678e81281d973382d44d0e8b11ee8f83085d2dbce721e708bded510a5bda0bcb93a773fe8e7f397f56be2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbCaptcha
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.3"
5
5
  end
data/lib/rbCaptcha.rb CHANGED
@@ -1,37 +1,37 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "rbCaptcha/version"
3
4
  module RbCaptcha
4
- class Error < StandardError; end
5
-
6
- def captcharun()
7
- words = [
8
- '29183!с92-3822a29!``~39t', # => cat
9
- '38134@3#2d392o1911!!(@)O!!!#g', # => dog
10
- '3928937h392!@(o)303m39---e' # => home
11
- ]
5
+ def crun()
6
+
7
+ words = [
8
+ '29183!с92-3822a29!``~39t', # => cat
9
+ '38134@3#2d392o1911!!(@)O!!!#g', # => dog
10
+ '3928937h392!@(o)303m39---e' # => home
11
+ ]
12
12
 
13
- cword = words.sample
13
+ cword = words.sample
14
14
 
15
- if cword == words[0]
16
- truew = 'cat'
17
- elsif cword == words[1]
18
- truew = 'dog'
19
- elsif cword == words[2]
20
- truew = 'home'
21
- end
15
+ if cword == words[0]
16
+ truew = 'cat'
17
+ elsif cword == words[1]
18
+ truew = 'dog'
19
+ elsif cword == words[2]
20
+ truew = 'home'
21
+ end
22
22
 
23
- puts "Please, to continue, write a word that is written in lowercase letters.\n #{cword}"
23
+ puts "Please, to continue, write a word that is written in lowercase letters.\n #{cword}"
24
24
 
25
- mw0 = gets.chomp
26
- mw = mw0.downcase
27
- if mw == truew
28
- puts "You have passed the captcha sir."
29
- sleep(5)
30
- return true
31
- else
32
- puts "You didn't pass the captcha, try again."
25
+ mw0 = gets.chomp
26
+ mw = mw0.downcase
27
+ if mw == truew
28
+ puts "You have passed the captcha sir."
29
+ return true
30
+ else
31
+ puts "You didn't pass the captcha, try again."
32
+ return false
33
+ end
34
+
33
35
  sleep(5)
34
- return false
35
36
  end
36
- end
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbCaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitriySergeevich