sayisal_captcha 0.0.2 → 0.0.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
- SHA1:
3
- metadata.gz: 99c9203bae948ef7f34e82307bb1464a4012fd0b
4
- data.tar.gz: 03293bef85c5e88d57056f3d4a5f3e38ad85ee80
2
+ SHA256:
3
+ metadata.gz: 9b074233e61b1c0039259d628e5803c9324875b65de337baba35a0d996903cf0
4
+ data.tar.gz: 52f6b27876e8ff5490b0fd07828c4f319b533cf8cc10e452b37961c7222b4110
5
5
  SHA512:
6
- metadata.gz: 0ee9f98c03f5982ca606663b246b0f2a40dd96eae8ca76e3bbb7c11605d282a50f84613b1db1e76698eb66b078077211a694845ba9f465b2c68a082717e57009
7
- data.tar.gz: a22ec22c5cc816cc6dd2f316214a2fc97ef85c02f2d2d2eccad306ec8cdc3d7943b6b09b018ecd2971be760a95d95d01103cc656f4c82789867b0974caa63004
6
+ metadata.gz: e1c5335f383fc20a5f2b44074e79ebacb35a0dae6ed6e169bbb38fb7b202bbac2128eaf3729728847d9e56d1453bb90c0c710493369ffb8443a484401ac6363c
7
+ data.tar.gz: fa4282d9ce55c4144f7bdbc37027e26f67230ac24e8929c7b3464a0037057577c86e866fe231e0dba9072a37bf124eed54ce19aa8a914a1160eb35764f90fa15
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ scrap.txt
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.1.1
5
+ script: bundle exec rake test
data/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ [![Gem Version](https://badge.fury.io/rb/sayisal_captcha.svg)](http://badge.fury.io/rb/sayisal_captcha)
2
+ [![Build Status](https://travis-ci.org/vigo/sayisal_captcha.svg?branch=master)](https://travis-ci.org/vigo/sayisal_captcha)
3
+ [![Coverage Status](https://coveralls.io/repos/vigo/sayisal_captcha/badge.png?branch=master)](https://coveralls.io/r/vigo/sayisal_captcha?branch=master)
4
+ [![Code Climate](https://codeclimate.com/github/vigo/sayisal_captcha/badges/gpa.svg)](https://codeclimate.com/github/vigo/sayisal_captcha)
5
+ [![Test Coverage](https://codeclimate.com/github/vigo/sayisal_captcha/badges/coverage.svg)](https://codeclimate.com/github/vigo/sayisal_captcha)
6
+ [![Circle CI](https://circleci.com/gh/vigo/sayisal_captcha/tree/master.svg?style=svg)](https://circleci.com/gh/vigo/sayisal_captcha/tree/master)
7
+ [![Codeship](https://codeship.com/projects/6567b7f0-c1a0-0132-cd93-3eb2295b72b3/status?branch=master)](https://codeship.com/projects/73579)
8
+
1
9
  # SayisalCaptcha
2
10
 
3
11
  Captcha işlemleri için random tek basamaklı 2 sayı üretir ve yine random
@@ -13,8 +21,8 @@ gem 'sayisal_captcha'
13
21
 
14
22
  ve çalıştırmak için:
15
23
 
16
- $ bundle # ya da
17
- $ bundle install --path=vendor/bundle
24
+ $ bundle config set path 'vendor/bundle'
25
+ $ bundle install
18
26
 
19
27
  Ya da:
20
28
 
@@ -31,6 +39,12 @@ captcha = SayisalCaptcha.generate_question
31
39
  # {:first_number=>8, :last_number=>7, :operation=>:+, :question=>"8 + 7", :result=>15}
32
40
  ```
33
41
 
42
+ ## Test
43
+
44
+ ```bash
45
+ $ bundle exec rake test
46
+ ```
47
+
34
48
  ## Katkı Yapmak için
35
49
 
36
50
  1. `fork` yapın ( https://github.com/vigo/sayisal_captcha/fork )
data/circle.yml ADDED
@@ -0,0 +1,5 @@
1
+ machine:
2
+ timezone:
3
+ Europe/Istanbul
4
+ ruby:
5
+ version: 2.2.0
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require "sayisal_captcha/version"
2
4
 
3
5
  # Kullanılacak modül
@@ -1,3 +1,3 @@
1
1
  module SayisalCaptcha
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -18,7 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.6"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "minitest"
21
+ spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.4'
22
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
23
+ spec.add_development_dependency 'minitest', '~> 5.14'
24
+ spec.add_development_dependency 'coveralls', '~> 0.8.23'
24
25
  end
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'minitest/autorun'
2
5
  require 'sayisal_captcha'
3
6
 
@@ -16,13 +19,13 @@ class SayisalCaptchaTest < Minitest::Test
16
19
  digits = result.first
17
20
  texts = result.last
18
21
  digits.each_with_index do |number, index|
19
- assert_instance_of Fixnum, number
22
+ assert_instance_of Integer, number
20
23
  assert_equal texts[index], @captcha.number_to_text(number: number)
21
24
  end
22
25
  end
23
26
 
24
27
  def test_question
25
28
  result = @captcha.generate_question
26
- assert_match /\d (\*|\+) \d/, result[:question]
29
+ assert_match (/\d (\*|\+) \d/), result[:question]
27
30
  end
28
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sayisal_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uğur Özyılmazel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,42 +16,68 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '2.1'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.1.4
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '1.6'
29
+ version: '2.1'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.1.4
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '10.0'
39
+ version: '13.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 13.0.1
34
43
  type: :development
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - "~>"
39
48
  - !ruby/object:Gem::Version
40
- version: '10.0'
49
+ version: '13.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 13.0.1
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: minitest
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
- - - ">="
57
+ - - "~>"
46
58
  - !ruby/object:Gem::Version
47
- version: '0'
59
+ version: '5.14'
48
60
  type: :development
49
61
  prerelease: false
50
62
  version_requirements: !ruby/object:Gem::Requirement
51
63
  requirements:
52
- - - ">="
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '5.14'
67
+ - !ruby/object:Gem::Dependency
68
+ name: coveralls
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 0.8.23
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
53
79
  - !ruby/object:Gem::Version
54
- version: '0'
80
+ version: 0.8.23
55
81
  description: 0-9 arası sayıları kullanarak random olarak 2 sayı seçer ve yine random
56
82
  olarak toplama ya da çarpma yaparak sonucu verir.
57
83
  email:
@@ -60,11 +86,14 @@ executables: []
60
86
  extensions: []
61
87
  extra_rdoc_files: []
62
88
  files:
89
+ - ".coveralls.yml"
63
90
  - ".gitignore"
91
+ - ".travis.yml"
64
92
  - Gemfile
65
93
  - LICENSE.txt
66
94
  - README.md
67
95
  - Rakefile
96
+ - circle.yml
68
97
  - lib/sayisal_captcha.rb
69
98
  - lib/sayisal_captcha/version.rb
70
99
  - sayisal_captcha.gemspec
@@ -88,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
117
  - !ruby/object:Gem::Version
89
118
  version: '0'
90
119
  requirements: []
91
- rubyforge_project:
92
- rubygems_version: 2.2.2
120
+ rubygems_version: 3.0.3
93
121
  signing_key:
94
122
  specification_version: 4
95
123
  summary: Sayıların Türkçe karşılıklarından captcha üretir.