scooby_snacks 0.3.1 → 0.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 886558bf6cda81123483348dad001680b9d4852a
4
- data.tar.gz: eafe4bbecbb547ed5b217378a2f5abf5261e3800
3
+ metadata.gz: 71788e2f8f9377b676cd9b41de1fa15259f2ac3c
4
+ data.tar.gz: 5da9e863b415a71d6e9e575ed05834246c629606
5
5
  SHA512:
6
- metadata.gz: d99b1aee541632f06ec3c6831262706c43362203ff58b7f38e98abdd6416bcd879a5f4abeea0e4417478c44e534a6c74a33a0a744c79e9c6c351801b830dc6e7
7
- data.tar.gz: 8536ef85973b88a3bb0fd29a2fefbfa0baf4f43d88e29fbfe2dcab32aec8528c56481afa8007affe6cac6e63af6089edc7e14bec53fbd0af9724eab33b0d2a3f
6
+ metadata.gz: 249b1143cd172b0d87f9719f93efc420fed46d4bc24e50e7af339a7b35b09ceae4518028f3012fbe28dde8d00d7089b311fb13622b86983f7f7298671440c341
7
+ data.tar.gz: adb2c553faa85ad4892663a9f0e40001b9bcc44616108b09771b0cfe11069a259451c32722ea763c60b984fa9c1b21dc68faa3c0b8a8af3eba7c8173c0987b27
@@ -50,6 +50,7 @@ module ScoobySnacks
50
50
  @controlled = true if @raw_array['controlled'].to_s == "true"
51
51
  @controlled = true if @raw_array['input'].to_s.include? "controlled"
52
52
  @controlled = true if (@raw_array['vocabularies'].is_a?(Array) && !@raw_array['vocabularies'].empty?)
53
+ @controlled = true if (@raw_array['vocabulary'].is_a?(Array) && !@raw_array['vocabulary'].empty?)
53
54
  @controlled = true if (@raw_array['vocabulary'].is_a?(Hash) && !@raw_array['vocabulary'].empty?)
54
55
  return @controlled
55
56
  end
@@ -120,7 +121,7 @@ module ScoobySnacks
120
121
  end
121
122
 
122
123
  def display_groups
123
- @raw_array['display_groups'] || Array(@raw_array['display_group'])
124
+ @raw_array['display_groups'] || Array.wrap(@raw_array['display_group'])
124
125
  end
125
126
 
126
127
  def display_group
@@ -128,7 +129,7 @@ module ScoobySnacks
128
129
  end
129
130
 
130
131
  def vocabularies
131
- @raw_array['vocabularies'] || Array(@raw_array['vocabulary'])
132
+ @raw_array['vocabularies'] || Array.wrap(@raw_array['vocabulary'])
132
133
  end
133
134
 
134
135
  def primary_vocabulary
@@ -107,6 +107,10 @@ module ScoobySnacks
107
107
  @fields.keys
108
108
  end
109
109
 
110
+ def all_fields
111
+ @fields.values
112
+ end
113
+
110
114
  def default_text_search_solrized_field_names
111
115
  # Include all fields marked for full text search that are also individual search fields
112
116
  # and therefore excluded from the 'all_text_timv' search field
@@ -1,3 +1,3 @@
1
1
  module ScoobySnacks
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scooby_snacks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - UCSC Library Digital Initiatives Department, Ned Henry
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-22 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler