swishe 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/swishe_base.c +3893 -1790
- data/lib/swishe.rb +9 -3
- metadata +3 -3
data/lib/swishe.rb
CHANGED
@@ -41,9 +41,15 @@ class SwishE
|
|
41
41
|
|
42
42
|
# Class to access the fields in the result set.
|
43
43
|
class Result
|
44
|
+
attr_accessor :reccount
|
44
45
|
include SwishEWrapper
|
45
46
|
def initialize(result)
|
46
47
|
@result=result
|
48
|
+
# There seems to be a bug which I can't locate: reccount looks like a global variable.
|
49
|
+
# It defaults to the max count of the results. So I query this property before going to the
|
50
|
+
# next record. This is perhaps just a workaround. See
|
51
|
+
# http://rubyforge.org/tracker/index.php?func=detail&aid=8630&group_id=2688&atid=10339
|
52
|
+
@reccount=swish_result_property_u_long @result, "swishreccount"
|
47
53
|
end
|
48
54
|
# Dynamically return the result based on the name of method. For example,
|
49
55
|
# calling Result#foo tries to get the property name 'foo' from swish-e.
|
@@ -75,9 +81,9 @@ class SwishE
|
|
75
81
|
swish_result_property_str @result, "swishlastmodified"
|
76
82
|
end
|
77
83
|
# Return the property "swishreccount".
|
78
|
-
def reccount
|
79
|
-
|
80
|
-
end
|
84
|
+
# def reccount
|
85
|
+
# swish_result_property_u_long @result, "swishreccount"
|
86
|
+
# end
|
81
87
|
# Return the property "swishfilenum".
|
82
88
|
def filenum
|
83
89
|
swish_result_property_u_long @result, "swishfilenum"
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.1
|
3
3
|
specification_version: 1
|
4
4
|
name: swishe
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date:
|
6
|
+
version: "0.2"
|
7
|
+
date: 2007-03-28 00:00:00 +02:00
|
8
8
|
summary: Ruby bindings for swish-e.
|
9
9
|
require_paths:
|
10
10
|
- lib
|