aurb 1.2.2 → 1.2.3
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/aurb.gemspec +1 -1
- data/lib/aurb/aur.rb +4 -11
- data/lib/aurb/version.rb +1 -1
- data/performance/aur.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
data/aurb.gemspec
CHANGED
data/lib/aurb/aur.rb
CHANGED
@@ -80,18 +80,11 @@ module Aurb
|
|
80
80
|
# Returns an array containing a hash of search results
|
81
81
|
# for a given +package+.
|
82
82
|
def list_search_results(package)
|
83
|
-
json = parse_json(Aurb.aur_rpc_path(:search, URI.escape(package.to_s)))
|
84
|
-
return [] if json.type =~ /error/
|
85
|
-
ids = json.results.map(&:ID)
|
86
83
|
results = []
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
results << json.results.symbolize_keys
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end.each(&:join)
|
84
|
+
parse_json Aurb.aur_rpc_path(:search, URI.escape(package.to_s)) do |json|
|
85
|
+
next if json.type =~ /error/
|
86
|
+
results << json.results
|
87
|
+
end
|
95
88
|
results
|
96
89
|
end
|
97
90
|
|
data/lib/aurb/version.rb
CHANGED
data/performance/aur.rb
CHANGED