hola_lee 0.0.0

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 +7 -0
  2. data/hello.rb +24 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ec88769df7071324b88204de9cfa8bb5960a77e7c0815b07981d0d6c6a162dd3
4
+ data.tar.gz: 1eea12dbc3afe95d83345b5156955e9a96de3ed2736a48cce894c9f8c026dd52
5
+ SHA512:
6
+ metadata.gz: e8813b3be1b560d092fa0fc38b28f6e18db526a87a2c99b7247dbbaaf6b3eb92de6d65c73ac0832460f2f1794e95ea609720ed00bfcfa0f2f75c4f45a88413d8
7
+ data.tar.gz: 1b3e69032f75fee031439c79bb0c0c1ade434910bf94dc6a7935462976dd3c99d835fa0db6f87f44c6a45b7a1bda5c46906fb6bed10f8e7168d2822b2e347444
data/hello.rb ADDED
@@ -0,0 +1,24 @@
1
+ require 'restclient'
2
+
3
+ module RequestLogger
4
+ def get(url)
5
+ puts "Sending request to #{url}"
6
+ super
7
+ end
8
+ end
9
+
10
+ class HttpClient
11
+ def initalize(client = RestClient)
12
+ @client = client
13
+ end
14
+
15
+ def get(url)
16
+ @client.get(url)
17
+ end
18
+ end
19
+
20
+ http = HttpClient.new
21
+ http.get('www.rubyguides.com')
22
+
23
+ http.extend(RequestLogger)
24
+ http.get('www.rubyguides.com')
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola_lee
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Lee Brady
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: lee@brady.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - hello.rb
20
+ homepage: https://rubygems.org/gems/hola
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.0.3.1
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: Hello!
42
+ test_files: []