sofia 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a0700857a43b841018595dea20d578f1f77a59f3c5dc625836ac44faca893e7
4
- data.tar.gz: 5641b7640ee6e1225b920ad683c3f3172a394b755b23740d5600659d15128371
3
+ metadata.gz: 206fd38384d4c79e94ccee05f74f6d1d5d6f6769f47d1d0f3034bdb2cb5cd4e2
4
+ data.tar.gz: '076318a13a06efdd73e64c5e8881fce8696251c77b41861e3974683bd7396e7d'
5
5
  SHA512:
6
- metadata.gz: 2ce0f5a2fc2cd5a0b06107465723399f650c1ec4cfb4a311b5a8196a4f2ca10eeffd73362e4c6bd0ac1c0a97fd29dbef173f765488e620ee4ceb33c5343e063f
7
- data.tar.gz: 8f062bd2075032d046892799ae82ad336dccbee9dab7227c5b0150469fd69e67edf24b7243e764cff3127e69818f79ed0281c573589fe9e81bc93df40ba749b6
6
+ metadata.gz: 738e9c8d2ffafae77c103f2e10f812bd9bddea560233b5fd668896e1daf12b79b8c552c17fa932e2a48fad00a64c4ab05eb17ad3fa8f092663897bbaf79cd9a2
7
+ data.tar.gz: 24317f9caf4547f76b3f87ba900da84fcb151734ecebeed99028e08bafa4ef6d3b3dbaf128d6c1da16adf3692277f30cf381bb6ba5e2a6c50fbc767f355e76a8
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Sofia
5
5
  module Error
6
- class InvalidJSON < Base; end
6
+ class ParserError < Base; end
7
7
  end
8
8
  end
data/lib/sofia/error.rb CHANGED
@@ -10,5 +10,5 @@ end
10
10
  require_relative 'error/connection_failed'
11
11
  require_relative 'error/ssl_error'
12
12
  require_relative 'error/timeout_error'
13
- require_relative 'error/invalid_json'
13
+ require_relative 'error/parser_error'
14
14
  require_relative 'error/argument_error'
@@ -41,7 +41,7 @@ module Sofia
41
41
 
42
42
  JSON.parse(body)
43
43
  rescue JSON::ParserError
44
- raise Sofia::Error::InvalidJSON
44
+ raise Sofia::Error::ParserError
45
45
  end
46
46
 
47
47
  #: -> bool
data/lib/sofia/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sofia
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sofia
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
  - KubaJadrzak
@@ -30,10 +30,9 @@ files:
30
30
  - lib/sofia/error.rb
31
31
  - lib/sofia/error/argument_error.rb
32
32
  - lib/sofia/error/connection_failed.rb
33
- - lib/sofia/error/invalid_json.rb
33
+ - lib/sofia/error/parser_error.rb
34
34
  - lib/sofia/error/ssl_error.rb
35
35
  - lib/sofia/error/timeout_error.rb
36
- - lib/sofia/helper.rb
37
36
  - lib/sofia/request.rb
38
37
  - lib/sofia/response.rb
39
38
  - lib/sofia/sorbet_types.rb
@@ -133,5 +132,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
132
  requirements: []
134
133
  rubygems_version: 3.6.9
135
134
  specification_version: 4
136
- summary: Simple HTTP client
135
+ summary: Simple HTTP abstraction layer
137
136
  test_files: []
data/lib/sofia/helper.rb DELETED
@@ -1,9 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- module Sofia
5
- module Helper
6
- end
7
- end
8
-
9
- require_relative 'helper/params'