dict 0.3.4 → 0.3.5

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.rb +5 -5
  11. data/lib/dict/cli/runner.rb +137 -137
  12. data/lib/dict/dict.rb +38 -40
  13. data/lib/dict/dictionary.rb +45 -45
  14. data/lib/dict/glosbe.rb +68 -68
  15. data/lib/dict/result.rb +38 -38
  16. data/lib/dict/version.rb +3 -3
  17. data/lib/dict/wiktionary.rb +91 -91
  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 -48
  21. data/spec/dict/lib_wiktionary_spec.rb +68 -68
  22. data/spec/dict/spec_helper.rb +17 -17
  23. data/spec/dict/vcr_cassettes/glosbe_translations_asdfff_cassette.yml +1518 -1518
  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 -2530
  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 -8634
  31. data/spec/dict/vcr_cassettes/wiktionary_translate_result_uppercase.yml +6120 -6120
  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 -6444
  35. data/spec/dict/vcr_setup.rb +19 -19
  36. metadata +20 -2
@@ -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.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -197,4 +197,22 @@ rubygems_version: 1.8.24
197
197
  signing_key:
198
198
  specification_version: 3
199
199
  summary: Gem stworzony dla aplikacji słownikowej
200
- test_files: []
200
+ test_files:
201
+ - spec/dict/lib_dict_cli_runner_spec.rb
202
+ - spec/dict/lib_dict_spec.rb
203
+ - spec/dict/lib_glosbe_spec.rb
204
+ - spec/dict/lib_wiktionary_spec.rb
205
+ - spec/dict/spec_helper.rb
206
+ - spec/dict/vcr_cassettes/glosbe_translations_asdfff_cassette.yml
207
+ - spec/dict/vcr_cassettes/glosbe_translations_atomic_cassette.yml
208
+ - spec/dict/vcr_cassettes/glosbe_translations_usage_cassette.yml
209
+ - spec/dict/vcr_cassettes/glosbe_translations_woda_cassette.yml
210
+ - spec/dict/vcr_cassettes/slowik_runner_cassette.yml
211
+ - spec/dict/vcr_cassettes/translations_dragon_cassette.yml
212
+ - spec/dict/vcr_cassettes/translations_slownik_cassette.yml
213
+ - spec/dict/vcr_cassettes/wiktionary_no_usage_examples.yml
214
+ - spec/dict/vcr_cassettes/wiktionary_translate_result_uppercase.yml
215
+ - spec/dict/vcr_cassettes/wiktionary_translations_field_cassette.yml
216
+ - spec/dict/vcr_cassettes/wiktionary_translations_samochod_cassette.yml
217
+ - spec/dict/vcr_cassettes/wiktionary_usage_examples_kot.yml
218
+ - spec/dict/vcr_setup.rb