glebtv-rails-uploader 0.11.0 → 0.11.1

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: cbee7406edb183e54762046fe990e3c034249a9433af87a7d594154303e449d1
4
- data.tar.gz: dbc19b1ea0c86c7173d5fce091f998b649a4941c1787cf9585163bd177a4e3a0
3
+ metadata.gz: 66897b492351d987070328a15484b624a0de99eb0d19dacf7e955ce77f713ddc
4
+ data.tar.gz: '08572b35933528584b2aeab372cdc4b52b804c25b09e8b1ac43a99319ffa86ff'
5
5
  SHA512:
6
- metadata.gz: 515057b4db2313405c452c6d21b7795092e7fbbb29c9c51e0e8ea3bc28f7c5529825883a42cd3a84d399398283e855c7550581c3525630f7d0c73c1ba10a086b
7
- data.tar.gz: a334f357b5302110bf2db28a9ce0fe1ca72d94d9912706628d4a0ff7cb334f4a456f5a3783061b8043cfba1b026474a45ff4e492d8fb760ce4aaf51b5f337740
6
+ metadata.gz: 43d179f0adea398d9bb4018289f11c25f33185e144603422e97834a76eba8a54d12f1177743255decaa39925580a0dd723a8f9ee3a5ef539bbef47dd4ad402c1
7
+ data.tar.gz: e51baf03eedc5f57a6c550168c6d19361f5337ff2faa3697c61c231c570eadfdc088cb226194a93909e5c76095cd067272a1e451151c80d6a9d6fe0dbbb0e4cf
@@ -47,10 +47,8 @@ module Uploader
47
47
  end
48
48
 
49
49
  def render_json(hash_or_object, status = 200)
50
- ctype = env["HTTP_USER_AGENT"] && env["HTTP_USER_AGENT"].include?("Android") ? "text/plain" : "application/json"
51
-
52
50
  self.status = status
53
- self.content_type = ctype
51
+ self.content_type = "application/json"
54
52
  self.response_body = hash_or_object.to_json(:root => false)
55
53
  end
56
54
  end
@@ -1,3 +1,3 @@
1
1
  module Uploader
2
- VERSION = "0.11.0".freeze
2
+ VERSION = "0.11.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv-rails-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Galeta