ldoce 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ldoce might be problematic. Click here for more details.
- data/README.md +6 -0
- data/lib/ldoce/version.rb +1 -1
- data/lib/ldoce/word.rb +6 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Ldoce
|
2
2
|
Easily interface with the Longman Dictionary of Contemporary English API from Ruby:
|
3
3
|
|
4
|
+
NB currently mac only as it depends on the afplay command.
|
5
|
+
|
6
|
+
##Prerequisites
|
7
|
+
* afplay
|
8
|
+
* curl
|
9
|
+
|
4
10
|
## Installation
|
5
11
|
|
6
12
|
Add this line to your application's Gemfile:
|
data/lib/ldoce/version.rb
CHANGED
data/lib/ldoce/word.rb
CHANGED
@@ -20,6 +20,12 @@ module Ldoce
|
|
20
20
|
end
|
21
21
|
`afplay #{filename}`
|
22
22
|
end
|
23
|
+
rescue
|
24
|
+
raise DependencyMissingException.new(
|
25
|
+
"This gem depends on curl and afplay for fetching and playing audio,
|
26
|
+
feel free to fork or make a pull request to improve it
|
27
|
+
")
|
28
|
+
ensure
|
23
29
|
self
|
24
30
|
end
|
25
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ldoce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
16
|
-
requirement: &
|
16
|
+
requirement: &70144765627740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70144765627740
|
25
25
|
description: API for the Longman Dictionary of Contemporary English
|
26
26
|
email:
|
27
27
|
- markthedeveloper@gmail.com
|