summon 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.5 2010-01-13
2
+ * 1 major enhancement
3
+ * add support for database recomendation lists
4
+
1
5
  === 1.1.4 2010-01-12
2
6
  * 4 minor enhancements:
3
7
  * add ISICitedReferencesCount for documents on which they're available
data/Manifest.txt CHANGED
@@ -22,6 +22,7 @@ lib/summon/schema/error.rb
22
22
  lib/summon/schema/facet.rb
23
23
  lib/summon/schema/query.rb
24
24
  lib/summon/schema/range.rb
25
+ lib/summon/schema/recommendation_list.rb
25
26
  lib/summon/schema/search.rb
26
27
  lib/summon/schema/suggestion.rb
27
28
  lib/summon/service.rb
data/lib/summon.rb CHANGED
@@ -6,7 +6,7 @@ require 'cgi'
6
6
  require 'json'
7
7
 
8
8
  module Summon
9
- VERSION = "1.1.4"
9
+ VERSION = "1.1.5"
10
10
  DEFAULT_LOCALE = 'en'
11
11
  require 'summon/locales/en'
12
12
  require 'summon/locales/fr'
@@ -26,6 +26,7 @@ module Summon
26
26
  require 'summon/schema/availability'
27
27
  require 'summon/schema/citation'
28
28
  require 'summon/schema/error'
29
+ require 'summon/schema/recommendation_list'
29
30
 
30
31
  def self.escape(value)
31
32
  value.gsub(/(,|\(|\)|\{|\}|\$|\:)/, '\\\\\1').gsub("\\", '\\')
@@ -0,0 +1,15 @@
1
+ class Summon::RecommendationList < Summon::Schema
2
+ attr :database
3
+
4
+ def description
5
+ @database['description']
6
+ end
7
+
8
+ def link
9
+ @database['link']
10
+ end
11
+
12
+ def title
13
+ @database['title']
14
+ end
15
+ end
@@ -8,6 +8,7 @@ class Summon::Search < Summon::Schema
8
8
  attr :total_request_time
9
9
 
10
10
  attr :query, :transform => :Query
11
+ attr :recommendations, :transform => :RecommendationList, :json_name => "recommendationLists"
11
12
  attr :suggestions, :transform => :Suggestion, :json_name => :didYouMeanSuggestions
12
13
  attr :documents, :transform => :Document
13
14
  attr :facets, :transform => :Facet, :json_name => "facetFields"
data/summon.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{summon}
5
- s.version = "1.1.4"
5
+ s.version = "1.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Charles Lowell"]
9
- s.date = %q{2010-01-11}
9
+ s.date = %q{2010-01-13}
10
10
  s.description = %q{Ruby language bindings for Serials Solutions Summon Unified Discovery Service}
11
11
  s.email = ["cowboyd@thefrontside.net"]
12
12
  s.executables = ["summon", "summonh"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-11 00:00:00 +02:00
12
+ date: 2010-01-13 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -79,6 +79,7 @@ files:
79
79
  - lib/summon/schema/facet.rb
80
80
  - lib/summon/schema/query.rb
81
81
  - lib/summon/schema/range.rb
82
+ - lib/summon/schema/recommendation_list.rb
82
83
  - lib/summon/schema/search.rb
83
84
  - lib/summon/schema/suggestion.rb
84
85
  - lib/summon/service.rb