humanizer 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NjA3NDJjNDJkMzgyZDIxMWRkMjJiNDljYmE1ZTgyMGI3MmIzMzA3OQ==
5
- data.tar.gz: !binary |-
6
- MDBhODE4NmIyODk1ZTY3YmE1M2ZjODkzNTdkZTQwYjIzNzdkNzhlZA==
2
+ SHA1:
3
+ metadata.gz: be89ceea477e5f5e5c498ff5306aad19e6317a8b
4
+ data.tar.gz: 1aaba686fc42c26228e4bbd4562e346d68a86808
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZjljYzRkNWYxNjljYzZlYTZhMjJiZmQ3NTFlMDc3ZjFjMzUyMjdiNjM0MTdh
10
- MGUxNDI4ZDhkMjU5NGY3ZjBkMjc3NTU5NzZiMDYyM2FiNDIwOWE3N2EzMTcy
11
- YzM0OTNkNzM0YzA5MzMzNTQ3NTk1NGRjYzg3MTYxMDgxODU1ZDQ=
12
- data.tar.gz: !binary |-
13
- NzE0Y2RjOTdmYTJmZTIzZGFmNmJmOWMyMTY0YmQwODQ3MDA1Y2FjZDM0ODRj
14
- OGE1NTZkMmJjODU3YzE1MGJjNTkwNDJmMDhhMGJlYWEwZmYzNzQwMDI1ODVi
15
- YjY3MmU4ZWYyYzhiYmM5MWUzYzAzZTMwZjU0OTFkOGU3NzIzZjU=
6
+ metadata.gz: 3ec3a319a7e009e8ef822abdbb40b7c162d0278770af14a89ab2db93d0da2a71d8560c67a41c20487ef9400680bf1c2b8da3fdb1cf75dd07924afea803ca76c7
7
+ data.tar.gz: 19e2fda87d29a6c67f8d6a1f39437a3fb9826709848d671b955d89e7ce0839e7df780f01ab1ea6614c5143091983482a1ac494c0a7fc7c424cbbeaedf2035c60
@@ -1,3 +1,8 @@
1
+ ### Humanizer 2.6.3 (2016-09-07)
2
+
3
+ * Added translations: Danish, Serbian & Swedish
4
+ * Additions to French translations
5
+
1
6
  ### Humanizer 2.6.2 (2014-11-25)
2
7
 
3
8
  * Added stripping of whitespace before comparing answers
@@ -0,0 +1,41 @@
1
+ da:
2
+ humanizer:
3
+ validation:
4
+ error: Bevis venligst, at du ikke er en robot
5
+ questions:
6
+ - question: To plus to?
7
+ answers: ["4", "fire"]
8
+ - question: Hvilket nummer kommer før tolv?
9
+ answers: ["11", "elleve"]
10
+ - question: Hvad er fem gange to?
11
+ answers: ["10", "ti"]
12
+ - question: "Indsæt det næste nummer i sekvensen: 10, 11, 12, 13, 14, .."
13
+ answers: ["15", "femten"]
14
+ - question: "Hvad er fem gange fem?"
15
+ answers: ["25", "fem og tyve", "femogtyve"]
16
+ - question: "Hvad er ti divideret med to?"
17
+ answers: ["5", "fem"]
18
+ - question: Hvad hedder dagen, der kommer efter mandag?
19
+ answer: "tirsdag"
20
+ - question: Hvad er den sidste måned i året?
21
+ answer: "december"
22
+ - question: Hvor mange minutter er der på en time?
23
+ answers: ["60", "tres"]
24
+ - question: Hvad er det modsatte af ned?
25
+ answer: "op"
26
+ - question: Hvad er det modsatte af nord?
27
+ answer: "syd"
28
+ - question: Hvad er det modsatte af dårlig?
29
+ answer: "god"
30
+ - question: Hvad er fire gange fire?
31
+ answers: ["16", "seksten"]
32
+ - question: Hvilket nummer kommer efter tyve?
33
+ answers: ["21", "enogtyve"]
34
+ - question: Hvilken måned kommer før juli?
35
+ answer: "juni"
36
+ - question: Hvad er femten divideret med tre?
37
+ answer: ["fem", "5"]
38
+ - question: Hvad er 14 minus 4?
39
+ answers: ["10", "ti"]
40
+ - question: "Hvad er den næste? Mandag, tirsdag, onsdag..."
41
+ answer: "torsdag"
@@ -1,43 +1,43 @@
1
1
  fr:
