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.
@@ -1,7 +1,6 @@
1
1
  require 'httparty'
2
2
  require 'httparty/response_ext'
3
3
  require 'query_string_normalizer'
4
- require 'entrez/options'
5
4
  require 'entrez/query_limit'
6
5
 
7
6
  module Entrez
@@ -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
- @ignore_query_limit = true
10
+ self.ignore_query_limit = true
8
11
  block.call
9
- @ignore_query_limit = false
12
+ self.ignore_query_limit = false
10
13
  end
11
14
 
12
15
  end)
@@ -1,3 +1,3 @@
1
1
  module Entrez
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.8.1"
3
3
  end
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
@@ -1,11 +0,0 @@
1
- module Entrez
2
-
3
- class << self
4
-
5
- def options
6
- @options ||= {respect_query_limit: true}
7
- end
8
-
9
- end
10
-
11
- end