babelphish 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/babelphish.gemspec +60 -59
- data/lib/babelphish/languages.rb +3 -2
- metadata +21 -8
- data/.gitignore +0 -10
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/babelphish.gemspec
CHANGED
@@ -1,87 +1,85 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{babelphish}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-12}
|
13
13
|
s.default_executable = %q{babelphish}
|
14
14
|
s.description = %q{Babelphish helps you make a quick translation of your application using Google Translate.}
|
15
15
|
s.email = %q{justinball@gmail.com}
|
16
16
|
s.executables = ["babelphish"]
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE",
|
19
|
-
|
19
|
+
"README.rdoc"
|
20
20
|
]
|
21
21
|
s.files = [
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
"test/translations/en.yml"
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"babelphish.gemspec",
|
27
|
+
"bin/babelphish",
|
28
|
+
"config/website.yml",
|
29
|
+
"doc/classes/Babelphish.html",
|
30
|
+
"doc/classes/Babelphish/Exceptions.html",
|
31
|
+
"doc/classes/Babelphish/Exceptions/GoogleResponseError.html",
|
32
|
+
"doc/classes/Babelphish/GoogleTranslate.html",
|
33
|
+
"doc/classes/Babelphish/HtmlTranslator.html",
|
34
|
+
"doc/classes/Babelphish/Translator.html",
|
35
|
+
"doc/classes/Babelphish/YmlTranslator.html",
|
36
|
+
"doc/created.rid",
|
37
|
+
"doc/files/History_txt.html",
|
38
|
+
"doc/files/PostInstall_txt.html",
|
39
|
+
"doc/files/README_rdoc.html",
|
40
|
+
"doc/files/bin/babelphish.html",
|
41
|
+
"doc/files/lib/babelphish/exceptions_rb.html",
|
42
|
+
"doc/files/lib/babelphish/html_translator_rb.html",
|
43
|
+
"doc/files/lib/babelphish/languages_rb.html",
|
44
|
+
"doc/files/lib/babelphish/translator_rb.html",
|
45
|
+
"doc/files/lib/babelphish/yml_translator_rb.html",
|
46
|
+
"doc/files/lib/babelphish_rb.html",
|
47
|
+
"doc/files/lib/tasks/babelphish_rake.html",
|
48
|
+
"doc/fr_class_index.html",
|
49
|
+
"doc/fr_file_index.html",
|
50
|
+
"doc/fr_method_index.html",
|
51
|
+
"doc/index.html",
|
52
|
+
"doc/rdoc-style.css",
|
53
|
+
"lib/babelphish.rb",
|
54
|
+
"lib/babelphish/exceptions.rb",
|
55
|
+
"lib/babelphish/html_translator.rb",
|
56
|
+
"lib/babelphish/languages.rb",
|
57
|
+
"lib/babelphish/translator.rb",
|
58
|
+
"lib/babelphish/yml_translator.rb",
|
59
|
+
"lib/tasks/babelphish.rake",
|
60
|
+
"script/console",
|
61
|
+
"script/destroy",
|
62
|
+
"script/generate",
|
63
|
+
"script/txt2html",
|
64
|
+
"test/html_translations/test.html.erb",
|
65
|
+
"test/html_translations/test.text.html.erb",
|
66
|
+
"test/html_translations/test.text.plain.erb",
|
67
|
+
"test/test_babelphish.rb",
|
68
|
+
"test/test_helper.rb",
|
69
|
+
"test/test_html_translator.rb",
|
70
|
+
"test/test_yml_translator.rb",
|
71
|
+
"test/translations/en.yml"
|
73
72
|
]
|
74
73
|
s.homepage = %q{http://github.com/jbasdf/babelphish}
|
75
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
76
74
|
s.require_paths = ["lib"]
|
77
75
|
s.rubyforge_project = %q{babelphish}
|
78
76
|
s.rubygems_version = %q{1.3.7}
|
79
77
|
s.summary = %q{Translate with Google like a fule => 'fool'}
|
80
78
|
s.test_files = [
|
81
79
|
"test/test_babelphish.rb",
|
82
|
-
|
83
|
-
|
84
|
-
|
80
|
+
"test/test_helper.rb",
|
81
|
+
"test/test_html_translator.rb",
|
82
|
+
"test/test_yml_translator.rb"
|
85
83
|
]
|
86
84
|
|
87
85
|
if s.respond_to? :specification_version then
|
@@ -90,11 +88,14 @@ Gem::Specification.new do |s|
|
|
90
88
|
|
91
89
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
92
90
|
s.add_runtime_dependency(%q<ya2yaml>, [">= 0"])
|
91
|
+
s.add_runtime_dependency(%q<json>, [">= 0"])
|
93
92
|
else
|
94
93
|
s.add_dependency(%q<ya2yaml>, [">= 0"])
|
94
|
+
s.add_dependency(%q<json>, [">= 0"])
|
95
95
|
end
|
96
96
|
else
|
97
97
|
s.add_dependency(%q<ya2yaml>, [">= 0"])
|
98
|
+
s.add_dependency(%q<json>, [">= 0"])
|
98
99
|
end
|
99
100
|
end
|
100
101
|
|
data/lib/babelphish/languages.rb
CHANGED
@@ -37,6 +37,7 @@ module Babelphish
|
|
37
37
|
GREEK = 'el'
|
38
38
|
GUARANI = 'gn'
|
39
39
|
GUJARATI = 'gu'
|
40
|
+
HAITIAN_CREOLE = 'ht'
|
40
41
|
HEBREW = 'iw'
|
41
42
|
HINDI = 'hi'
|
42
43
|
HUNGARIAN = 'hu'
|
@@ -95,7 +96,7 @@ module Babelphish
|
|
95
96
|
# all languages
|
96
97
|
# LANGUAGES = [AFRIKAANS,ALBANIAN,AMHARIC,ARABIC,ARMENIAN,AZERBAIJANI,BASQUE,BELARUSIAN,BENGALI,BIHARI,BULGARIAN,BURMESE,CATALAN,CHEROKEE,
|
97
98
|
# CHINESE,CHINESE_SIMPLIFIED,CHINESE_TRADITIONAL,CROATIAN,CZECH,DANISH,DHIVEHI,DUTCH,ENGLISH,ESPERANTO,ESTONIAN,FILIPINO,FINNISH,
|
98
|
-
# FRENCH,GALICIAN,GEORGIAN,GERMAN,GREEK,GUARANI,GUJARATI,HEBREW,HINDI,HUNGARIAN,ICELANDIC,INDONESIAN,INUKTITUT,ITALIAN,
|
99
|
+
# FRENCH,GALICIAN,GEORGIAN,GERMAN,GREEK,GUARANI,GUJARATI,HAITIAN_CREOLE,HEBREW,HINDI,HUNGARIAN,ICELANDIC,INDONESIAN,INUKTITUT,ITALIAN,
|
99
100
|
# JAPANESE,KANNADA,KAZAKH,KHMER,KOREAN,KURDISH,KYRGYZ,LAOTHIAN,LATVIAN,LITHUANIAN,MACEDONIAN,MALAY,MALAYALAM,MALTESE,MARATHI,
|
100
101
|
# MONGOLIAN,NEPALI,NORWEGIAN,ORIYA,PASHTO,PERSIAN,POLISH,PORTUGUESE,PUNJABI,ROMANIAN,RUSSIAN,SANSKRIT,SERBIAN,SINDHI,SINHALESE,
|
101
102
|
# SLOVAK,SLOVENIAN,SPANISH,SWAHILI,SWEDISH,TAJIK,TAMIL,TAGALOG,TELUGU,THAI,TIBETAN,TURKISH,UKRAINIAN,URDU,UZBEK,UIGHUR,VIETNAMESE]
|
@@ -103,7 +104,7 @@ module Babelphish
|
|
103
104
|
# Google doesn't support translations to all languages. These are the translations available. See:
|
104
105
|
# http://code.google.com/apis/ajaxlanguage/documentation/#SupportedPairs
|
105
106
|
LANGUAGES = [ALBANIAN, ARABIC, BULGARIAN, CATALAN, CHINESE, CHINESE_SIMPLIFIED,CHINESE_TRADITIONAL, CROATIAN,
|
106
|
-
CZECH, DANISH, DUTCH, ENGLISH, ESTONIAN, FILIPINO, FINNISH, FRENCH, GALICIAN, GERMAN, GREEK, HEBREW, HINDI, HUNGARIAN,
|
107
|
+
CZECH, DANISH, DUTCH, ENGLISH, ESTONIAN, FILIPINO, FINNISH, FRENCH, GALICIAN, GERMAN, GREEK, HAITIAN_CREOLE, HEBREW, HINDI, HUNGARIAN,
|
107
108
|
INDONESIAN, ITALIAN, JAPANESE, KOREAN, LATVIAN, LITHUANIAN, MALTESE, NORWEGIAN, PERSIAN, POLISH, PORTUGUESE,
|
108
109
|
ROMANIAN, RUSSIAN, SERBIAN, SLOVAK, SLOVENIAN, SPANISH, SWEDISH, THAI, TURKISH, UKRAINIAN, VIETNAMESE]
|
109
110
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babelphish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-12 00:00:00 -07:00
|
19
19
|
default_executable: babelphish
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -32,6 +32,20 @@ dependencies:
|
|
32
32
|
version: "0"
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: json
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
35
49
|
description: Babelphish helps you make a quick translation of your application using Google Translate.
|
36
50
|
email: justinball@gmail.com
|
37
51
|
executables:
|
@@ -42,7 +56,6 @@ extra_rdoc_files:
|
|
42
56
|
- LICENSE
|
43
57
|
- README.rdoc
|
44
58
|
files:
|
45
|
-
- .gitignore
|
46
59
|
- LICENSE
|
47
60
|
- README.rdoc
|
48
61
|
- Rakefile
|
@@ -98,8 +111,8 @@ homepage: http://github.com/jbasdf/babelphish
|
|
98
111
|
licenses: []
|
99
112
|
|
100
113
|
post_install_message:
|
101
|
-
rdoc_options:
|
102
|
-
|
114
|
+
rdoc_options: []
|
115
|
+
|
103
116
|
require_paths:
|
104
117
|
- lib
|
105
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|