rail-locator-api 1.0.24 → 1.0.25

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: 8bd00871ef27b6d49f125af92cd42cc3a9962f36f0df2a40cba25edebfea0ba9
4
- data.tar.gz: 0e4cdf61f4bbd87eed4ea3e5f75404b86dc3625a7319658ad23a1145f26b3737
3
+ metadata.gz: ec94ff63c6bc94eb76d7e9897b63af9d2b61d246a115f5574e3aa76cf87cbff8
4
+ data.tar.gz: 28a848cb001d8def4ec0f35178d907a4ab6f87483f187e8fdbdcadda28697035
5
5
  SHA512:
6
- metadata.gz: 91dbeb069e8f2a59d21df3efcef7d3ba0de201d6cb24928ea869aa5705d6e932a9aad8039ecdcadf52f817bbe0f64883c5921b44a6e60fade91376e9316edcd0
7
- data.tar.gz: 1c10769ea83bdd40651bfcc8728a521f00a14dfe8f3b83fc179dd9efbef93999b82bed9a5574824427d03a50f5611a2fc8e34757734494d3602a983a5983fd32
6
+ metadata.gz: 31f7ce95a453edd9c14ce565f6f074b6f42a9e98bbb4e2fd6141cf98055b2e9312bd9d3f7e4b3081822ff76834b47ff5be1ec10d44457ba329ba675407e4f50a
7
+ data.tar.gz: 166ce1b64503b7f9a5378fe6e0287d6ee2027154a2d20948397622ecf9a62f123ff7218e846a28275edac725859a9318040af9528d6c5c024270eeee1761ba4b
@@ -364,6 +364,8 @@ class Object
364
364
  def to_params(key)
365
365
  if self.is_a? ActionDispatch::Http::UploadedFile
366
366
  [key.to_param, File.open(self.path)]
367
+ elsif %w[File Tempfile StringIO].include?(self.class.name)
368
+ self
367
369
  else
368
370
  [key.to_param, to_param.to_s]
369
371
  end
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.24"
2
+ VERSION = "1.0.25"
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.24
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov