flickarr 0.1.1 → 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: c50c6e6f2664492ab55eb32927afe56692e269b431ec19ee74baeebc83f3ac70
4
- data.tar.gz: aef8dfd451960b1b876ce17b0b1a7b48718c4c4918ef0bdd3c96b8f6699aef89
3
+ metadata.gz: db2edb2977bb888a2d99120d14ec6f9d7fe3ef105618870ccf1ff075bdc196f5
4
+ data.tar.gz: 4f38435d1fff9d1235a23dd4717bac0c85d7ca5e16fd4b3a82ed421e7e349682
5
5
  SHA512:
6
- metadata.gz: ed395b3a6d8ec7ab657e89d474c0e79891ac6f2facbdd4c9379a634dfec997df540d2633c888340fb671cef3245d806010ab4a55cc96e94f9d615bdab6fbb8a8
7
- data.tar.gz: 3a0864c903907910f3914a9c903bb988dc348f4e844c0227067c69c5085bb7c719b776ea4fa11c516bf6932c6ee67dd5071f97dbfdb20736e148e825ae77e0ba
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.1'.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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
@@ -88,7 +88,6 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - ".rubocop_todo.yml"
92
91
  - CHANGELOG.md
93
92
  - CODE_OF_CONDUCT.md
94
93
  - HELP.txt
data/.rubocop_todo.yml DELETED
@@ -1,13 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2026-03-20 01:20:48 UTC using RuboCop version 1.85.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # This cop supports safe autocorrection (--autocorrect).
11
- RSpec/ExpectActual:
12
- Exclude:
13
- - "spec/flickarr_spec.rb"