rubyMorphbank 0.2.1 → 0.2.2
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/VERSION +1 -1
- data/lib/response.rb +1 -2
- data/lib/rubyMorphbank.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.2
|
data/lib/response.rb
CHANGED
|
@@ -14,7 +14,6 @@ class Response
|
|
|
14
14
|
attr :images
|
|
15
15
|
|
|
16
16
|
def initialize(request = Request.new)
|
|
17
|
-
|
|
18
17
|
|
|
19
18
|
begin
|
|
20
19
|
@response = Net::HTTP.get_response(URI.parse(request.request_url)).body
|
|
@@ -66,7 +65,7 @@ class Response
|
|
|
66
65
|
|
|
67
66
|
# pagination
|
|
68
67
|
def link_back?
|
|
69
|
-
(get_int('firstResult') > @request.request_options[:limit]) and return true
|
|
68
|
+
(get_int('firstResult') > @request.request_options[:limit].to_i) and return true
|
|
70
69
|
false
|
|
71
70
|
end
|
|
72
71
|
|
data/lib/rubyMorphbank.rb
CHANGED
|
@@ -13,10 +13,11 @@ module RubyMorphbank
|
|
|
13
13
|
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/Request'))
|
|
14
14
|
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/Response'))
|
|
15
15
|
|
|
16
|
+
SERVICES_URI = 'http://services.morphbank.net/mb3/request?'
|
|
17
|
+
|
|
16
18
|
class RubyMorphbankError < StandardError
|
|
17
19
|
end
|
|
18
20
|
|
|
19
|
-
SERVICES_URI = 'http://services.morphbank.net/mb3/request?'
|
|
20
21
|
|
|
21
22
|
class Rmb
|
|
22
23
|
attr_accessor :opt
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 2
|
|
8
|
-
-
|
|
9
|
-
version: 0.2.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.2.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- mjy
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-08-30 00:00:00 -04:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|