entrez 0.5.8 → 0.5.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/entrez.rb +0 -1
- data/lib/entrez/spec_helpers.rb +7 -4
- data/lib/entrez/version.rb +1 -1
- metadata +1 -2
- data/lib/entrez/options.rb +0 -11
data/lib/entrez.rb
CHANGED
data/lib/entrez/spec_helpers.rb
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# IGNORING THE QUERY LIMIT IS FOR TESTING ONLY WHERE NO REQUESTS ARE MADE TO NCBI.
|
2
|
+
# WHEN IGNORING, REQUESTS SHOULD BE STUBBED/FAKED.
|
3
|
+
|
1
4
|
Entrez.extend(Module.new do
|
2
5
|
|
6
|
+
attr_writer :ignore_query_limit
|
7
|
+
|
3
8
|
# For the duration of the block, Entrez requests will ignore query limit.
|
4
|
-
# FOR TESTING ONLY WHERE NO REQUESTS ARE MADE TO NCBI.
|
5
|
-
# REQUESTS MUST BE STUBBED/FAKED.
|
6
9
|
def ignore_query_limit(&block)
|
7
|
-
|
10
|
+
self.ignore_query_limit = true
|
8
11
|
block.call
|
9
|
-
|
12
|
+
self.ignore_query_limit = false
|
10
13
|
end
|
11
14
|
|
12
15
|
end)
|
data/lib/entrez/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: entrez
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.8
|
5
|
+
version: 0.5.8.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jared Ning
|
@@ -76,7 +76,6 @@ files:
|
|
76
76
|
- Rakefile
|
77
77
|
- entrez.gemspec
|
78
78
|
- lib/entrez.rb
|
79
|
-
- lib/entrez/options.rb
|
80
79
|
- lib/entrez/query_limit.rb
|
81
80
|
- lib/entrez/spec_helpers.rb
|
82
81
|
- lib/entrez/version.rb
|