parsec_client 0.0.8 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/parsec_client.rb +19 -0
  3. metadata +2 -2
  4. data/lib/parsec.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc7e76d01da1a1bde99cc5ca33f349529c9fc71782d581fd6f9d8bf0b1c4d227
4
- data.tar.gz: 7006f8aa3d15b7c4c7767bd09bd27db4090c96ff47d233e2263f2004f67bd432
3
+ metadata.gz: 81adcf4a72841ede2acb832245decf4e86fa773cd7fe52f68045576bccb8b7fa
4
+ data.tar.gz: 85b626eb1c1da997bd641864d936c95cb60238f458f38fd1600b51c78e10288d
5
5
  SHA512:
6
- metadata.gz: 53e9ca4f9fb8e23f183818e80c92276a9d2bee339a2dc0a47ecea21c96b1d04c9a29784ac1357805ee4ec9bd2893c82e64a1298dca15274ebfebc6753a5a59dd
7
- data.tar.gz: 37a74c06de2154551c1e3e90613668c85bb1eafd063e2413c6efcc2c08c7c4eaf00b3e7022d2b15020230b8183794fad8c06060ffd93ef137253b7c9d23d68c5
6
+ metadata.gz: e8bce607b2fe7cbc255d5566c88f5b6aa8f9fe38b89eb572df33619d9fdd516c1579928c19f3c68ecd10e56d0a09c40bf15c558cec362224dfca855180a1bfc0
7
+ data.tar.gz: 4dc6b0279d6b761c18c1feb69ac785e79a57532a8de596d6c2108e080ea992e623c8c5f51b187ae7c225b9a215ac841efea332f089e99df18db88cd3714274d7
@@ -0,0 +1,19 @@
1
+ require 'parsec/configuration'
2
+
3
+ class ParsecClient
4
+ class << self
5
+ attr_accessor :configuration
6
+ end
7
+
8
+ def self.configuration
9
+ @configuration ||= Parsec::Configuration.new
10
+ end
11
+
12
+ def self.reset
13
+ @configuration = Parsec::Configuration.new
14
+ end
15
+
16
+ def self.configure
17
+ yield configuration
18
+ end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsec_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kniazevych
@@ -30,7 +30,6 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - lib/parsec.rb
34
33
  - lib/parsec/availability.rb
35
34
  - lib/parsec/base.rb
36
35
  - lib/parsec/city.rb
@@ -48,6 +47,7 @@ files:
48
47
  - lib/parsec/request/location.rb
49
48
  - lib/parsec/request/order.rb
50
49
  - lib/parsec/request/region.rb
50
+ - lib/parsec_client.rb
51
51
  homepage:
52
52
  licenses: []
53
53
  metadata: {}
@@ -1,15 +0,0 @@
1
- require 'parsec/configuration'
2
-
3
- class Parsec
4
- def self.configuration
5
- @configuration ||= Configuration.new
6
- end
7
-
8
- def self.reset
9
- @configuration = Configuration.new
10
- end
11
-
12
- def self.configure
13
- yield configuration
14
- end
15
- end