dashamail_transactional 0.1.1 → 0.1.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: 6452ea4600c5fc5ef6bd0d9168308713ba3348da5cb658deb9b83d25d6f5065f
4
- data.tar.gz: c6d0a6cbd1c21d7e9d3ae0b4e7f3497f138315ed36497420230e1d3ee10abc77
3
+ metadata.gz: ed5da2d563f592a2d9378f0408972f16ed502b5cf4a588378e5bba414a508bbe
4
+ data.tar.gz: 8dce85754b7f2879970201bdb700f532d1d19e123e382026bcd10735d4e4f6e1
5
5
  SHA512:
6
- metadata.gz: d600cf70a46a9aa1a2199670c09e46b714f8f3800fa4987815e78888ff5b5902795223eb84556f7f59ce99f4f2a83953a81d4073c165417cbb3496c77c5a5b2e
7
- data.tar.gz: 2add1327aec9fa3132d8c8945cda0315079fa51895b3258e14fe6d219bd69a803a096aed215a33fae9c82e4e2a6ff26dff3ba48147e9dd07d6dd1f85b2425a36
6
+ metadata.gz: 69a1773cb820776261e3513f0f9b5c3d1986c35361f4f2d1645ee7bfda1ec8d42606ab88e22414c95481f49ae77eeafc48ece38cf4b2651167009c57bf41577e
7
+ data.tar.gz: edb9065fa33ce2aa8c27f3840c29b0f95e5b39eb258eea3de58b1e8e33868e4de1bb1bf0b350450fca3c201dd35c848ed68eacd0c2096ef066f742bf6fad5c21
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module DashaMail
3
+ module DashamailTransactional
4
4
  class Composer
5
5
  def initialize
6
6
  @config = DashaMail.config
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module DashaMail
3
+ module DashamailTransactional
4
4
  module Configuration
5
5
  def self.api_key
6
6
  @api_key
@@ -4,7 +4,7 @@ require 'uri'
4
4
  require 'json'
5
5
  require 'net/http'
6
6
 
7
- module DashaMail
7
+ module DashamailTransactional
8
8
  class HTTP
9
9
  VERBS = {
10
10
  get: Net::HTTP::Get,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module DashaMail
3
+ module DashamailTransactional
4
4
  class Mailer
5
5
  def initialize
6
6
  @composer = Composer.new
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module DashaMail
3
+ module DashamailTransactional
4
4
  class Request
5
5
  def initialize
6
6
  @http = DashaMail::HTTP.new
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module DashaMail
3
+ module DashamailTransactional
4
4
  class Response
5
5
  def initialize(answer)
6
6
  @answer = answer
@@ -3,7 +3,7 @@
3
3
  require 'base64'
4
4
  require 'mime-types'
5
5
 
6
- module DashaMail
6
+ module DashamailTransactional
7
7
  class Utils
8
8
  def self.build_attachment(file_path)
9
9
  raise StandardError, 'File not exist' unless File.exist?(file_path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module DashaMail
4
- VERSION = '0.1.1'
3
+ module DashamailTransactional
4
+ VERSION = '0.1.2'
5
5
  end
data/lib/dashamail.rb CHANGED
@@ -1,20 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dashamail/version'
4
- require 'dashamail/configuration'
5
- require 'dashamail/utils'
6
- require 'dashamail/http'
7
- require 'dashamail/composer'
8
- require 'dashamail/mailer'
9
- require 'dashamail/response'
10
- require 'dashamail/request'
11
-
12
- module DashaMail
13
- def self.configure
14
- yield DashaMail::Configuration
15
- end
16
-
17
- def self.config
18
- DashaMail::Configuration
19
- end
20
- end
3
+ require 'dashamail_transactional'
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dashamail/version'
4
+ require 'dashamail/configuration'
5
+ require 'dashamail/utils'
6
+ require 'dashamail/http'
7
+ require 'dashamail/composer'
8
+ require 'dashamail/mailer'
9
+ require 'dashamail/response'
10
+ require 'dashamail/request'
11
+
12
+ module DashamailTransactional
13
+ def self.configure
14
+ yield DashamailTransactional::Configuration
15
+ end
16
+
17
+ def self.config
18
+ DashamailTransactional::Configuration
19
+ end
20
+ end
21
+
22
+ DashaMail = DashamailTransactional
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dashamail_transactional
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Fedorov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -46,6 +46,7 @@ files:
46
46
  - lib/dashamail/response.rb
47
47
  - lib/dashamail/utils.rb
48
48
  - lib/dashamail/version.rb
49
+ - lib/dashamail_transactional.rb
49
50
  homepage:
50
51
  licenses:
51
52
  - MIT