rbCaptcha 0.3.2 → 0.3.3

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: 7da5d7a97f4e10887ab8782d27689791477ebd45fe341c1fbf00bc51be6346a3
4
- data.tar.gz: 1b2bb409872d041aca6ecd2a5a3510cb461568eac8d02599ed4ba1f9c6438044
3
+ metadata.gz: 61e816d8dbfb2b952f318648b04ffacb40ebbce8078f5f71a76784f89cae18e8
4
+ data.tar.gz: a31a9c205a1de26baad0adf80f0e609acdf0b9dfcfe820fcb54ab5ee6ad8be69
5
5
  SHA512:
6
- metadata.gz: 926e364cd78c12a88bb095c4db254de85f31638b60bd64c05aec2e0b84dbc45432146082fd787e25349e087bb13cf8a5e00c39c82e393b57cc94539213f92c53
7
- data.tar.gz: '0391d1204f450f2f55111b15699393f29485d07dccfcf7940ceef447e4a7c8e5f7b4c73851215f15ef518dc33dc16403d4a35098028440fcfc7d459553ca9162'
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.2"
4
+ VERSION = "0.3.3"
5
5
  end
data/lib/rbCaptcha.rb CHANGED
@@ -1,35 +1,37 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "rbCaptcha/version"
4
-
5
- def crun()
4
+ module RbCaptcha
5
+ def crun()
6
6
 
7
- words = [
8
- '29183!с92-3822a29!``~39t', # => cat
9
- '38134@3#2d392o1911!!(@)O!!!#g', # => dog
10
- '3928937h392!@(o)303m39---e' # => home
11
- ]
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
- return true
30
- else
31
- puts "You didn't pass the captcha, try again."
32
- return false
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
+
35
+ sleep(5)
33
36
  end
34
- sleep(5)
35
- end
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitriySergeevich