rail-locator-api 1.0.26 → 1.0.27

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: 119ca579b29cc950cd89a82d0a0234b309b0ef48e93f979c058798b270881ebf
4
- data.tar.gz: d0c54d0d2d476cbf1163d256a80fc6381ecdcc7f738acc32995a976c4215876a
3
+ metadata.gz: 95859025aced9cb868cdc35eebeb6d871e82c465e70d85636528f6b061af48ba
4
+ data.tar.gz: '0961aab8bb120e0c09345d421d883161050a3e84bc0cda4d69ad86c9aa232745'
5
5
  SHA512:
6
- metadata.gz: 2da38a334259b719763e03408a72a5f6df491ff3bd9742e81a993583225295d41a7de1d969a9263c0996a67a9208b6dab99552d7a9a612b5a544514e8cd01f73
7
- data.tar.gz: d7e52a45bcffaeebb0c6a65f4f8f6c897ce4158c4157e266ba9ae7eb7c94e7258438e22fc090e663aa398c1d575b817964fd8dc5fba4bacee770f8b4da039f8a
6
+ metadata.gz: d97cedfa807962dcdc104d6b1a95582245281646118533693e87c517e6bc596b36760683e7d93ce4b6c5011ea8148629b49e2ed849db1d079136908decff6940
7
+ data.tar.gz: e38ffc250727630f4ce67253c259d23a315b90283eb42eefcfa4821d2970b7db28c1345115d1d88212309027a2e205c1209e64286d7c93c0eb3c2424f69f883b
@@ -363,7 +363,12 @@ end
363
363
  class Object
364
364
  def to_params(key)
365
365
  if self.is_a? ActionDispatch::Http::UploadedFile
366
- [key.to_param, File.open(self.path)]
366
+ [key.to_param, File.open(self.path),
367
+ {
368
+ :filename => self.original_filename,
369
+ :content_type => self.content_type
370
+ }
371
+ ]
367
372
  elsif %w[File Tempfile StringIO].include?(self.class.name)
368
373
  self
369
374
  else
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.26"
2
+ VERSION = "1.0.27"
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.26
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov