bestchange-api 0.2 → 0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4fa52ab370765f06a8ea106d4547fca3cc36edcd379827fa1b7abe57e0f0384
4
- data.tar.gz: d282e1a33a6e49ebe0179d4042304639e3f277c4999d0c8843cae500cbcad0bd
3
+ metadata.gz: 04f8a40e380db40689c09a837ee11046dc2db89aa57b4cb35e7f7f2a1491a1c3
4
+ data.tar.gz: 71e0dfc4d65b38a3ce17c5a680a559e43b2370683eb31b1cb865feef921fe81a
5
5
  SHA512:
6
- metadata.gz: dd099097f90da89ce098e417252e7eca73f3432c623b1fc89e1674f4f6e44a4bfc24da5557417b12fa6b055ab1a18ef087b9c692c50b3ab3d97ed3dc8912aede
7
- data.tar.gz: e7f9176098122689fb80453d0c9215580215daf7773bc4024846ada491727883af9fe1dc142a8886fd80448d14a377c23c906a6090452c01e3e897b25e8b35e5
6
+ metadata.gz: 431c8546f41f151ae5c087ca373759e4f535921a951171b023c6a52e553d94a7a71ceea0ce28162971f758e90c1c48077fe57f16d780d7a0df6d6558577d6b72
7
+ data.tar.gz: f2804fcd70e28c4ff26bc19a70651fc84d47d31d938b0e40fe1a4cc8bd45c3b15a381d531b93241c2dec1974578f8996621e2b4c349007d9839cb094f2b82fc4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change log
2
2
 
3
+ ## [0.3]
4
+ Fix configuration access
5
+
3
6
  ## [0.2]
4
7
  Fix missing dependencies. Move requirements to Api class
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bestchange-api (0.1)
4
+ bestchange-api (0.3)
5
5
  rubyzip (= 2.3.2)
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bestchange
4
- VERSION = '0.2'
4
+ VERSION = '0.3'
5
5
  end
data/lib/bestchange.rb CHANGED
@@ -12,15 +12,13 @@ module Bestchange
12
12
  DIRECTORY = Dir.pwd
13
13
  TIMEOUT = 40
14
14
 
15
- class << self
16
- def configuration
17
- @configuration ||= Configuration.new
18
- end
15
+ def self.configuration
16
+ @configuration ||= Configuration.new
17
+ end
19
18
 
20
- def configure
21
- return configuration unless block_given?
19
+ def self.configure
20
+ return configuration unless block_given?
22
21
 
23
- yield(configuration)
24
- end
22
+ yield(configuration)
25
23
  end
26
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bestchange-api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Karpinovsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-04 00:00:00.000000000 Z
11
+ date: 2023-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip