met_museum 1.3.7 → 1.3.8

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
  SHA256:
3
- metadata.gz: 42eaa0e635711cb6b371d1a7cc524b552f40c402c7506b9cda10ef48487f7f3b
4
- data.tar.gz: 1259dc15496c35bde977e5a66a0449dfb068d2bee0ef6914294bba38a474ae39
3
+ metadata.gz: c00614f5de71894e2e1f941957a2503a20c17690edcc21fcee175817d82d69f7
4
+ data.tar.gz: b0ebfbbc567c0407a1b623ea7aae5bad1101bfa9f272479d50898b1db18405c5
5
5
  SHA512:
6
- metadata.gz: 6d8fb6c6316e77adaf4d700e97f68b8af64bc0f9e24a508486252955387778644621e76dc0754f20aadcbd4aa7df1db89e00b6230ea10b1c5955f2bb4e8c9b50
7
- data.tar.gz: 625e78ae82ad40f8f533e4cb9d3d94e293511ae411d9cbcf5008475770e76b71382efc7914e1f7d1592ad8d1a85b87b7c8f2f9dee64fb9e8987b61518bcf01c9
6
+ metadata.gz: e9fcf7f50cc2aaaa811ae5827a451bb85d584e22d04ec9a69da66467a1ebf46119c2271e699d81df6cff6d6da351fa7e1ea0e456105410763de77ab398bbcde9
7
+ data.tar.gz: d01338e51d75a155e942c22664720ac778156a44a81c7f565aa7ff8515d4119dbe21b8f24012566ec6e2d543f89ba0c72720a918bc184e84954623ba043f7dd7
@@ -22,8 +22,8 @@ jobs:
22
22
  - name: Set up Ruby
23
23
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
24
24
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
25
- # uses: ruby/setup-ruby@v1
26
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
25
+ uses: ruby/setup-ruby@v1
26
+ # uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
27
27
  with:
28
28
  ruby-version: ${{ matrix.ruby }}
29
29
  - name: Install dependencies
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- met_museum (1.3.7)
4
+ met_museum (1.3.8)
5
5
  faraday
6
6
  oj
7
7
 
@@ -15,7 +15,7 @@ GEM
15
15
  multipart-post (>= 1.2, < 3)
16
16
  method_source (0.9.2)
17
17
  multipart-post (2.1.1)
18
- oj (3.10.0)
18
+ oj (3.10.6)
19
19
  parallel (1.19.2)
20
20
  parser (2.7.1.4)
21
21
  ast (~> 2.4.1)
data/README.md CHANGED
@@ -322,4 +322,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
322
322
 
323
323
  ## Code of Conduct
324
324
 
325
- Everyone interacting in the MetMuseum project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/met_museum/blob/master/CODE_OF_CONDUCT.md).
325
+ Everyone interacting in the MetMuseum project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hyuraku/met_museum/blob/master/CODE_OF_CONDUCT.md).
@@ -54,6 +54,8 @@ module MetMuseum
54
54
  # @return [Hash<objectEndDate, string>] Machine readable date indicating the year the artwork was completed (may be the same year or different year than the objectBeginDate)
55
55
  # @return [Hash<medium, string>] Refers to the materials that were used to create the artwork
56
56
  # @return [Hash<dimensions, string>] Size of the artwork or object
57
+ # @return [Hash<dimensionsParsed, Array<Hash>>] Size of the artwork or object in centimeters, parsed
58
+ # @return [Hash<measurements, Array<Hash>>] Array of elements, each with a name, description, and set of measurements. Spatial measurements are in centimeters; weights are in kg.
57
59
  # @return [Hash<creditLine, String>] Text acknowledging the source or origin of the artwork and the year the object was acquired by the museum.
58
60
  # @return [Hash<geographyType, String>] Qualifying information that describes the relationship of the place catalogued in the geography fields to the object that is being catalogued
59
61
  # @return [Hash<city, String>] City where the artwork was created
@@ -75,6 +77,7 @@ module MetMuseum
75
77
  # @return [Hash<tags, Array<String>>] An array of subject keyword tags associated with the object
76
78
  # @return [Hash<objectWikidata_URL, string>] Wikidata URL for the object
77
79
  # @return [Hash<isTimelineWork, boolean>] Whether the object is on the Timeline of Art History website
80
+ # @return [Hash<GalleryNumber, string>] Gallery number, where available
78
81
 
79
82
  def object(object_id)
80
83
  response = new_faraday(API_ENDPOINT, "#{PUBLIC_URI}/#{object_id}")
@@ -102,6 +105,8 @@ module MetMuseum
102
105
  response = new_faraday(API_ENDPOINT, SEARCH_URI, {
103
106
  q: query,
104
107
  isHighlight: options[:isHighlight],
108
+ title: options[:title],
109
+ tags: options[:tags],
105
110
  departmentId: options[:departmentId],
106
111
  isOnView: options[:isOnView],
107
112
  artistOrCulture: options[:artistOrCulture],
@@ -152,6 +157,8 @@ module MetMuseum
152
157
  {
153
158
  limit: 0,
154
159
  isHighlight: false,
160
+ title: true,
161
+ tags: true,
155
162
  departmentId: nil,
156
163
  isOnView: nil,
157
164
  artistOrCulture: nil,
@@ -1,3 +1,3 @@
1
1
  module MetMuseum
2
- VERSION = "1.3.7".freeze
2
+ VERSION = "1.3.8".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: met_museum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - hyuraku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2020-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler