dict 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/cli/runner.rb +137 -115
- data/lib/dict/dict.rb +40 -53
- data/lib/dict/dictionary.rb +45 -62
- data/lib/dict/glosbe.rb +68 -66
- data/lib/dict/result.rb +38 -38
- data/lib/dict/version.rb +3 -3
- data/lib/dict/wiktionary.rb +91 -91
- data/lib/dict.rb +5 -5
- 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 -34
- data/spec/dict/lib_wiktionary_spec.rb +68 -62
- data/spec/dict/spec_helper.rb +17 -17
- data/spec/dict/vcr_cassettes/glosbe_translations_asdfff_cassette.yml +1518 -0
- data/spec/dict/vcr_cassettes/glosbe_translations_atomic_cassette.yml +2794 -2794
- data/spec/dict/vcr_cassettes/glosbe_translations_usage_cassette.yml +2530 -0
- 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 -0
- data/spec/dict/vcr_cassettes/wiktionary_translate_result_uppercase.yml +6120 -0
- 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 -0
- data/spec/dict/vcr_setup.rb +19 -19
- metadata +9 -4
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.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-
|
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
|
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
|
199
|
+
summary: Gem stworzony dla aplikacji słownikowej
|
195
200
|
test_files: []
|