RubyGems
npm
Organizations
Log in
Sign up
RubyGems
oald_parser
Versions diffs
0.1.5 → 0.1.6
oald_parser 0.1.5 → 0.1.6
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/oald_parser/page_downloader.rb
+1
-2
metadata
+2
-2
data/lib/oald_parser/page_downloader.rb
CHANGED
Viewed
@@ -9,8 +9,7 @@ module OaldParser
9
9
10
10
def download(word)
11
11
url = URI.parse(@url)
12
-
response =
Net::HTTP.
post_form
(url
,
search_word
:
word)
13
-
response.body
12
+
Net::HTTP.
get
(url
+ "?
search_word
=#{
word
}"
)
14
13
rescue
15
14
nil
16
15
end
metadata
CHANGED
Viewed
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
segments:
6
6
- 0
7
7
- 1
8
-
-
5
9
-
version: 0.1.
5
8
+
-
6
9
+
version: 0.1.
6
10
10
platform: ruby
11
11
authors:
12
12
- Victor Savkin