langouste 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,5 +2,6 @@
2
2
  coverage
3
3
  rdoc
4
4
  pkg
5
+ *.gemspec
5
6
 
6
7
  ## PROJECT::SPECIFIC
data/README.rdoc CHANGED
@@ -28,11 +28,15 @@ More help:
28
28
  === Inside scripts
29
29
 
30
30
  require 'langouste'
31
- t = Langouste.new(:from_lang => :russian, :to_lang => :english, :service => :google)
31
+ t = Langouste::Translator.new(:from_lang => :russian, :to_lang => :english, :service => :google)
32
32
  puts t.translate("Я список кораблей прочел до середины")
33
33
 
34
+ === Thanks
35
+
36
+ mjijackson [http://github.com/mjijackson/symboltable] for symboltable
37
+
34
38
  == Note on Patches/Pull Requests
35
-
39
+
36
40
  * Fork the project.
37
41
  * Make your feature addition or bug fix.
38
42
  * Add tests for it. This is important so I don't break it in a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/lib/langouste.rb CHANGED
@@ -88,13 +88,13 @@ module Langouste
88
88
  to, from, directions, text = config_form.to, config_form.from, config_form.directions, config_form.text
89
89
 
90
90
  if directions and directions.field and directions.field.selector
91
- set_form_option form.field_with(directions.field.selector), directions.directions[@direction]
91
+ set_field_option form.field_with(directions.field.selector), directions.directions[@direction]
92
92
  else
93
93
  if from and from.field and from.field.selector
94
- set_form_option form.field_with(from.field.selector), from.languages[@from_lang]
94
+ set_field_option form.field_with(from.field.selector), from.languages[@from_lang]
95
95
  end
96
96
  if to and to.field and to.field.selector
97
- set_form_option form.field_with(to.field.selector), to.languages[@to_lang]
97
+ set_field_option form.field_with(to.field.selector), to.languages[@to_lang]
98
98
  end
99
99
  end
100
100
 
@@ -102,7 +102,7 @@ module Langouste
102
102
  form_text_field.value = input_text
103
103
  end
104
104
 
105
- def set_form_option(field, value)
105
+ def set_field_option(field, value)
106
106
  field.option_with(:value => value).select
107
107
  end
108
108
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Hariton Mizgir
@@ -75,7 +75,6 @@ files:
75
75
  - VERSION
76
76
  - bin/langouste
77
77
  - config/langouste.yaml
78
- - langouste.gemspec
79
78
  - lib/langouste.rb
80
79
  - test/helper.rb
81
80
  - test/test_langouste.rb
data/langouste.gemspec DELETED
@@ -1,63 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{langouste}
8
- s.version = "0.1.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Hariton Mizgir"]
12
- s.date = %q{2010-05-07}
13
- s.default_executable = %q{langouste}
14
- s.email = %q{hmizgir@gmail.com}
15
- s.executables = ["langouste"]
16
- s.extra_rdoc_files = [
17
- "LICENSE",
18
- "README.rdoc"
19
- ]
20
- s.files = [
21
- ".document",
22
- ".gitignore",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "bin/langouste",
28
- "config/langouste.yaml",
29
- "langouste.gemspec",
30
- "lib/langouste.rb",
31
- "test/helper.rb",
32
- "test/test_langouste.rb"
33
- ]
34
- s.homepage = %q{http://github.com/hariton/langouste}
35
- s.rdoc_options = ["--charset=UTF-8"]
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.6}
38
- s.summary = %q{Gem and console tool for translation through various online services (google translate, babelfish, pereklad, etc)}
39
- s.test_files = [
40
- "test/test_langouste.rb",
41
- "test/helper.rb"
42
- ]
43
-
44
- if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
- s.specification_version = 3
47
-
48
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
49
- s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
50
- s.add_runtime_dependency(%q<symboltable>, [">= 0.2.0"])
51
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
52
- else
53
- s.add_dependency(%q<mechanize>, [">= 1.0.0"])
54
- s.add_dependency(%q<symboltable>, [">= 0.2.0"])
55
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
56
- end
57
- else
58
- s.add_dependency(%q<mechanize>, [">= 1.0.0"])
59
- s.add_dependency(%q<symboltable>, [">= 0.2.0"])
60
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
61
- end
62
- end
63
-