rspec-i18n 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- === development
1
+ === Version 1.2.1
2
+
3
+ * Fix Bug in the Matchers Table in the command line
4
+
5
+ === Version 1.2.0
2
6
 
3
7
  * enhancements
4
8
  * Create the directory features to test with Cucumber
@@ -16,7 +16,7 @@ prefer - If don't have your speaking language, please make a fork =)
16
16
  The Rspec-i18n was created for the purpose of teaching people who are
17
17
  starting to developing applications but also serves to Production use.
18
18
  I know that many people prefer to write <b>Specs</b> in English.
19
- But if you don't prefer that or in SOME cases <b>DON'T NEED THAT</b>, you'll like the Rspec-i18n. =)
19
+ But if you don't prefer that or in some cases <b>DON'T NEED THAT</b>, you'll like the Rspec-i18n. =)
20
20
 
21
21
  == Synopsis
22
22
 
@@ -96,13 +96,13 @@ See more examples in http://github.com/tomas-stefano/rspec-i18n/blob/master/exam
96
96
 
97
97
  == Supported Versions
98
98
 
99
- <b>ONLY Ruby 1.8 (The Edge Version Supports Ruby 1.9!)</b>
99
+ <b>Ruby 1.8.7, 1.9.1 and 1.9.2</b>
100
100
 
101
101
  <b>Rspec-i18n >= 1.0.0</b> supports <b>ONLY Rspec 1.3</b>
102
102
 
103
103
  The older versions supports this versions: Rspec: 1.2.7, 1.2.8, 1.2.9
104
104
 
105
- <b>Support for Rspec 2.0 and Ruby 1.9 come soon!</b>
105
+ <b>Support for Rspec 2.0</b>
106
106
 
107
107
  == TODO
108
108
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 0
3
- :build:
4
2
  :major: 1
5
3
  :minor: 2
4
+ :patch: 1
5
+ :build:
@@ -16,6 +16,21 @@ Feature: Rspec-i18n all the languages executable
16
16
  And I should see "Portuguese"
17
17
  And I should see "Korean"
18
18
 
19
+ Scenario Outline: See the keywords for a language
20
+ When I run "<command>"
21
+ Then I should see:
22
+ """
23
+ +-----------------------+---------------------------------------------+
24
+ | Rspec Keywords | Translated Keyword |
25
+ +-----------------------+---------------------------------------------+
26
+ """
27
+ Examples:
28
+ | command |
29
+ | rspec-i18n -l en |
30
+ | rspec-i18n -l de |
31
+ | rspec-i18n -l es |
32
+
33
+
19
34
  Scenario: See the language keywords and translations in ruby 1.8.7-p249
20
35
  Given I am using rvm "1.8.7-p249"
21
36
  When I run "rspec-i18n --language pt"
@@ -66,7 +66,8 @@ module SpecI18n
66
66
  table_for_matchers = table do
67
67
  self.headings = ['Rspec Matchers', 'Translated Keyword']
68
68
  matchers.sort.each do |rspec_keyword, translated_keyword|
69
- add_row [rspec_keyword, translated_keyword.split('|').join(' / ')]
69
+ keyword = translated_keyword ? translated_keyword.split('|').join(' / ') : ''
70
+ add_row [rspec_keyword, keyword]
70
71
  end
71
72
  end
72
73
  print_table io, table_for_matchers
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rspec-i18n}
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tomas D'Stefano"]
12
- s.date = %q{2010-06-13}
12
+ s.date = %q{2010-06-14}
13
13
  s.default_executable = %q{rspec-i18n}
14
14
  s.description = %q{A internacionalization tool written in Ruby for the Rspec Framework}
15
15
  s.email = %q{tomasdestefi@gmail.com}
@@ -95,7 +95,7 @@ Gem::Specification.new do |s|
95
95
  --------------------------------------------------------------------------------
96
96
  U P G R A D I N G
97
97
 
98
- Thank you for installing rspec-i18n-1.2.0
98
+ Thank you for installing rspec-i18n-1.2.1
99
99
  Please be sure to read http://wiki.github.com/tomas-stefano/rspec-i18n/upgrading
100
100
  for information about this release.
101
101
 
@@ -51,6 +51,13 @@ module SpecI18n
51
51
  Language.matchers_table(@io_stream, @portuguese).should be_nil
52
52
  end
53
53
 
54
+ it "should not raise exception when have nil matchers" do
55
+ stub_keywords!(@portuguese, {'matchers' => {'be' => nil}})
56
+ lambda {
57
+ Language.matchers_table(@io_stream, @portuguese)
58
+ }.should_not raise_exception
59
+ end
60
+
54
61
  it "return true when have matchers" do
55
62
  stub_keywords!(@portuguese, {'matchers' => {'be' => 'ser'}})
56
63
  Language.matchers_table(@io_stream, @portuguese).should equal true
@@ -65,6 +72,13 @@ module SpecI18n
65
72
  stub_keywords!(@portuguese, {'hooks' => { 'each' => 'cada'}})
66
73
  Language.hooks_table(@io_stream, @portuguese).should equal true
67
74
  end
75
+
76
+ it "should not raise exception when have nil hooks" do
77
+ stub_keywords!(@portuguese, {'hooks' => {'each' => nil, 'all' => nil}})
78
+ lambda {
79
+ Language.hooks_table(@io_stream, @portuguese)
80
+ }.should_not raise_exception
81
+ end
68
82
 
69
83
  end
70
84
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-i18n
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomas D'Stefano
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-13 00:00:00 -03:00
18
+ date: 2010-06-14 00:00:00 -03:00
19
19
  default_executable: rspec-i18n
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -203,7 +203,7 @@ post_install_message: |
203
203
  --------------------------------------------------------------------------------
204
204
  U P G R A D I N G
205
205
 
206
- Thank you for installing rspec-i18n-1.2.0
206
+ Thank you for installing rspec-i18n-1.2.1
207
207
  Please be sure to read http://wiki.github.com/tomas-stefano/rspec-i18n/upgrading
208
208
  for information about this release.
209
209