rail-locator-api 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec94ff63c6bc94eb76d7e9897b63af9d2b61d246a115f5574e3aa76cf87cbff8
4
- data.tar.gz: 28a848cb001d8def4ec0f35178d907a4ab6f87483f187e8fdbdcadda28697035
3
+ metadata.gz: 119ca579b29cc950cd89a82d0a0234b309b0ef48e93f979c058798b270881ebf
4
+ data.tar.gz: d0c54d0d2d476cbf1163d256a80fc6381ecdcc7f738acc32995a976c4215876a
5
5
  SHA512:
6
- metadata.gz: 31f7ce95a453edd9c14ce565f6f074b6f42a9e98bbb4e2fd6141cf98055b2e9312bd9d3f7e4b3081822ff76834b47ff5be1ec10d44457ba329ba675407e4f50a
7
- data.tar.gz: 166ce1b64503b7f9a5378fe6e0287d6ee2027154a2d20948397622ecf9a62f123ff7218e846a28275edac725859a9318040af9528d6c5c024270eeee1761ba4b
6
+ metadata.gz: 2da38a334259b719763e03408a72a5f6df491ff3bd9742e81a993583225295d41a7de1d969a9263c0996a67a9208b6dab99552d7a9a612b5a544514e8cd01f73
7
+ data.tar.gz: d7e52a45bcffaeebb0c6a65f4f8f6c897ce4158c4157e266ba9ae7eb7c94e7258438e22fc090e663aa398c1d575b817964fd8dc5fba4bacee770f8b4da039f8a
@@ -247,7 +247,7 @@ module RailLocatorApi
247
247
  result = is_multipart?(item, result)
248
248
  end
249
249
  result
250
- elsif body.is_a?(ActionDispatch::Http::UploadedFile)
250
+ elsif [ActionDispatch::Http::UploadedFile, StringIO, Tempfile, File].include?(body.class)
251
251
  return true
252
252
  else
253
253
  result || false
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.25"
2
+ VERSION = "1.0.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rail-locator-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.25
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov