shc 0.0.3 → 0.0.4

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: e152aa52dfd70d0fc77b67f85d6d881d08eecd7bb844c95a3dc40c2b862e1ac4
4
- data.tar.gz: eeeaa302de263935c7ed86ae6e68686db0dfc280346a0136af50c3534256eaca
3
+ metadata.gz: e1d71817d9a23ea8bbc338ca922fe8db7d6b6a2c196fa0954b5c5e11b1bb4040
4
+ data.tar.gz: ef75a80d0ca533a006011a801e427a6fc4b4e3228a5ca8bb4dec24dfd8c8deb3
5
5
  SHA512:
6
- metadata.gz: 8edb988dda1b8a359a4af4ee213f0c93bd21ae8e711e94892294890c35b45dca7dbbf59c87cd2a8ad10700383d5d841fb26ff7de233435b8febf91a31b2a2b0d
7
- data.tar.gz: ca493df4e6b5f64fe2d44b338ebdbdd4838d57ae05bff6fc7015b769e0ac9fc3f2bd71a1cbc7903b528b21945fac237609bfc0fd18a656725c7b8af35859d062
6
+ metadata.gz: 619959ba907f8c49be27b5a2409b403b8c6723b091b9b4c3a5375348ce3c3b233aedb7292f10252ebb30d68afbba1f6b7cc063ba808ad95f6813199077add912
7
+ data.tar.gz: 8ec6be93481770263ba740b01a0bfb5ccd9b37b93e66b649ec09d965a6cee9a752f5d8a6cf83d4cadaed7e2056c9a7f582465613a7897d848bb79cc4373c35d4
data/.rubocop.yml ADDED
@@ -0,0 +1,7 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ ParserEngine: parser_prism
4
+ StringLiteralsFrozenByDefault: true
5
+
6
+ Layout/LineLength:
7
+ Max: 80
data/.zed/debug.json ADDED
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "label": "🧪 RSpec Test Debug",
4
+ "adapter": "rdbg",
5
+ "request": "launch",
6
+ "program": "$ZED_WORKTREE_ROOT/bin/rspec",
7
+ "args": ["$ZED_FILE"],
8
+ "cwd": "$ZED_WORKTREE_ROOT",
9
+ "env": {
10
+ "RAILS_ENV": "test"
11
+ }
12
+ },
13
+ {
14
+ "label": "🔍 Current Ruby File",
15
+ "adapter": "rdbg",
16
+ "request": "launch",
17
+ "program": "$ZED_FILE",
18
+ "cwd": "$ZED_WORKTREE_ROOT"
19
+ }
20
+ ]
data/.zed/tasks.json ADDED
@@ -0,0 +1,54 @@
1
+ [
2
+ {
3
+ "label": "🧪 Run All Tests",
4
+ "command": "rspec",
5
+ "use_new_terminal": false
6
+ },
7
+ {
8
+ "label": "🧪 Run Current Test File",
9
+ "command": "rspec",
10
+ "args": ["${ZED_FILE}"],
11
+ "use_new_terminal": false
12
+ },
13
+ {
14
+ "label": "🧪 Run Fast Tests (no DB)",
15
+ "command": "rspec",
16
+ "args": ["--tag", "~db"],
17
+ "use_new_terminal": false
18
+ },
19
+ {
20
+ "label": "🔧 Rubocop Fix",
21
+ "command": "rubocop",
22
+ "args": ["-A", "${ZED_FILE}"],
23
+ "use_new_terminal": false
24
+ },
25
+ {
26
+ "label": "🔧 Rubocop Fix All",
27
+ "command": "rubocop",
28
+ "args": ["-A"],
29
+ "use_new_terminal": false
30
+ },
31
+ {
32
+ "label": "🔍 Rubocop Check",
33
+ "command": "rubocop",
34
+ "use_new_terminal": false
35
+ },
36
+ {
37
+ "label": "💎 Bundle Install",
38
+ "command": "bundle",
39
+ "args": ["install"],
40
+ "use_new_terminal": false
41
+ },
42
+ {
43
+ "label": "💎 Bundle Update",
44
+ "command": "bundle",
45
+ "args": ["update"],
46
+ "use_new_terminal": false
47
+ },
48
+ {
49
+ "label": "📊 Coverage Report",
50
+ "command": "rspec",
51
+ "env": { "COVERAGE": "true" },
52
+ "use_new_terminal": false
53
+ }
54
+ ]
data/Gemfile CHANGED
@@ -1,6 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  ruby '3.4.5'
4
6
 
5
7
  # Specify your gem's dependencies in shc.gemspec
6
8
  gemspec
9
+
10
+ group :development do
11
+ gem 'bundler', '~> 2.7'
12
+ gem 'rake', '~> 13.3'
13
+ gem 'rubocop', '~> 1.81'
14
+ gem 'rubocop-rake', '~> 0.7'
15
+ end
data/Gemfile.lock CHANGED
@@ -7,119 +7,41 @@ PATH
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.0.8.7)
11
- concurrent-ruby (~> 1.0, >= 1.0.2)
12
- i18n (>= 1.6, < 2)
13
- minitest (>= 5.1)
14
- tzinfo (~> 2.0)
15
- addressable (2.8.7)
16
- public_suffix (>= 2.0.2, < 7.0)
17
10
  ast (2.4.3)
18
- base64 (0.3.0)
19
- coderay (1.1.3)
20
- concurrent-ruby (1.3.5)
21
- connection_pool (2.5.4)
22
- ethon (0.15.0)
23
- ffi (>= 1.15.0)
24
- faraday (2.7.12)
25
- base64
26
- faraday-net_http (>= 2.0, < 3.1)
27
- ruby2_keywords (>= 0.0.4)
28
- faraday-net_http (3.0.2)
29
- faraday-rack (2.1.3)
30
- faraday (~> 2.0)
31
- faraday-retry (2.3.2)
32
- faraday (~> 2.0)
33
- faraday-typhoeus (1.1.0)
34
- faraday (~> 2.0)
35
- typhoeus (~> 1.4)
36
- ffi (1.17.2)
37
- ffi (1.17.2-aarch64-linux-gnu)
38
- ffi (1.17.2-aarch64-linux-musl)
39
- ffi (1.17.2-arm-linux-gnu)
40
- ffi (1.17.2-arm-linux-musl)
41
- ffi (1.17.2-arm64-darwin)
42
- ffi (1.17.2-x86-linux-gnu)
43
- ffi (1.17.2-x86-linux-musl)
44
- ffi (1.17.2-x86_64-darwin)
45
- ffi (1.17.2-x86_64-linux-gnu)
46
- ffi (1.17.2-x86_64-linux-musl)
47
- highline (2.1.0)
48
- i18n (1.14.7)
49
- concurrent-ruby (~> 1.0)
50
- json (2.15.1)
51
- json_pure (2.6.3)
11
+ json (2.19.3)
52
12
  language_server-protocol (3.17.0.5)
53
- launchy (2.5.2)
54
- addressable (~> 2.8)
55
13
  lint_roller (1.1.0)
56
- method_source (1.1.0)
57
- minitest (5.25.5)
58
- multi_json (1.17.0)
59
- net-http-persistent (4.0.6)
60
- connection_pool (~> 2.2, >= 2.2.4)
61
- net-http-pipeline (1.0.1)
62
- parallel (1.27.0)
63
- parser (3.3.9.0)
14
+ multi_json (1.20.0)
15
+ parallel (2.0.1)
16
+ parser (3.3.11.1)
64
17
  ast (~> 2.4.1)
65
18
  racc
66
- prism (1.5.1)
67
- pry (0.15.2)
68
- coderay (~> 1.1)
69
- method_source (~> 1.0)
70
- public_suffix (6.0.2)
71
- pusher-client (0.6.2)
72
- json
73
- websocket (~> 1.0)
19
+ prism (1.9.0)
74
20
  racc (1.8.1)
75
- rack (3.2.2)
76
- rack-test (2.1.0)
77
- rack (>= 1.3)
78
21
  rainbow (3.1.1)
79
- rake (13.3.0)
80
- regexp_parser (2.11.3)
81
- rubocop (1.81.1)
22
+ rake (13.3.1)
23
+ regexp_parser (2.12.0)
24
+ rubocop (1.86.1)
82
25
  json (~> 2.3)
83
26
  language_server-protocol (~> 3.17.0.2)
84
27
  lint_roller (~> 1.1.0)
85
- parallel (~> 1.10)
28
+ parallel (>= 1.10)
86
29
  parser (>= 3.3.0.2)
87
30
  rainbow (>= 2.2.2, < 4.0)
88
31
  regexp_parser (>= 2.9.3, < 3.0)
89
- rubocop-ast (>= 1.47.1, < 2.0)
32
+ rubocop-ast (>= 1.49.0, < 2.0)
90
33
  ruby-progressbar (~> 1.7)
91
34
  unicode-display_width (>= 2.4.0, < 4.0)
92
- rubocop-ast (1.47.1)
35
+ rubocop-ast (1.49.1)
93
36
  parser (>= 3.3.7.2)
94
- prism (~> 1.4)
37
+ prism (~> 1.7)
38
+ rubocop-rake (0.7.1)
39
+ lint_roller (~> 1.1)
40
+ rubocop (>= 1.72.1)
95
41
  ruby-progressbar (1.13.0)
96
- ruby2_keywords (0.0.5)
97
- travis (1.14.0)
98
- faraday (~> 2.7.10)
99
- faraday-rack (~> 2)
100
- highline (~> 2.1.0)
101
- json_pure (~> 2.6.3)
102
- launchy (~> 2.5.2)
103
- pusher-client (~> 0.6.2)
104
- rack-test (~> 2.1.0)
105
- travis-gh (~> 0.21.0)
106
- travis-gh (0.21.0)
107
- activesupport (~> 7.0.8)
108
- addressable (~> 2.8)
109
- faraday (~> 2)
110
- faraday-retry
111
- faraday-typhoeus
112
- multi_json (~> 1)
113
- net-http-persistent (~> 4)
114
- net-http-pipeline
115
- typhoeus (1.5.0)
116
- ethon (>= 0.9.0, < 0.16.0)
117
- tzinfo (2.0.6)
118
- concurrent-ruby (~> 1.0)
119
42
  unicode-display_width (3.2.0)
120
43
  unicode-emoji (~> 4.1)
121
- unicode-emoji (4.1.0)
122
- websocket (1.2.11)
44
+ unicode-emoji (4.2.0)
123
45
 
124
46
  PLATFORMS
125
47
  aarch64-linux-gnu
@@ -136,11 +58,10 @@ PLATFORMS
136
58
 
137
59
  DEPENDENCIES
138
60
  bundler (~> 2.7)
139
- pry (~> 0.15)
140
61
  rake (~> 13.3)
141
- rubocop (~> 1.80)
62
+ rubocop (~> 1.81)
63
+ rubocop-rake (~> 0.7)
142
64
  shc!
143
- travis (~> 1.14)
144
65
 
145
66
  RUBY VERSION
146
67
  ruby 3.4.5p51
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Simple http(s) client
2
2
 
3
- A simple HTTP(S) client in Ruby to query any RESTful API.
3
+ ![Gem Total Downloads](https://img.shields.io/gem/dt/shc?cacheSeconds=300) [![Gem Version](https://badge.fury.io/rb/shc.svg)](https://badge.fury.io/rb/shc)
4
+
5
+ ## A simple HTTP(S) client in Ruby to query any RESTful API.
4
6
 
5
7
  ---
6
8
 
data/Rakefile CHANGED
@@ -1,8 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake/testtask'
2
4
 
3
5
  Rake::TestTask.new do |t|
4
6
  t.libs << 'test'
5
7
  end
6
8
 
7
- desc "Run tests"
8
- task :default => :test
9
+ desc 'Run tests'
10
+ task default: :test
11
+
12
+ desc 'Run Rubocop'
13
+ task :rubocop do
14
+ sh 'rubocop -a'
15
+ end
data/lib/shc/client.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SHC
2
4
  ##
3
5
  # Client class
data/lib/shc/errors.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SHC
2
4
  class Error < StandardError; end
3
5
 
data/lib/shc/response.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'multi_json'
2
4
 
3
5
  module SHC
data/lib/shc/version.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SHC
2
- VERSION = '0.0.3'.freeze
4
+ VERSION = '0.0.4'
3
5
  end
data/lib/shc.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ###
2
4
  # SHC Namespace
3
5
  #
data/shc.gemspec CHANGED
@@ -1,6 +1,6 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'shc/version'
@@ -10,22 +10,17 @@ Gem::Specification.new do |spec|
10
10
  spec.version = SHC::VERSION
11
11
  spec.authors = ['Stéphane FEUGA OSHIMA']
12
12
  spec.email = ['sfeuga@member.fsf.org']
13
- spec.summary = %q{Simple HTTP and HTTPS Client in Ruby}
14
- spec.description = %q{A simple HTTP and HTTPS client in Ruby to query any RESTful API}
13
+ spec.summary = 'Simple HTTP(S) Client in Ruby'
14
+ spec.description = 'Simple HTTP(S) client in Ruby to query any RESTful API'
15
15
  spec.homepage = 'https://github.com/sfeuga/simple-http_s-client'
16
16
  spec.required_ruby_version = '>= 3.4'
17
17
  spec.license = 'GPL-3.0-or-later'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0")
20
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
21
  spec.require_paths = ['lib']
23
22
 
24
- spec.add_dependency 'multi_json', '~> 1.17'
23
+ spec.add_dependency 'multi_json', '~> 1.20'
25
24
 
26
- spec.add_development_dependency 'bundler', '~> 2.7'
27
- spec.add_development_dependency 'pry', '~> 0.15'
28
- spec.add_development_dependency 'rake', '~> 13.3'
29
- spec.add_development_dependency 'rubocop', '~> 1.80'
30
- spec.add_development_dependency 'travis', '~> 1.14'
25
+ spec.metadata['rubygems_mfa_required'] = 'true'
31
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stéphane FEUGA OSHIMA
@@ -15,91 +15,24 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.17'
18
+ version: '1.20'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.17'
26
- - !ruby/object:Gem::Dependency
27
- name: bundler
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '2.7'
33
- type: :development
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.7'
40
- - !ruby/object:Gem::Dependency
41
- name: pry
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '0.15'
47
- type: :development
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.15'
54
- - !ruby/object:Gem::Dependency
55
- name: rake
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '13.3'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '13.3'
68
- - !ruby/object:Gem::Dependency
69
- name: rubocop
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '1.80'
75
- type: :development
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.80'
82
- - !ruby/object:Gem::Dependency
83
- name: travis
84
- requirement: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.14'
89
- type: :development
90
- prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '1.14'
96
- description: A simple HTTP and HTTPS client in Ruby to query any RESTful API
25
+ version: '1.20'
26
+ description: Simple HTTP(S) client in Ruby to query any RESTful API
97
27
  email:
98
28
  - sfeuga@member.fsf.org
99
29
  executables: []
100
30
  extensions: []
101
31
  extra_rdoc_files: []
102
32
  files:
33
+ - ".rubocop.yml"
34
+ - ".zed/debug.json"
35
+ - ".zed/tasks.json"
103
36
  - CONTRIBUTING.md
104
37
  - Gemfile
105
38
  - Gemfile.lock
@@ -118,7 +51,8 @@ files:
118
51
  homepage: https://github.com/sfeuga/simple-http_s-client
119
52
  licenses:
120
53
  - GPL-3.0-or-later
121
- metadata: {}
54
+ metadata:
55
+ rubygems_mfa_required: 'true'
122
56
  rdoc_options: []
123
57
  require_paths:
124
58
  - lib
@@ -135,5 +69,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
69
  requirements: []
136
70
  rubygems_version: 3.6.9
137
71
  specification_version: 4
138
- summary: Simple HTTP and HTTPS Client in Ruby
72
+ summary: Simple HTTP(S) Client in Ruby
139
73
  test_files: []