2
2
  humanizer:
3
3
  validation:
4
- error: Vous n'êtes pas humain
4
+ error: "Mauvaise réponse !"
5
5
  questions:
6
- - question: Deux plus deux font?
7
- answers: ["4", "quatre"]
6
+ - question: Deux plus deux font ?
7
+ answers: ["4", "quatre", "catre"]
8
8
  - question: "Liberté, Égalité,..."
9
- answer: fraternité
10
- - question: Quel est le chiffre qui précède douze?
9
+ answer: ["fraternité", "fraternite"]
10
+ - question: Quel est le chiffre qui précède douze ?
11
11
  answers: ["11", "onze"]
12
- - question: Cinq fois deux font?
12
+ - question: Cinq fois deux font ?
13
13
  answers: ["10", "dix"]
14
- - question: "Quel chiffre qui suivra? 10, 11, 12, 13, 14, .."
14
+ - question: "Quel chiffre suivra? 10, 11, 12, 13, 14, .."
15
15
  answers: ["15", "quinze"]
16
16
  - question: "Cinq fois cinq ne font pas dix mais?"
17
17
  answers: ["25", "vingt-cinq"]
18
18
  - question: "Dix divisé par deux fait?"
19
19
  answers: ["5", "cinq"]
20
- - question: Le jour de la semaine qui succède au dimanche est le...?
20
+ - question: Le jour de la semaine qui succède au dimanche est le... ?
21
21
  answer: ["lundi", "le lundi"]
22
- - question: Quel est le dernier mois de l'année'?
23
- answer: "décembre"
24
- - question: L'heure correspond à combien de minutes?
22
+ - question: Quel est le dernier mois de l'année' ?
23
+ answer: ["décembre", "decembre"]
24
+ - question: L'heure correspond à combien de minutes ?
25
25
  answers: ["60", "soixante"]
26
- - question: Le contraire de 'haut' est?
26
+ - question: Le contraire de 'haut' est ?
27
27
  answer: "bas"
28
- - question: Le sens inverse du Nord?
28
+ - question: Le sens inverse du Nord ?
29
29
  answer: ["sud", "le sud"]
30
- - question: Quel est le contraire du bien?
30
+ - question: Quel est le contraire du bien ?
31
31
  answer: ["mal", "le mal"]
32
- - question: Que font 4 fois quatre?
32
+ - question: Que font 4 fois quatre ?
33
33
  answers: ["16", "seize"]
34
- - question: Quel chiffre suit 20?
35
- answers: ["21", "vingt-et-un"]
36
- - question: Quel mois précède Juillet?
34
+ - question: Quel chiffre suit 20 ?
35
+ answers: ["21", "vingt-et-un", "vingt et un"]
36
+ - question: Quel mois précède Juillet ?
37
37
  answer: "juin"
38
- - question: Quinze divisé par 3 font?
38
+ - question: Quinze divisé par 3 font ?
39
39
  answer: ["cinq", "5"]
40
- - question: Quatorze moins 4 font?
40
+ - question: Quatorze moins 4 font ?
41
41
  answers: ["10", "dix"]
42
42
  - question: "Le suivant est? lundi, mardi, mercredi.."
43
43
  answer: "jeudi"
@@ -0,0 +1,43 @@
1
+ sr:
2
+ humanizer:
3
+ validation:
4
+ error: Robot detektovan
5
+ questions:
6
+ - question: Dva plus dva?
7
+ answers: ["4", "četiri", "cetiri"]
8
+ - question: Bajka o Ivici i ...
9
+ answer: ["Marici", "marici"]
10
+ - question: Broj pre dvanaest?
11
+ answers: ["11", "jedanaest"]
12
+ - question: Pet puta dva je?
13
+ answers: ["10", "deset"]
14
+ - question: "Nastavi niz: 10, 11, 12, 13, 14, ..."
15
+ answers: ["15", "petnaest"]
16
+ - question: "Pet puta pet?"
17
+ answers: ["25", "dvadeset pet", "dvadeset i pet"]
18
+ - question: "Deset podeljeno s dva je?"
19
+ answers: ["5", "pet"]
20
+ - question: Dan nakon ponedeljka?
21
+ answer: "utorak"
22
+ - question: Poslednji mesec u godini?
23
+ answer: "decembar"
24
+ - question: Koliko minuta ima u jednom satu?
25
+ answers: ["60", "šezdeset", "sezdeset"]
26
+ - question: Šta je suprotno od dole?
27
+ answer: "gore"
28
+ - question: Šta je nasuprot severa?
29
+ answer: "jug"
30
+ - question: Suprotno od lošeg je?
31
+ answer: "dobro"
32
+ - question: koliko je 4 put četiri?
33
+ answers: ["16", "šesnaest", "sesnaest"]
34
+ - question: Broj koji dolazi nakon 20?
35
+ answers: ["21", "dvadeset jedan", "dvadeset i jedan"]
36
+ - question: Mesec pre jula?
37
+ answer: "jun"
38
+ - question: Koliko je petnaest podeljeno s tri?
39
+ answer: ["pet", "5"]
40
+ - question: Koliko je 14 minus 4?
41
+ answers: ["10", "deset"]
42
+ - question: "Šta je sledeće? Ponedeljak, utorak, sreda.."
43
+ answer: ["četvrtak", "cetvrtak"]
@@ -0,0 +1,41 @@
1
+ sv:
2
+ humanizer:
3
+ validation:
4
+ error: "Du är inte en människa"
5
+ questions:
6
+ - question: "Två plus två?"
7
+ answers: ["4", "fyra"]
8
+ - question: "Vilket nummer kommer före tolv?"
9
+ answers: ["11", "elva"]
10
+ - question: "Vad är fem gånger två?"
11
+ answers: ["10", "tio"]
12
+ - question: "Vilket nummer kommer härnäst: 10, 11, 12, 13, 14, ..?"
13
+ answers: ["15", "femton"]
14
+ - question: "Vad är fem gånger fem?"
15
+ answers: ["25", "tjugiofem"]
16
+ - question: "Vad är tio delat på två?"
17
+ answers: ["5", "five"]
18
+ - question: "Vilken dag kommer efter måndag?"
19
+ answer: "tisdag"
20
+ - question: "Vilken är årets sista månad?"
21
+ answer: "december"
22
+ - question: "Hur många minuter går det på en timme?"
23
+ answers: ["60", "sextio"]
24
+ - question: "Vad är motsatsen till ner?"
25
+ answer: "upp"
26
+ - question: "Vad är motsatsen till norr?"
27
+ answer: ["söder", "syd"]
28
+ - question: "Vad är motsatsen till ond?"
29
+ answer: ["god", "snäll"]
30
+ - question: "Vad är 4 gånger fyra?"
31
+ answers: ["16", "sexton"]
32
+ - question: "Vilket nummer kommer efter 20?"
33
+ answers: ["21", "tjugioett"]
34
+ - question: "Vilken månad kommer före juli?"
35
+ answer: "juni"
36
+ - question: "Vad är 15 delat på tre?"
37
+ answer: ["fem", "5"]
38
+ - question: "Vad är fjorton minus 4?"
39
+ answers: ["10", "tio"]
40
+ - question: "Vad kommer härnäst? Måndag, Tisdag, Onsdag..?"
41
+ answer: "torsdag"
@@ -49,7 +49,7 @@ module Humanizer
49
49
  end
50
50
 
51
51
  def random_humanizer_question_id
52
- humanizer_question_ids[rand(humanizer_question_ids.count)]
52
+ humanizer_question_ids.sample
53
53
  end
54
54
 
55
55
  def humanizer_answers_for_id(id)
@@ -1,3 +1,3 @@
1
1
  module Humanizer
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
3
3
  end
metadata CHANGED
@@ -1,86 +1,89 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humanizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Akonniemi
8
8
  - Joao Carlos Cardoso
9
+ - Matias Korhonen
10
+ - Vesa Vänskä
9
11
  autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
12
- date: 2014-11-25 00:00:00.000000000 Z
14
+ date: 2016-09-06 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: bundler
16
18
  requirement: !ruby/object:Gem::Requirement
17
19
  requirements:
18
- - - ! '>='
20
+ - - ">="
19
21
  - !ruby/object:Gem::Version
20
22
  version: '0'
21
23
  type: :development
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
- - - ! '>='
27
+ - - ">="
26
28
  - !ruby/object:Gem::Version
27
29
  version: '0'
28
30
  - !ruby/object:Gem::Dependency
29
31
  name: rake
30
32
  requirement: !ruby/object:Gem::Requirement
31
33
  requirements:
32
- - - ! '>='
34
+ - - ">="
33
35
  - !ruby/object:Gem::Version
34
36
  version: '0'
35
37
  type: :development
36
38
  prerelease: false
37
39
  version_requirements: !ruby/object:Gem::Requirement
38
40
  requirements:
39
- - - ! '>='
41
+ - - ">="
40
42
  - !ruby/object:Gem::Version
41
43
  version: '0'
42
44
  - !ruby/object:Gem::Dependency
43
45
  name: rspec
44
46
  requirement: !ruby/object:Gem::Requirement
45
47
  requirements:
46
- - - ~>
48
+ - - "~>"
47
49
  - !ruby/object:Gem::Version
48
50
  version: 2.14.0
49
51
  type: :development
50
52
  prerelease: false
51
53
  version_requirements: !ruby/object:Gem::Requirement
52
54
  requirements:
53
- - - ~>
55
+ - - "~>"
54
56
  - !ruby/object:Gem::Version
55
57
  version: 2.14.0
56
58
  - !ruby/object:Gem::Dependency
57
59
  name: activemodel
58
60
  requirement: !ruby/object:Gem::Requirement
59
61
  requirements:
60
- - - ! '>='
62
+ - - ">="
61
63
  - !ruby/object:Gem::Version
62
64
  version: 3.0.0
63
65
  type: :development
64
66
  prerelease: false
65
67
  version_requirements: !ruby/object:Gem::Requirement
66
68
  requirements:
67
- - - ! '>='
69
+ - - ">="
68
70
  - !ruby/object:Gem::Version
69
71
  version: 3.0.0
70
72
  description: reCAPTCHA was too much for us, so we created this. Simplest captcha ever.
71
73
  email:
72
74
  - antti@kiskolabs.com
73
75
  - joao@kiskolabs.com
76
+ - matias@kiskolabs.com
77
+ - vesa@kiskolabs.com
74
78
  executables: []
75
79
  extensions: []
76
80
  extra_rdoc_files: []
77
81
  files:
78
- - lib/generators/humanizer_generator.rb
79
- - lib/humanizer/version.rb
80
- - lib/humanizer.rb
81
- - LICENSE
82
82
  - CHANGELOG.md
83
+ - LICENSE
83
84
  - README.md
85
+ - lib/generators/humanizer_generator.rb
86
+ - lib/generators/templates/locales/da.yml
84
87
  - lib/generators/templates/locales/de.yml
85
88
  - lib/generators/templates/locales/el.yml
86
89
  - lib/generators/templates/locales/en.yml
@@ -95,8 +98,12 @@ files:
95
98
  - lib/generators/templates/locales/pt-BR.yml
96
99
  - lib/generators/templates/locales/pt-PT.yml
97
100
  - lib/generators/templates/locales/ru.yml
101
+ - lib/generators/templates/locales/sr.yml
102
+ - lib/generators/templates/locales/sv.yml
98
103
  - lib/generators/templates/locales/zh-CN.yml
99
104
  - lib/generators/templates/locales/zh-TW.yml
105
+ - lib/humanizer.rb
106
+ - lib/humanizer/version.rb
100
107
  homepage: http://github.com/kiskolabs/humanizer
101
108
  licenses:
102
109
  - MIT
@@ -107,17 +114,17 @@ require_paths:
107
114
  - lib
108
115
  required_ruby_version: !ruby/object:Gem::Requirement
109
116
  requirements:
110
- - - ! '>='
117
+ - - ">="
111
118
  - !ruby/object:Gem::Version
112
119
  version: '0'
113
120
  required_rubygems_version: !ruby/object:Gem::Requirement
114
121
  requirements:
115
- - - ! '>='
122
+ - - ">="
116
123
  - !ruby/object:Gem::Version
117
124
  version: 1.3.6
118
125
  requirements: []
119
126
  rubyforge_project: humanizer
120
- rubygems_version: 2.1.6
127
+ rubygems_version: 2.4.5.1
121
128
  signing_key:
122
129
  specification_version: 4
123
130
  summary: A really simple captcha solution