hiya 0.2.1 → 0.2.2

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: 7d1fc4cb1040d3d524e1c74618d351932f67dcbef1a9c685836c825f0ca1882c
4
- data.tar.gz: 8701f20b40b0590c95bd95cd901c6bd205bc9b886c863f818f7019b077565efd
3
+ metadata.gz: 1c7150741025cac9f749783c3d17e164d124aa6a4ceb0663adaae16227c1f399
4
+ data.tar.gz: 9d3395a271694ba7f781b545599625bb8dc38218302cfaafe98baca81df6823e
5
5
  SHA512:
6
- metadata.gz: f58479c142f89a29a14f970c7e0cffd1f330792e05f1a01b465b9df55783f44803d7539ec5a49adf59d709307483abc45c443abf1e7ac1ccec99967907f7bff4
7
- data.tar.gz: 8596cf477196b15a3b4dc424d52fbf2367adab1aefa2aee24d51cf28e5418b5f8620db378d43506f8ff99b14c9a67d91db70113ebfdd99315be4158c371aee08
6
+ metadata.gz: b4ba172893dd357f07c0b0e6c579a96241fe38c5fc8005a1856babf783b89a43d550da835a0b3452948ae7c3c15989d23fa8e0a4c11894edc5efcf59373f0198
7
+ data.tar.gz: 6551e86750b03d6c0cf0e187b643a5f54e82304042901b6d0569be8fee7c83e48b4775f6fcd56b8564f1ec583ad13a6172511da3e1a5ddf2ba74254d2345d1a0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hiya (0.2.1)
4
+ hiya (0.2.2)
5
5
  faraday (~> 2.0)
6
6
  faraday-multipart (~> 1.0)
7
7
 
@@ -59,6 +59,19 @@ module Hiya
59
59
  {}
60
60
  end
61
61
 
62
+ # code: a2e1M
63
+ # params: Hash: {
64
+ # new_code: String: 'TheAvengersEndGame'
65
+ # }
66
+ def update_code(code, params)
67
+ @response = conn.put("/v1/users/links/#{code}/code") do |req|
68
+ req.body = params.to_json
69
+ end
70
+ Oj.load(response.body, symbol_keys: true)
71
+ rescue StandardError => _e
72
+ {}
73
+ end
74
+
62
75
  # code: a2e1M
63
76
  # params: Hash: {
64
77
  # ip: String: "125.227.100.100",
data/lib/hiya/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hiya
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-31 00:00:00.000000000 Z
11
+ date: 2023-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday