synapse_payments 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: 627df51a7ca9b4cbc7e74aea0fafdd70903cf1ae
4
- data.tar.gz: 4f75f645a697beaaaa4a25695b11d6114fb282d4
3
+ metadata.gz: 87b8e53a05737dc15b71138d93428e21e59a955d
4
+ data.tar.gz: 35d0134db2bae2219a1f0cfaae0fa4a18524f17d
5
5
  SHA512:
6
- metadata.gz: 254f58ed523069c429d9df890e49ac945d8a716e200a6bdb0d601654d581604dab796f5a2eaa1282b82a3eaf3db7d389a692a9a09e83188560d977a5ddaf0fe6
7
- data.tar.gz: 68c4b29014ba8c37ba394bea3c48a30041138a9dec3ac61ca7118e40daf9b8d259e06bd4a7c4eaa1c35c1d02e1ed08055df8941340d9433f97ee148bc397a8f9
6
+ metadata.gz: 44cc26fe873fa9a42eee01960914a7c5d795f81f7c0894d2336023e5444ca2ee1e229673dda3dbd5a5e2396c24965b6d9c4163e35ab08c3290ac7175ae597d8d
7
+ data.tar.gz: 024c3e4d10414bc40eed6a1795d4b25d56d8f926335c1ea7e1dcc218fe5c8d753aef42bb22b7cf8aa0977e0e24a360040fc9c93592fb71ed16570cc1ae2a62a0
@@ -1,3 +1,9 @@
1
+ begin
2
+ require "mime/types/columnar" # use if available for reduced memory usage
3
+ rescue LoadError
4
+ require "mime/types"
5
+ end
6
+
1
7
  require "synapse_payments/version"
2
8
  require "synapse_payments/error"
3
9
  require "synapse_payments/client"
@@ -1,5 +1,3 @@
1
- require 'mime/types'
2
-
3
1
  module SynapsePayments
4
2
  class UserClient
5
3
 
@@ -68,7 +66,7 @@ module SynapsePayments
68
66
 
69
67
  def attach_file(file_path)
70
68
  file_contents = open(file_path) { |f| f.read }
71
- file_type = ::MIME::Types.type_for(file_path).first.content_type
69
+ file_type = MIME::Types.type_for(file_path).first.content_type
72
70
 
73
71
  data = {
74
72
  doc: {
@@ -1,3 +1,3 @@
1
1
  module SynapsePayments
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "webmock"
29
29
 
30
30
  spec.add_dependency "http", '~> 0.9.8'
31
- spec.add_dependency "mime-types", '~> 3.0'
31
+ spec.add_dependency "mime-types", '~> 2.9'
32
32
 
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.0'
131
+ version: '2.9'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.0'
138
+ version: '2.9'
139
139
  description: Requires Ruby 2.1 and up. Not all API actions are supported. Find out
140
140
  more in the readme todo section.
141
141
  email: