dashamail_transactional 0.1.0 → 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: 92b17a0fa9a6bb122fbfd652a10260398a3483a436c3fa67a2d88a976d189d40
4
- data.tar.gz: 6744d496614686e699adc0b53ce666facffce67884aebe5a209e0d8d6e6d9755
3
+ metadata.gz: ed5da2d563f592a2d9378f0408972f16ed502b5cf4a588378e5bba414a508bbe
4
+ data.tar.gz: 8dce85754b7f2879970201bdb700f532d1d19e123e382026bcd10735d4e4f6e1
5
5
  SHA512:
6
- metadata.gz: 50eacf3ad356b15416978f99c2b31954afc6f5da5668aaf6fe71251d5db95e4dcc6019767e2c03357da9a274cb13d8f5907fa967252a4cd89b3aab6be5ab07eb
7
- data.tar.gz: b4cc77e44821c1c970be7b72ce3a0e87c0fddd0484d1fcc4c23c78958340a4107c82ae2f079e37853b097591bcb8fee48492c75be9d2c6526f41540134bb845b
6
+ metadata.gz: 69a1773cb820776261e3513f0f9b5c3d1986c35361f4f2d1645ee7bfda1ec8d42606ab88e22414c95481f49ae77eeafc48ece38cf4b2651167009c57bf41577e
7
+ data.tar.gz: edb9065fa33ce2aa8c27f3840c29b0f95e5b39eb258eea3de58b1e8e33868e4de1bb1bf0b350450fca3c201dd35c848ed68eacd0c2096ef066f742bf6fad5c21
data/Gemfile CHANGED
@@ -5,8 +5,8 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in dashamail.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rake', '~> 13.0'
8
+ gem 'rake', '~> 13.2.1'
9
9
 
10
- gem 'minitest', '~> 5.0'
10
+ gem 'minitest', '~> 5.25.4'
11
11
 
12
- gem 'rubocop', '~> 1.21'
12
+ gem 'rubocop', '~> 1.69.2'
data/Gemfile.lock CHANGED
@@ -1,48 +1,55 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dashamail (0.1.0)
4
+ dashamail_transactional (0.1.1)
5
5
  mime-types (>= 3.4.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
- json (2.6.1)
12
- mime-types (3.4.1)
11
+ json (2.9.0)
12
+ language_server-protocol (3.17.0.3)
13
+ logger (1.6.2)
14
+ mime-types (3.6.0)
15
+ logger
13
16
  mime-types-data (~> 3.2015)
14
- mime-types-data (3.2023.0218.1)
15
- minitest (5.16.3)
16
- parallel (1.22.1)
17
- parser (3.1.3.0)
17
+ mime-types-data (3.2024.1203)
18
+ minitest (5.25.4)
19
+ parallel (1.26.3)
20
+ parser (3.3.6.0)
18
21
  ast (~> 2.4.1)
22
+ racc
23
+ racc (1.8.1)
19
24
  rainbow (3.1.1)
20
- rake (13.0.6)
21
- regexp_parser (2.6.1)
22
- rexml (3.2.5)
23
- rubocop (1.39.0)
25
+ rake (13.2.1)
26
+ regexp_parser (2.9.3)
27
+ rubocop (1.69.2)
24
28
  json (~> 2.3)
29
+ language_server-protocol (>= 3.17.0)
25
30
  parallel (~> 1.10)
26
- parser (>= 3.1.2.1)
31
+ parser (>= 3.3.0.2)
27
32
  rainbow (>= 2.2.2, < 4.0)
28
- regexp_parser (>= 1.8, < 3.0)
29
- rexml (>= 3.2.5, < 4.0)
30
- rubocop-ast (>= 1.23.0, < 2.0)
33
+ regexp_parser (>= 2.9.3, < 3.0)
34
+ rubocop-ast (>= 1.36.2, < 2.0)
31
35
  ruby-progressbar (~> 1.7)
32
- unicode-display_width (>= 1.4.0, < 3.0)
33
- rubocop-ast (1.23.0)
34
- parser (>= 3.1.1.0)
35
- ruby-progressbar (1.11.0)
36
- unicode-display_width (1.8.0)
36
+ unicode-display_width (>= 2.4.0, < 4.0)
37
+ rubocop-ast (1.36.2)
38
+ parser (>= 3.3.1.0)
39
+ ruby-progressbar (1.13.0)
40
+ unicode-display_width (3.1.2)
41
+ unicode-emoji (~> 4.0, >= 4.0.4)
42
+ unicode-emoji (4.0.4)
37
43
 
38
44
  PLATFORMS
45
+ arm64-darwin-23
39
46
  x86_64-darwin-21
40
47
 
41
48
  DEPENDENCIES
42
- dashamail!
43
- minitest (~> 5.0)
44
- rake (~> 13.0)
45
- rubocop (~> 1.21)
49
+ dashamail_transactional!
50
+ minitest (~> 5.25.4)
51
+ rake (~> 13.2.1)
52
+ rubocop (~> 1.69.2)
46
53
 
47
54
  BUNDLED WITH
48
- 2.3.26
55
+ 2.5.11
data/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # Disclaimer
2
+
3
+ Оригинальная версия автором больше не поддерживается, и на rubygems может быть залита только с иным названием.
4
+
5
+ Для дальнейшей поддержки и добавления на rubygems этот форк.
6
+
7
+
1
8
  # DashaMail
2
9
 
3
10
  Гем для работы с транзакционным API российского сервиса https://dashamail.ru, с его методами и параметрами можно ознакомиться на [официальном ресурсе](https://dashamail.ru/transactional/).
@@ -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.0'
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.0
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,12 +46,13 @@ 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
52
53
  metadata:
53
- homepage_uri: https://github.com/creadone/dashamail
54
- source_code_uri: https://github.com/creadone/dashamail
54
+ homepage_uri: https://github.com/83312d/dashamail_transactional
55
+ source_code_uri: https://github.com/83312d/dashamail_transactional
55
56
  post_install_message:
56
57
  rdoc_options: []
57
58
  require_paths: