cloudpayments 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cloudpayments.rb +18 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb90cc7932ceec3ed41d71e5be60cf8a4dd59fc3c318659aa7a8a25fbe7aa5bb
4
- data.tar.gz: 2be1f3185f40385651503c4c24292d7a926f97f4bdcb1cafa7f531e37b775bbb
3
+ metadata.gz: 9be2825fed8a22182ef5cba0911c8ce5fd2da88a791c71ba535307c3fda08e1f
4
+ data.tar.gz: cb86b72c1ec7a1d1181e045fcfa6b3e56379b3114d8d17b7591366432d18eec3
5
5
  SHA512:
6
- metadata.gz: bc9db74b902355e263a27590dca1116069c13298bc9a90862b924db35fc0357f1674719ff83f0ee472586367d1d50582ecad593c59fbf05473a1e21315dc14f8
7
- data.tar.gz: 3972eb93e21292971d6f8f17fdaed288635c469e60495fafc152a7556f9e4aa1e602036625036e974e0a86b43993d857ebda56197f3a460cf6f29b7dd4c77a68
6
+ metadata.gz: 4771ca3104c191be3010d592075c2184b2fca7e52d213bd3e23a5cc2d4e2e8db0ea85cd46c30a7f13015bc832059d4e6434eff2e9753ed436922c376cf3a2f92
7
+ data.tar.gz: b2c7121ea904f0f949b2aae0d74feaf399e6a00eb7a9b231585b97a13130df80d11c4f4e3d3f59bf7f2c75f13815f3ecd8625b0d529f42391c9e5530e798f0da
@@ -1,5 +1,20 @@
1
- class Cloudpayments
2
- def self.ping
3
- puts "Pong!"
1
+ require "faraday"
2
+ require "json"
3
+ require "cloudpayments/configuration"
4
+ require "cloudpayments/connection"
5
+ require "cloudpayments/client/base"
6
+ require "cloudpayments/client/orders"
7
+
8
+ module Cloudpayments
9
+ class << self
10
+ attr_accessor :configuration
11
+
12
+ def configuration
13
+ @configuration ||= Cloudpayments::Configuration.new
14
+ end
15
+
16
+ def configure
17
+ yield(configuration)
18
+ end
4
19
  end
5
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudpayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Spiridonov