rspec-i18n 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +13 -1
- data/TODO.txt +0 -1
- data/VERSION.yml +1 -1
- data/bin/rspec-i18n +3 -1
- data/lib/spec-i18n/command_line/language_help_formatter.rb +4 -3
- data/lib/spec-i18n/command_line/main.rb +1 -0
- data/lib/spec-i18n/command_line/options.rb +1 -1
- data/pkg/rspec-i18n-0.2.0.gem +0 -0
- data/rspec-i18n.gemspec +3 -2
- data/spec/spec-i18n/command_line/options_spec.rb +1 -1
- metadata +3 -2
data/History.rdoc
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== Version 0.2.1
|
2
|
+
|
3
|
+
This release has some bugfixes in the command_line executable
|
4
|
+
|
5
|
+
* Quick Fix the namespaces and add more spec for it
|
6
|
+
|
7
|
+
=== Version 0.2.0
|
8
|
+
|
9
|
+
This release has improvements to the commandline and some fixes internals
|
10
|
+
|
11
|
+
* Added a spec-i18n executable(to see languages and the keywords)
|
12
|
+
|
1
13
|
=== Version 0.1.0
|
2
14
|
|
3
15
|
This is the first preview release of Rspec-i18n, a Internacionalization Development library for Ruby.
|
@@ -6,4 +18,4 @@ This is the first preview release of Rspec-i18n, a Internacionalization Developm
|
|
6
18
|
before(:each), before(:all), before(:suite), after(:each), after(:all),
|
7
19
|
after(:suite))
|
8
20
|
* Added a languages.yml. Will be translated to all languages.
|
9
|
-
* Added a simple parser for the read the languages in languages.yml.
|
21
|
+
* Added a simple parser for the read the languages in languages.yml.
|
data/TODO.txt
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
== Future
|
10
10
|
|
11
11
|
* Translate all matchers
|
12
|
-
* * Making the spec-i18n executable(to see languages and other stuff)
|
13
12
|
* Translate subjects
|
14
13
|
* Translate shared examples
|
15
14
|
* Put a #language header in the spec_helper file (Cucumber Style) instead load from config(maintain the two options)
|
data/VERSION.yml
CHANGED
data/bin/rspec-i18n
CHANGED
@@ -3,8 +3,10 @@ rspec_i18n_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')
|
|
3
3
|
|
4
4
|
$:.unshift(rspec_i18n_dir) unless $:.include?(rspec_i18n_dir)
|
5
5
|
|
6
|
-
|
6
|
+
require 'rubygems'
|
7
|
+
require 'spec-i18n/command_line/main'
|
7
8
|
|
9
|
+
# The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
|
8
10
|
begin
|
9
11
|
SpecI18n::CommandLine::Main.execute(ARGV.dup)
|
10
12
|
rescue SystemExit => e
|
@@ -2,6 +2,7 @@ require 'cucumber'
|
|
2
2
|
require 'cucumber/formatter/pretty'
|
3
3
|
require 'cucumber/formatter/unicode'
|
4
4
|
require 'cucumber/cli/language_help_formatter'
|
5
|
+
require 'spec-i18n/parser'
|
5
6
|
|
6
7
|
module SpecI18n
|
7
8
|
module CommandLine
|
@@ -13,13 +14,13 @@ module SpecI18n
|
|
13
14
|
# because I don't want reiventing the wheel
|
14
15
|
#
|
15
16
|
def list_languages_and_exit(io)
|
16
|
-
raw = Parser::NaturalLanguage.list_languages
|
17
|
+
raw = SpecI18n::Parser::NaturalLanguage.list_languages
|
17
18
|
print_table io, raw, :check_lang => false
|
18
19
|
end
|
19
20
|
|
20
21
|
def list_keywords_and_exit(io, lang)
|
21
|
-
language = Parser::NaturalLanguage.get(lang)
|
22
|
-
raw = Parser::NaturalLanguage.list_keywords(lang)
|
22
|
+
language = SpecI18n::Parser::NaturalLanguage.get(lang)
|
23
|
+
raw = SpecI18n::Parser::NaturalLanguage.list_keywords(lang)
|
23
24
|
print_table io, raw, :incomplete => language.incomplete?
|
24
25
|
end
|
25
26
|
|
@@ -26,7 +26,7 @@ module SpecI18n
|
|
26
26
|
if language == 'help'
|
27
27
|
LanguageHelpFormatter.list_languages_and_exit(@output_stream)
|
28
28
|
else
|
29
|
-
LanguageHelpFormatter.list_keywords_and_exit(language)
|
29
|
+
LanguageHelpFormatter.list_keywords_and_exit(@output_stream, language)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
opts.on_tail("-v", "--version", "Show version.") do
|
Binary file
|
data/rspec-i18n.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rspec-i18n}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.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"]
|
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
"lib/spec-i18n/runner/configuration.rb",
|
47
47
|
"lib/spec-i18n/spec_language.rb",
|
48
48
|
"pkg/rspec-i18n-0.1.0.gem",
|
49
|
+
"pkg/rspec-i18n-0.2.0.gem",
|
49
50
|
"rspec-i18n.gemspec",
|
50
51
|
"spec/spec-i18n/command_line/language_help_formatter_spec.rb",
|
51
52
|
"spec/spec-i18n/command_line/main_spec.rb",
|
@@ -67,7 +68,7 @@ Gem::Specification.new do |s|
|
|
67
68
|
--------------------------------------------------------------------------------
|
68
69
|
U P G R A D I N G
|
69
70
|
|
70
|
-
Thank you for installing rspec-i18n-0.2.
|
71
|
+
Thank you for installing rspec-i18n-0.2.1
|
71
72
|
Please be sure to read http://wiki.github.com/tomas-stefano/rspec-i18n/upgrading
|
72
73
|
for important information about this release.
|
73
74
|
|
@@ -32,7 +32,7 @@ module SpecI18n
|
|
32
32
|
it "should list all know keywords for the language" do
|
33
33
|
when_parsing "--language pt" do
|
34
34
|
require 'spec-i18n/command_line/language_help_formatter'
|
35
|
-
LanguageHelpFormatter.should_receive(:list_keywords_and_exit).with("pt")
|
35
|
+
LanguageHelpFormatter.should_receive(:list_keywords_and_exit).with(@output_stream, "pt")
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas D'Stefano
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/spec-i18n/runner/configuration.rb
|
90
90
|
- lib/spec-i18n/spec_language.rb
|
91
91
|
- pkg/rspec-i18n-0.1.0.gem
|
92
|
+
- pkg/rspec-i18n-0.2.0.gem
|
92
93
|
- rspec-i18n.gemspec
|
93
94
|
- spec/spec-i18n/command_line/language_help_formatter_spec.rb
|
94
95
|
- spec/spec-i18n/command_line/main_spec.rb
|
@@ -113,7 +114,7 @@ post_install_message: |
|
|
113
114
|
--------------------------------------------------------------------------------
|
114
115
|
U P G R A D I N G
|
115
116
|
|
116
|
-
Thank you for installing rspec-i18n-0.2.
|
117
|
+
Thank you for installing rspec-i18n-0.2.1
|
117
118
|
Please be sure to read http://wiki.github.com/tomas-stefano/rspec-i18n/upgrading
|
118
119
|
for important information about this release.
|
119
120
|
|