humanizer 2.4.4 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Humanizer 2.5.0 (2013-09-10)
2
+
3
+ * Added translations: Greek and zh-TW
4
+ * Support models without database backing (41773bc)
5
+
1
6
  ### Humanizer 2.4.4 (2012-08-24)
2
7
 
3
8
  * Added translations: Chinese (Simplified) translation, Italian
data/README.md CHANGED
@@ -85,4 +85,4 @@ Humanizer is licensed under the MIT License, for more details see the LICENSE fi
85
85
 
86
86
  ## CI Build Status
87
87
 
88
- [![Build Status](http://travis-ci.org/kiskolabs/humanizer.png)](http://travis-ci.org/kiskolabs/humanizer)
88
+ [![Build Status](https://travis-ci.org/kiskolabs/humanizer.png?branch=master)](https://travis-ci.org/kiskolabs/humanizer)
@@ -0,0 +1,41 @@
1
+ el:
2
+ humanizer:
3
+ validation:
4
+ error: Μάλλον είστε μηχανή spamming και όχι άνθρωπος
5
+ questions:
6
+ - question: Πόσο μας κάνουν 2 και 2;
7
+ answers: ["4", "τέσσερα"]
8
+ - question: Ποιός αριθμός είναι πριν το 12;
9
+ answers: ["11", "έντεκα"]
10
+ - question: Πόσο μας κάνουν 5 φορές το 2;
11
+ answers: ["10", "δέκα"]
12
+ - question: "Εισάγετε τον επόμενο αριθμό στην ακολουθία: 10, 11, 12, 13, 14, .."
13
+ answers: ["15", "δεκαπέντε"]
14
+ - question: "Πόσο μας κάνουν 5x5;"
15
+ answers: ["25", "είκοσιπέντε"]
16
+ - question: "Πόσο μας κάνουν 10 δια δύο;"
17
+ answers: ["5", "πέντε"]
18
+ - question: Τι μέρα έχουμε μετά την Δευτέρα;
19
+ answer: "Τρίτη"
20
+ - question: Ποιός είναι ο τελευταίος μήνας του έτους;
21
+ answer: "δεκέμβριος"
22
+ - question: Πόσα λεπτά έχει η ώρα;
23
+ answers: ["60", "εξήντα"]
24
+ - question: Ποιό είναι το αντίθετο του κάτω;
25
+ answer: "πάνω"
26
+ - question: Ποιό είναι το αντίθετο του Βορρά;
27
+ answer: "Νότος"
28
+ - question: Ποιό είναι το αντίθετο του κακού;
29
+ answer: "καλό"
30
+ - question: Πόσο μας κάνουν 4 επί τέσσερα;
31
+ answers: ["16", "δεκαέξι"]
32
+ - question: Ποιός αριθμός είναι ακριβώς έπειτα απο το 20;
33
+ answers: ["21", "είκοσιένα"]
34
+ - question: Τι μήνα έχουμε πριν τον Ιούλιο;
35
+ answer: "june"
36
+ - question: Πόσο μας κάνουν 15 δια του 3;
37
+ answer: ["πέντε", "5"]
38
+ - question: Πόσο μας κάνουν 14 μείον 4;
39
+ answers: ["10", "δέκα"]
40
+ - question: "Τι μέρα ακολουθεί; Δευτέρα, Τρίτη, Τετάρτη.."
41
+ answer: "Πέμπτη"
@@ -35,7 +35,7 @@ it:
35
35
  answers: ["21", "ventuno"]
36
36
  - question: Che mese viene prima di luglio?
37
37
  answer: "giugno"
38
- - question: Quanto fa quindici dviso tre?
38
+ - question: Quanto fa quindici diviso tre?
39
39
  answers: ["cinque", "5"]
40
40
  - question: Quanto fa 14 meno 4?
41
41
  answers: ["10", "dieci"]
@@ -1,43 +1,43 @@
1
1
  zh-CN:
2
2
  humanizer:
3
3
  validation:
4
- error: '你不是人类'
4
+ error: '你不是人类'
5
5
  questions:
6
6
  - question: 二加二等于几?
7
7
  answers: ["4", "four", "四"]
8
- - question: 门前大桥下游过一群__
9
- answer: 鸭
8
+ - question: 门前大桥下游过一群__
9
+ answer: 鸭
10
10
  - question: 十二前面是什么数字?
11
11
  answers: ["11", "eleven", "十一"]
12
12
  - question: 五乘以二等于几?
13
13
  answers: ["10", "ten", "十"]
14
14
  - question: "写出下一个数字: 10, 11, 12, 13, 14, .."
15
- answers: ["15", "fifteen","十五"]
15
+ answers: ["15", "fifteen", "十五"]
16
16
  - question: "五乘以五等于几?"
17
17
  answers: ["25", "twenty-five", "二十五"]
18
18
  - question: "十除以二等于几?"
19
19
  answers: ["5", "five", "五"]
20
20
  - question: 星期一过完是星期几?
21
- answer: ["tuesday","周二", "二"]
21
+ answer: ["tuesday", "周二", "二"]
22
22
  - question: 一年的最后一个月是几月?
23
- answer: ["december","十二月","十二"]
23
+ answer: ["december", "十二月", "十二"]
24
24
  - question: 一小时有多少分钟?
25
25
  answers: ["60", "sixty", "六十"]
26
26
  - question: 下的反义词是什么?
27
- answer: ["up","上"]
27
+ answer: ["up", "上"]
28
28
  - question: 北的反义词是什么?
29
- answer: ["south","南"]
29
+ answer: ["south", "南"]
30
30
  - question: 坏的反义词是什么?
31
- answer: ["good","好"]
31
+ answer: ["good", "好"]
32
32
  - question: 四乘以4是多少?
33
33
  answers: ["16", "sixteen", "十六"]
34
34
  - question: 20后面的数字是?
35
35
  answers: ["21", "twenty-one", "二十一"]
36
36
  - question: 七月前面是几月?
37
- answer: ["june","六月"]
37
+ answer: ["june", "六月"]
38
38
  - question: 十五除以三是多少?
39
39
  answer: ["five", "5", "五"]
40
40
  - question: 十四减四等于多少?
41
41
  answers: ["10", "ten", "十"]
42
- - question: "周一,周二 ,周三, __"
43
- answer: ["Thursday","周四"]
42
+ - question: "周一, 周二, 周三, __"
43
+ answer: ["Thursday", "周四"]
@@ -0,0 +1,43 @@
1
+ zh-TW:
2
+ humanizer:
3
+ validation:
4
+ error: "你不是人類"
5
+ questions:
6
+ - question: "二加二等於多少?"
7
+ answers: ["4", "4", "四"]
8
+ - question: "床前明月__"
9
+ answer: "光"
10
+ - question: "十二前面是什麼數字?"
11
+ answers: ["11", "eleven", "十一"]
12
+ - question: "五乘二等於多少?"
13
+ answers: ["10", "ten", "十"]
14
+ - question: "寫出下一個數字: 10, 11, 12, 13, 14, .."
15
+ answers: ["15", "fifteen", "十五"]
16
+ - question: "五乘五等於多少?"
17
+ answers: ["25", "twenty-five", "二十五"]
18
+ - question: "十除以二等於多少?"
19
+ answers: ["5", "five", "五"]
20
+ - question: "星期一過完是星期幾?"
21
+ answer: ["tuesday", "週二", "二", "星期二"]
22
+ - question: "一年的最後一個月是幾月?"
23
+ answer: ["december", "十二月", "十二", "12"]
24
+ - question: "一小時有幾分鐘?"
25
+ answers: ["60", "sixty", "六十"]
26
+ - question: "下的相反詞是?"
27
+ answer: ["up", "上"]
28
+ - question: "北的相反詞是?"
29
+ answer: ["south", "南"]
30
+ - question: "壞的相反詞是?"
31
+ answer: ["good", "好"]
32
+ - question: "4 的四倍是多少?"
33
+ answers: ["16", "sixteen", "十六"]
34
+ - question: "20 的下一個數字是?"
35
+ answers: ["21", "twenty-one", "二十一"]
36
+ - question: "七月前面是幾月?"
37
+ answer: ["june", "六月"]
38
+ - question: "十五除以三是多少?"
39
+ answer: ["five", "5", "五"]
40
+ - question: "十四減四是多少?"
41
+ answers: ["10", "ten", "十"]
42
+ - question: "周一, 周二, 周三, ____"
43
+ answer: ["Thursday", "周四"]
data/lib/humanizer.rb CHANGED
@@ -50,8 +50,8 @@ module Humanizer
50
50
 
51
51
  module ClassMethods
52
52
 
53
- def require_human_on(validate_on, opts = {})
54
- opts[:on] = validate_on
53
+ def require_human_on(validate_on = nil, opts = {})
54
+ opts[:on] = validate_on if validate_on
55
55
  validate :humanizer_check_answer, opts
56
56
  end
57
57
 
@@ -1,3 +1,3 @@
1
1
  module Humanizer
2
- VERSION = "2.4.4"
2
+ VERSION = "2.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humanizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,24 +10,24 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-24 00:00:00.000000000 Z
13
+ date: 2013-09-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ~>
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 1.1.3
22
+ version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ~>
28
+ - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 1.1.3
30
+ version: '0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rake
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +91,7 @@ files:
91
91
  - CHANGELOG.md
92
92
  - README.md
93
93
  - lib/generators/templates/locales/de.yml
94
+ - lib/generators/templates/locales/el.yml
94
95
  - lib/generators/templates/locales/en.yml
95
96
  - lib/generators/templates/locales/es.yml
96
97
  - lib/generators/templates/locales/fi.yml
@@ -102,6 +103,7 @@ files:
102
103
  - lib/generators/templates/locales/pt-PT.yml
103
104
  - lib/generators/templates/locales/ru.yml
104
105
  - lib/generators/templates/locales/zh-CN.yml
106
+ - lib/generators/templates/locales/zh-TW.yml
105
107
  homepage: http://github.com/kiskolabs/humanizer
106
108
  licenses: []
107
109
  post_install_message: