dict 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +1 -1
  2. data/.rspec +2 -2
  3. data/.travis.yml +14 -14
  4. data/Gemfile +4 -4
  5. data/Gemfile.lock +40 -40
  6. data/README.md +34 -34
  7. data/Rakefile +8 -8
  8. data/bin/dict +7 -7
  9. data/dict.gemspec +28 -28
  10. data/lib/dict/cli/runner.rb +137 -115
  11. data/lib/dict/dict.rb +40 -53
  12. data/lib/dict/dictionary.rb +45 -62
  13. data/lib/dict/glosbe.rb +68 -66
  14. data/lib/dict/result.rb +38 -38
  15. data/lib/dict/version.rb +3 -3
  16. data/lib/dict/wiktionary.rb +91 -91
  17. data/lib/dict.rb +5 -5
  18. data/spec/dict/lib_dict_cli_runner_spec.rb +120 -120
  19. data/spec/dict/lib_dict_spec.rb +39 -39
  20. data/spec/dict/lib_glosbe_spec.rb +48 -34
  21. data/spec/dict/lib_wiktionary_spec.rb +68 -62
  22. data/spec/dict/spec_helper.rb +17 -17
  23. data/spec/dict/vcr_cassettes/glosbe_translations_asdfff_cassette.yml +1518 -0
  24. data/spec/dict/vcr_cassettes/glosbe_translations_atomic_cassette.yml +2794 -2794
  25. data/spec/dict/vcr_cassettes/glosbe_translations_usage_cassette.yml +2530 -0
  26. data/spec/dict/vcr_cassettes/glosbe_translations_woda_cassette.yml +1949 -1949
  27. data/spec/dict/vcr_cassettes/slowik_runner_cassette.yml +4178 -4178
  28. data/spec/dict/vcr_cassettes/translations_dragon_cassette.yml +8659 -8659
  29. data/spec/dict/vcr_cassettes/translations_slownik_cassette.yml +4177 -4177
  30. data/spec/dict/vcr_cassettes/wiktionary_no_usage_examples.yml +8634 -0
  31. data/spec/dict/vcr_cassettes/wiktionary_translate_result_uppercase.yml +6120 -0
  32. data/spec/dict/vcr_cassettes/wiktionary_translations_field_cassette.yml +8600 -8600
  33. data/spec/dict/vcr_cassettes/wiktionary_translations_samochod_cassette.yml +6140 -6140
  34. data/spec/dict/vcr_cassettes/wiktionary_usage_examples_kot.yml +6444 -0
  35. data/spec/dict/vcr_setup.rb +19 -19
  36. metadata +9 -4
@@ -1,19 +1,19 @@
1
- require 'vcr'
2
- require 'rspec'
3
- require 'active_support/all'
4
-
5
- VCR.configure do |c|
6
- c.cassette_library_dir = 'spec/dict/vcr_cassettes'
7
- c.hook_into :fakeweb
8
- c.allow_http_connections_when_no_cassette = true
9
- end
10
-
11
-
12
- RSpec.configure do |c|
13
- c.treat_symbols_as_metadata_keys_with_true_values = true
14
- c.around(:each, :vcr) do |example|
15
- name = example.metadata[:full_description].split(/\s+/, 2).join("/").underscore.gsub(/[^\w\/]+/, "_")
16
- VCR.use_cassette(name) { example.call }
17
- end
18
- end
19
-
1
+ require 'vcr'
2
+ require 'rspec'
3
+ require 'active_support/all'
4
+
5
+ VCR.configure do |c|
6
+ c.cassette_library_dir = 'spec/dict/vcr_cassettes'
7
+ c.hook_into :fakeweb
8
+ c.allow_http_connections_when_no_cassette = true
9
+ end
10
+
11
+
12
+ RSpec.configure do |c|
13
+ c.treat_symbols_as_metadata_keys_with_true_values = true
14
+ c.around(:each, :vcr) do |example|
15
+ name = example.metadata[:full_description].split(/\s+/, 2).join("/").underscore.gsub(/[^\w\/]+/, "_")
16
+ VCR.use_cassette(name) { example.call }
17
+ end
18
+ end
19
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2012-07-24 00:00:00.000000000 Z
17
+ date: 2012-07-26 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: slop
@@ -128,7 +128,7 @@ dependencies:
128
128
  - - ! '>='
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
- description: ! ' Dict is an open source dictionary aggregator.
131
+ description: ! ' Dict to open-source''owy agregator słowników.
132
132
 
133
133
  '
134
134
  email:
@@ -160,13 +160,18 @@ files:
160
160
  - spec/dict/lib_glosbe_spec.rb
161
161
  - spec/dict/lib_wiktionary_spec.rb
162
162
  - spec/dict/spec_helper.rb
163
+ - spec/dict/vcr_cassettes/glosbe_translations_asdfff_cassette.yml
163
164
  - spec/dict/vcr_cassettes/glosbe_translations_atomic_cassette.yml
165
+ - spec/dict/vcr_cassettes/glosbe_translations_usage_cassette.yml
164
166
  - spec/dict/vcr_cassettes/glosbe_translations_woda_cassette.yml
165
167
  - spec/dict/vcr_cassettes/slowik_runner_cassette.yml
166
168
  - spec/dict/vcr_cassettes/translations_dragon_cassette.yml
167
169
  - spec/dict/vcr_cassettes/translations_slownik_cassette.yml
170
+ - spec/dict/vcr_cassettes/wiktionary_no_usage_examples.yml
171
+ - spec/dict/vcr_cassettes/wiktionary_translate_result_uppercase.yml
168
172
  - spec/dict/vcr_cassettes/wiktionary_translations_field_cassette.yml
169
173
  - spec/dict/vcr_cassettes/wiktionary_translations_samochod_cassette.yml
174
+ - spec/dict/vcr_cassettes/wiktionary_usage_examples_kot.yml
170
175
  - spec/dict/vcr_setup.rb
171
176
  homepage: https://github.com/Ragnarson/dict-gem
172
177
  licenses: []
@@ -191,5 +196,5 @@ rubyforge_project:
191
196
  rubygems_version: 1.8.24
192
197
  signing_key:
193
198
  specification_version: 3
194
- summary: Gem made for dictionary application
199
+ summary: Gem stworzony dla aplikacji słownikowej
195
200
  test_files: []