summon 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.2.6
2
+ * 1 major enhancement
3
+ * added content_types method (multi-value content types)
4
+
1
5
  ### 1.2.5
2
6
  * 1 major enhancement
3
7
  * added ERIC field to document schema
@@ -5,7 +5,7 @@ class Summon::Document < Summon::Schema
5
5
  attr :subtitle
6
6
  attr :publication_title
7
7
  attr :publication_series_title
8
- attr :content_type
8
+ attr :content_types, :json_name => "ContentType", :single => false
9
9
 
10
10
  attr :authors, :json_name => "Author_xml"
11
11
  attr :corporate_authors, :json_name => "CorporateAuthor"
@@ -66,6 +66,10 @@ class Summon::Document < Summon::Schema
66
66
 
67
67
  attr :spotlight_children, :single => false, :transform => :Document
68
68
 
69
+ def content_type
70
+ @content_types.first
71
+ end
72
+
69
73
  def isbn
70
74
  @isbns.first
71
75
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Summon
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summon
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 5
10
- version: 1.2.5
9
+ - 6
10
+ version: 1.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charles Lowell
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-07-07 00:00:00 -05:00
19
+ date: 2011-07-26 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency