yonoma 0.1.4 → 0.1.6
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 +4 -4
- data/lib/yonoma/client.rb +5 -1
- data/lib/yonoma/lists.rb +1 -1
- data/lib/yonoma/tags.rb +1 -1
- data/lib/yonoma/version.rb +1 -1
- data/lib/yonoma.rb +3 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61b0c8459c2e2497b3fa468816a0a0184a32cf03bbaa27fc51907b315d26bf2c
|
|
4
|
+
data.tar.gz: 523fda118207e386e9ad5c96934645619fe78ae70a4a7dad0029cd3c2ba9b35d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2077930af60b71632300acc471bd503be3ea76f4c9d5e04cc17437d8668eeee181d8b7be0d8de9a21bf0c7b4488c18ae17e582d89a7e652b9ba8668d90766ce
|
|
7
|
+
data.tar.gz: 15e298e09289253709322d00ceb2b8278e4cff180dfbb44af4803137ce26f3f0d7af791b794074378470f5333343338393314376119ae5c9960dc175ae270e77
|
data/lib/yonoma/client.rb
CHANGED
|
@@ -30,12 +30,16 @@ module Yonoma
|
|
|
30
30
|
|
|
31
31
|
request["Authorization"] = "Bearer #{Yonoma.api_key}"
|
|
32
32
|
request["Content-Type"] = "application/json"
|
|
33
|
-
request
|
|
33
|
+
request["User-agent"] = "yonoma-ruby/#{Yonoma::VERSION}"
|
|
34
34
|
|
|
35
|
+
request.body = params.to_json unless method == :get
|
|
35
36
|
response = http.request(request)
|
|
37
|
+
|
|
36
38
|
JSON.parse(response.body, symbolize_names: true)
|
|
37
39
|
rescue StandardError => e
|
|
38
40
|
{ error: "Request failed: #{e.message}" }
|
|
39
41
|
end
|
|
40
42
|
end
|
|
41
43
|
end
|
|
44
|
+
|
|
45
|
+
|
data/lib/yonoma/lists.rb
CHANGED
data/lib/yonoma/tags.rb
CHANGED
data/lib/yonoma/version.rb
CHANGED
data/lib/yonoma.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yonoma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- YonomaHQ
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date: 2025-03-
|
|
11
|
+
date: 2025-03-21 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: httparty
|
|
@@ -37,6 +38,7 @@ dependencies:
|
|
|
37
38
|
- - "~>"
|
|
38
39
|
- !ruby/object:Gem::Version
|
|
39
40
|
version: '2.6'
|
|
41
|
+
description:
|
|
40
42
|
email:
|
|
41
43
|
- tools@yonoma.io
|
|
42
44
|
executables: []
|
|
@@ -61,6 +63,7 @@ metadata:
|
|
|
61
63
|
homepage_uri: https://yonoma.io/
|
|
62
64
|
source_code_uri: https://github.com/YonomaHQ/yonoma-ruby
|
|
63
65
|
changelog_uri: https://github.com/YonomaHQ/yonoma-ruby/releases
|
|
66
|
+
post_install_message:
|
|
64
67
|
rdoc_options: []
|
|
65
68
|
require_paths:
|
|
66
69
|
- lib
|
|
@@ -75,7 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
78
|
- !ruby/object:Gem::Version
|
|
76
79
|
version: '0'
|
|
77
80
|
requirements: []
|
|
78
|
-
rubygems_version: 3.
|
|
81
|
+
rubygems_version: 3.5.22
|
|
82
|
+
signing_key:
|
|
79
83
|
specification_version: 4
|
|
80
84
|
summary: The official Ruby client library for the Yonoma Email Marketing API.
|
|
81
85
|
test_files: []
|