dict 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/.rspec +2 -2
- data/.travis.yml +14 -14
- data/Gemfile +4 -4
- data/Gemfile.lock +40 -40
- data/README.md +34 -34
- data/Rakefile +8 -8
- data/bin/dict +7 -7
- data/dict.gemspec +28 -28
- data/lib/dict.rb +5 -5
- data/lib/dict/cli/runner.rb +137 -137
- data/lib/dict/dict.rb +38 -40
- data/lib/dict/dictionary.rb +45 -45
- data/lib/dict/glosbe.rb +68 -68
- data/lib/dict/result.rb +38 -38
- data/lib/dict/version.rb +3 -3
- data/lib/dict/wiktionary.rb +91 -91
- data/spec/dict/lib_dict_cli_runner_spec.rb +120 -120
- data/spec/dict/lib_dict_spec.rb +39 -39
- data/spec/dict/lib_glosbe_spec.rb +48 -48
- data/spec/dict/lib_wiktionary_spec.rb +68 -68
- data/spec/dict/spec_helper.rb +17 -17
- data/spec/dict/vcr_cassettes/glosbe_translations_asdfff_cassette.yml +1518 -1518
- data/spec/dict/vcr_cassettes/glosbe_translations_atomic_cassette.yml +2794 -2794
- data/spec/dict/vcr_cassettes/glosbe_translations_usage_cassette.yml +2530 -2530
- data/spec/dict/vcr_cassettes/glosbe_translations_woda_cassette.yml +1949 -1949
- data/spec/dict/vcr_cassettes/slowik_runner_cassette.yml +4178 -4178
- data/spec/dict/vcr_cassettes/translations_dragon_cassette.yml +8659 -8659
- data/spec/dict/vcr_cassettes/translations_slownik_cassette.yml +4177 -4177
- data/spec/dict/vcr_cassettes/wiktionary_no_usage_examples.yml +8634 -8634
- data/spec/dict/vcr_cassettes/wiktionary_translate_result_uppercase.yml +6120 -6120
- data/spec/dict/vcr_cassettes/wiktionary_translations_field_cassette.yml +8600 -8600
- data/spec/dict/vcr_cassettes/wiktionary_translations_samochod_cassette.yml +6140 -6140
- data/spec/dict/vcr_cassettes/wiktionary_usage_examples_kot.yml +6444 -6444
- data/spec/dict/vcr_setup.rb +19 -19
- metadata +20 -2
data/spec/dict/vcr_setup.rb
CHANGED
@@ -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
|
+
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
|