pin_payment 0.5.0 → 0.5.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: c1835663bf6d75a73992a5adfea9f5d51f8e6ab0
4
- data.tar.gz: 47ca20ece665a0f34ad3c70ecd1b7e110980283f
3
+ metadata.gz: 6f9e83c1491377893364052ac15ebcaa486c7f39
4
+ data.tar.gz: ff071fcb3b6f47b30045d4cf6de3b641d5976a3c
5
5
  SHA512:
6
- metadata.gz: c0ef503fa16c36c566f946a0194091f89faa7ecb95949590e35013b497bf5ff3fee735a0e165ae3e214f180e6c59aaaccf2daaf22215cf1afdffec2357a6e028
7
- data.tar.gz: d11bd6d4c17e0afd109d3b87868ff4bd557787920c6d9c864886ed3faa9792ce21d4e03db353b282cefad3c33c1f32767272bac6352dbf9f15e4124e03e7e430
6
+ metadata.gz: 181688cdd45686b3d457ba9923b7b14e01e71111f7077fb80fed714501c0d6181036c03faa203dd74f4ed801b88d1e32239030a8b0e4d32026acfb88dce7887a
7
+ data.tar.gz: 2477f7e5f8b3c790318272184a425e57fbf95412f3493d347277d426db88b38b5294d3fa8ba508da2efac7999ec5ac2b51955fd2256547ef38c16d8b2a6e3e3c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pin_payment (0.5.0)
4
+ pin_payment (0.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,11 +18,10 @@ module PinPayment
18
18
  new(response.delete('token'), response)
19
19
  end
20
20
 
21
+
21
22
  # @return [Hash]
22
23
  def to_hash
23
- {}.tap do |hash|
24
- self.class.attributes {|attribute| value = send(attribute); hash[attribute] = value if value}
25
- end
24
+ {}.tap{|h| self.class.attributes.each{|k| v = send(k) ; h[k] = v if v }}
26
25
  end
27
26
 
28
27
  protected
@@ -2,7 +2,7 @@ module PinPayment
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pin_payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danial Pearce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-06 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakeweb