poliqarpr 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ 0.1.7
2
+ - speed up querying of specific results
3
+
4
+ 0.1.6
5
+ - fix fetching of specific result
6
+
1
7
  0.1.5
2
8
  - Raises exception if failed to open corpus
3
9
  - New PoliqarpException class as a base for all Poliqarp exception
@@ -39,7 +39,7 @@ module Poliqarp
39
39
  # A hint about installation of default corpus gem
40
40
  def self.const_missing(const)
41
41
  if const.to_s =~ /DEFAULT_CORPUS/
42
- raise "You need to install 'apohllo-poliqarpr-corpus' to use the default corpus"
42
+ raise "You need to install gem 'poliqarpr-corpus' to use the default corpus"
43
43
  end
44
44
  super
45
45
  end
@@ -450,6 +450,8 @@ protected
450
450
  result_count = talk("BUFFER-STATE").split(" ")[2].to_i
451
451
  break unless should_wait?
452
452
  end while result_count < answer_offset
453
+ # force stop waiting if the result offset is reached before the query has finished
454
+ stop_waiting
453
455
  @last_result = "OK #{result_count}"
454
456
  result_count
455
457
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "poliqarpr"
3
- s.version = "0.1.6"
3
+ s.version = "0.1.7"
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
  s.summary = "Ruby client for Poliqarp"
6
6
  s.email = "apohllo@o2.pl"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: poliqarpr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Aleksander Pohl
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-21 00:00:00 +01:00
13
+ date: 2011-02-22 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies: []
16
16