flickarr 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7abdc9751ce19602d953af24e443833a794542921d2f0d0df376f008cf87b712
4
- data.tar.gz: a4e5d1557eb5f8019b69bd079faaa8e1a3552a1ce1523631a98b0ffb5f6153dd
3
+ metadata.gz: db2edb2977bb888a2d99120d14ec6f9d7fe3ef105618870ccf1ff075bdc196f5
4
+ data.tar.gz: 4f38435d1fff9d1235a23dd4717bac0c85d7ca5e16fd4b3a82ed421e7e349682
5
5
  SHA512:
6
- metadata.gz: e535ef9fb8cff444d2aeca3da5b2c0cc6a1283c43239b6bf3895f81fd5729943db1c2e6a177797e55e6b6e12a31daaacca46f32edaf21260be0870a245b1c597
7
- data.tar.gz: b04e32db0f0760a1e414fc831657aebeac2a2a0eb1884b7790a22487cbc2db690bf90a3b88b25700756845f678dbecf7b9cc0b97e7803ce09452e31b156dc6ba
6
+ metadata.gz: 954b3c5e1e8bdd59dac42b7ad8574541012022971cdd2095e6d28bc8a394ca9f5a55c0c0786216d7b29ebb0f92cae4fd6d9da80d759602333ff0919f3ea6a21d
7
+ data.tar.gz: 43b8f47b7b1812b0dc863401be1f72c9b75fbc4d87abcdf7c86743f578883f832217b0756d128e5077b578499dbb8849ad95de604b0214fd13c66aee053ab3fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2026-03-22
4
+
5
+ - Fix crash on photos with partial location data (e.g. coordinates but no locality)
6
+
3
7
  ## [0.1.1] - 2026-03-19
4
8
 
5
9
  - Fix repo URLs in the gem/gemspec, so that rubygems.org links to the correct place
data/lib/flickarr/post.rb CHANGED
@@ -185,15 +185,15 @@ module Flickarr
185
185
  loc = info.location
186
186
 
187
187
  {
188
- accuracy: loc.accuracy.to_s,
189
- context: loc.context.to_s,
190
- country: loc.country.to_s,
191
- county: loc.county.to_s,
192
- latitude: loc.latitude.to_s,
193
- locality: loc.locality.to_s,
194
- longitude: loc.longitude.to_s,
195
- region: loc.region.to_s
196
- }
188
+ accuracy: loc.respond_to?(:accuracy) ? loc.accuracy.to_s : nil,
189
+ context: loc.respond_to?(:context) ? loc.context.to_s : nil,
190
+ country: loc.respond_to?(:country) ? loc.country.to_s : nil,
191
+ county: loc.respond_to?(:county) ? loc.county.to_s : nil,
192
+ latitude: loc.respond_to?(:latitude) ? loc.latitude.to_s : nil,
193
+ locality: loc.respond_to?(:locality) ? loc.locality.to_s : nil,
194
+ longitude: loc.respond_to?(:longitude) ? loc.longitude.to_s : nil,
195
+ region: loc.respond_to?(:region) ? loc.region.to_s : nil
196
+ }.compact
197
197
  end
198
198
 
199
199
  def extract_owner info
@@ -1,3 +1,3 @@
1
1
  module Flickarr
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickarr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker