paytm 0.1.4 → 0.1.5

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: 878f342d335b6782bf413f3cd45444ca192b7448
4
- data.tar.gz: 8abef751f85d6041b238acbc1807b34762d901aa
3
+ metadata.gz: 003b16f15c55c398c30eeacb7cbff4ba4e254744
4
+ data.tar.gz: f03f1410e3822b93921d265c498f72ff293aa8a4
5
5
  SHA512:
6
- metadata.gz: 2ad44e9af87b3a2ecb27fc1a83e204e012e51e04405ef23337f8a8500b331aa91170f665d865e8d11514dd4c25a7704acb3853b5592f389778f0c827b242c25b
7
- data.tar.gz: 5ee486e5bd0f3f2202ffe3fb9ac30b5a79d6f8860eea6737e2e36eefc774f346375400aa27dbb3a3d592ddfcf7003c42cd32cc66be75a7ed82e35ca4b2121f3a
6
+ metadata.gz: 85b8fe31d182059a1659c684f663166a479178d7d8389fc30ab8f83d4a8c29899fdbf204f25dc00863a84f1fc73aa3c5e590ad5ed11e12db8f0269ce93953bae
7
+ data.tar.gz: 4a31268fe6163768125a7d69695b06939649acd61d366e02b0582c0292bbdf2b5aad0fe6f09ffa03a616ba8c4e68638613634949b5f6a11756759499f3fdae93
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["ronakjain90@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Paytm integrationg for rails applicaiton}
13
- spec.description = %q{This is a Paytm integration for rails applicaiton!}
13
+ spec.description = %q{This is a Paytm Gratification API integration for rails applicaiton!}
14
14
  spec.homepage = ""
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
@@ -83,8 +83,15 @@ module Paytm
83
83
  response
84
84
  end
85
85
 
86
+ def self.clean_response(response)
87
+ response = JSON.parse(response)
88
+ response = response.delete_if { |_k, v| v.nil? }
89
+ response
90
+ end
91
+
86
92
  def self.execute_request(opts)
87
- RestClient::Request.execute(opts)
93
+ response = RestClient::Request.execute(opts)
94
+ response = clean_response(response)
88
95
  end
89
96
 
90
97
  end
@@ -1,3 +1,3 @@
1
1
  module Paytm
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paytm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronak Jain
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.8'
69
- description: This is a Paytm integration for rails applicaiton!
69
+ description: This is a Paytm Gratification API integration for rails applicaiton!
70
70
  email:
71
71
  - ronakjain90@gmail.com
72
72
  executables: []