yonoma 0.1.1 → 0.1.3

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: 3aa4cde2f26f8817db1751a17d893eb4c7c61f3a8b847a7da5304dd97c376e23
4
- data.tar.gz: 59a941a57b02aa14e22ae54c049879e1a8cacc517b0cc46653a1dfef481eef10
3
+ metadata.gz: f213a1270795bdf392b5c098fb8b43f12d167327346956ee41b3c2391aaf70cc
4
+ data.tar.gz: 0e3d42910452a6406a8de6dd0472891be626f2541144314ef240278e4138f515
5
5
  SHA512:
6
- metadata.gz: 55a393f3a80d2f4fe3960d721c863cfce2d9b520f6bc940f25abb17c696c340b9c6cd2b9fc59bb2e8a196b9be77ead68390b97618e58c3d9954aa34fec819f31
7
- data.tar.gz: '0644490625d841d8d57c59f3287db2349014ec3e659fd9d1f15aa903612b125f2b7d6bd529598f4cf69e0ce64c1c8607061f4d8cbf57f03ce7aef9babbb996ef'
6
+ metadata.gz: 31ff76654cd093cb94760f54b013ba5495068cd12096006925cc112a1cb2f197c707f48c7c132028288b359413adedae36480f0aa9532438e4f2451d2758a66e
7
+ data.tar.gz: a6e5b1bb38e47bcc8ac260808c9646a5fa81c4968d528a576d1f3f593d29087fa9132cc682544ce58399f0ebb4db38a15b277324ad7c4bbc7618dfca1cc5e0ee
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Yonoma Ruby SDK
1
+ ## [Yonoma](https://yonoma.io/) Ruby Email Marketing SDK
2
2
 
3
3
  Welcome to the Yonoma Ruby SDK! This gem provides a simple and efficient way to integrate with the Yonoma Email Marketing API.
4
4
 
@@ -29,13 +29,20 @@ To configure the SDK, initialize it with your API key:
29
29
  ```ruby
30
30
  require 'yonoma'
31
31
 
32
- Yonoma::Client.configure do |config|
33
- config.api_key = api_key
34
- end
32
+ Yonoma.api_key = 'api_key'
35
33
  ```
36
34
 
37
- ## Usage
38
-
35
+ ### Usage
36
+ #### Send your email:
37
+ ```ruby
38
+ response_email = Yonoma::Email.send({
39
+ "from_email":"updates@yonoma.io",
40
+ "to_email":"email@yourdomain.com",
41
+ "subject":"Welcome to Yonoma - You're In!",
42
+ "mail_template": "We're excited to welcome you to Yonoma! Your successful signup marks the beginning of what we hope will be an exceptional journey."
43
+ })
44
+ puts response_email
45
+ ```
39
46
  ### Managing Contacts
40
47
 
41
48
  #### Create a Contact
@@ -152,24 +159,4 @@ puts response_list_retrieve
152
159
  ```ruby
153
160
  response_list = Yonoma::Lists.list()
154
161
  puts response_list
155
- ```
156
-
157
- ## Development
158
-
159
- To contribute to the SDK:
160
-
161
- 1. Clone the repository
162
- ```sh
163
- git clone https://github.com/YonoamaHQ/yonoma-email-marketing-ruby.git
164
- ```
165
- 2. Run `bin/setup` to install dependencies
166
- 3. Run `rake test` to execute tests
167
- 4. Submit a pull request with your changes
168
-
169
- ## GitHub Repository
170
- Find the project on GitHub: [Yonoma Ruby SDK](https://github.com/YonoamaHQ/yonoma-email-marketing-ruby)
171
-
172
- ## License
173
-
174
- This project is licensed under the MIT License. See the `LICENSE` file for details.
175
-
162
+ ```
@@ -0,0 +1,7 @@
1
+ module Yonoma
2
+ class Email
3
+ def self.send(params)
4
+ Client.request(:post, "/email/send", params)
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yonoma
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/yonoma.rb CHANGED
@@ -5,6 +5,7 @@ require_relative "yonoma/client"
5
5
  require_relative "yonoma/contacts"
6
6
  require_relative "yonoma/lists"
7
7
  require_relative "yonoma/tags"
8
+ require_relative "yonoma/email"
8
9
 
9
10
  module Yonoma
10
11
  class Error < StandardError; end
data/yonoma.gemspec CHANGED
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/YonomaHQ/yonoma-email-marketing-ruby"
19
- spec.metadata["changelog_uri"] = "https://github.com/YonomaHQ/yonoma-email-marketing-ruby/releases"
18
+ spec.metadata["source_code_uri"] = "https://github.com/YonomaHQ/yonoma-ruby"
19
+ spec.metadata["changelog_uri"] = "https://github.com/YonomaHQ/yonoma-ruby/releases"
20
20
  spec.license = "MIT"
21
21
  # Specify which files should be added to the gem when it is released.
22
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yonoma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - YonomaHQ
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-05 00:00:00.000000000 Z
10
+ date: 2025-03-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: httparty
@@ -48,6 +48,7 @@ files:
48
48
  - lib/yonoma.rb
49
49
  - lib/yonoma/client.rb
50
50
  - lib/yonoma/contacts.rb
51
+ - lib/yonoma/email.rb
51
52
  - lib/yonoma/lists.rb
52
53
  - lib/yonoma/tags.rb
53
54
  - lib/yonoma/version.rb
@@ -58,8 +59,8 @@ licenses:
58
59
  metadata:
59
60
  allowed_push_host: https://rubygems.org
60
61
  homepage_uri: https://yonoma.io/
61
- source_code_uri: https://github.com/YonomaHQ/yonoma-email-marketing-ruby
62
- changelog_uri: https://github.com/YonomaHQ/yonoma-email-marketing-ruby/releases
62
+ source_code_uri: https://github.com/YonomaHQ/yonoma-ruby
63
+ changelog_uri: https://github.com/YonomaHQ/yonoma-ruby/releases
63
64
  rdoc_options: []
64
65
  require_paths:
65
66
  - lib