paypoint-blue 0.4.0 → 0.4.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: 0720906c714d8425e8af2ea0bf97a877740caccf
4
- data.tar.gz: 8e3711213ea3b1db72eaeeb28a76f60b860ff902
3
+ metadata.gz: 6078c16111c929c837584fee6e2d5011242697c3
4
+ data.tar.gz: 86dc6770b39136f5fa3e27dd1a07c0aa1991ab6c
5
5
  SHA512:
6
- metadata.gz: 0eefb28d9180465c528f689e926944210120c67d53c2131ca3000ce5a361a4138dda564e493d82b4e031bcb7c7f12090eb1706a10a94eb2dae4063a7f1e13eeb
7
- data.tar.gz: 8a694c43a0bf2dd305ce6ff9fbc29168452b1b10b4c17a751c5cb88bd33890442f0a11f700f903cae09b97bac750ee5e938f2506b3c14be3b38b31adbe59e721
6
+ metadata.gz: a39bc9d49936d4bed1a21fc36dd4cb5246a8cdea160e9d9bfc2c97542f8805d0617bd9b991e7878d708755067fd3666830dd0fd7d7c6095af76631405df6aff2
7
+ data.tar.gz: bf1cc6dfe2c41012d6d50d24d5dabbcce6d76cf2a7b400610d0ec63f455690fe4cad4a999ba0715454f14416590dc8256d9bcb3fc1987a9890593a4221a70e7d
@@ -7,7 +7,7 @@ module PayPoint
7
7
  def snakecase_and_symbolize_keys(hash)
8
8
  case hash
9
9
  when Hash
10
- hash.each_with_object({},) do |(key, value), snakified|
10
+ hash.each_with_object({}) do |(key, value), snakified|
11
11
  snakified[snakecase(key)] = snakecase_and_symbolize_keys(value)
12
12
  end
13
13
  when Enumerable
@@ -20,7 +20,7 @@ module PayPoint
20
20
  def camelcase_and_symbolize_keys(hash)
21
21
  case hash
22
22
  when Hash
23
- hash.each_with_object({},) do |(key, value), camelized|
23
+ hash.each_with_object({}) do |(key, value), camelized|
24
24
  camelized[camelcase(key)] = camelcase_and_symbolize_keys(value)
25
25
  end
26
26
  when Enumerable
@@ -30,8 +30,6 @@ module PayPoint
30
30
  end
31
31
  end
32
32
 
33
- private
34
-
35
33
  def snakecase(original)
36
34
  string = original.is_a?(Symbol) ? original.to_s : original.dup
37
35
  string.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
@@ -1,5 +1,5 @@
1
1
  module PayPoint
2
2
  module Blue # rubocop:disable Documentation
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
data/lib/paypoint/blue.rb CHANGED
@@ -1,3 +1,7 @@
1
+ require "json"
2
+
3
+ require "hashie/mash"
4
+
1
5
  require "paypoint/blue/version"
2
6
  require "paypoint/blue/api"
3
7
  require "paypoint/blue/hosted"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypoint-blue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laszlo Bacsi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-10 00:00:00.000000000 Z
11
+ date: 2015-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -208,4 +208,3 @@ signing_key:
208
208
  specification_version: 4
209
209
  summary: API client for PayPoint Blue
210
210
  test_files: []
211
- has_rdoc: