olam 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/olam.rb +0 -3
- data/lib/olam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aedef96ac02db7108172c4fec04de2a58d5ed1e2
|
4
|
+
data.tar.gz: 3105d279dcc0b1becaff7929f4547f4a0a2a4458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c33155e44437bd2e7909a07291d80f2bb176cec48a7131032e4388ee44e275cc3c96643aee57c7b2789c2eab49e268db664f32664a5eb0d2b649f7e924a88896
|
7
|
+
data.tar.gz: 7c013abc260ed51623f3596ed87bd46f735b25e10f3654f06b596b1c016b09e77f7ff5076d8b132c71bc1e920a748d0f8aa35411e87867253b3d1e8056d1d137
|
data/Gemfile
CHANGED
data/lib/olam.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
require "olam/version"
|
2
|
-
require 'nokogiri'
|
3
|
-
require 'open-uri'
|
4
2
|
|
5
3
|
module Olam
|
6
4
|
class Api
|
@@ -9,7 +7,6 @@ module Olam
|
|
9
7
|
|
10
8
|
response = HTTParty.post('http://mashithantu.com/dictionary/ajaxdict.php', body: request_body)
|
11
9
|
str = sanitize(response.to_s)
|
12
|
-
p str
|
13
10
|
(str.scan(/ (\w+)<br>/) + str.scan(/ (\w+)<br \/>/)).join('|')
|
14
11
|
end
|
15
12
|
|
data/lib/olam/version.rb
CHANGED