mailcapture 1.0.0 → 1.0.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: 435a3e55721f1f7c5b9ec7a00fd74d97fc0ae885c2dbdb18f25adff35f93c83f
4
- data.tar.gz: c40a4f37bcdff35a7a8ecb90aad1b5dc883aad72ffc29dedfd09daa7b2d71b18
3
+ metadata.gz: 674fb0c1d27f96dc0211fcd9713e164a415209a19596a427a26dda66b5d876f5
4
+ data.tar.gz: 143d6c1e1b62f86874f19e1b1a9ec5792717f2269c6444b541ab2117cf252b0a
5
5
  SHA512:
6
- metadata.gz: 566b16ae0811c9244c458f47afedfb0cf7a7b79abc3741a14e8fd1d91212081b5bcf006b3baa774c44541bf480a680d40dab32b5cefdd14f4cbed954390f7de2
7
- data.tar.gz: 8a502fd4cf5cbb425da8ab5b0326cb01a40c1929aa497a47fcaa804823cbc1dbdab9843f52f71b6fbee6c24e568f8c30b73799737d7a127a0f1c149b7a636099
6
+ metadata.gz: 26f9560e35b91d32f5dd3a123f398211a16567e089f24ac7c23fd165b454f1ff3b68002c51204ae3f919624d0d95f939ca5350ebd2a81a9181f01755fc93e1c4
7
+ data.tar.gz: 657d3e665f70341a4fa278cd3319ecccd1947b6ab024ce9696af405f96b73256404dddeef8d90b83ee6ab609d76cfe211cf0a486afb2abb6d47edad481636610
data/README.md CHANGED
@@ -4,6 +4,10 @@ Official Ruby gem for [MailCapture](https://mailcapture.app) — a real email ca
4
4
 
5
5
  Zero runtime dependencies. Works with any Ruby web framework (Rails, Sinatra, Hanami, Roda, or plain Rack).
6
6
 
7
+ MailCapture lets you test email flows by capturing emails sent to unique per-test addresses. Trigger your mailer, then call the API to assert on subject lines, body content, OTP codes, and more — no mock mailers, no Mailtrap, no brittle inbox scraping.
8
+
9
+ A MailCapture account is required — free and paid plans are available. [Sign up at mailcapture.app](https://mailcapture.app).
10
+
7
11
  ## Requirements
8
12
 
9
13
  - Ruby 3.1+
@@ -43,7 +43,7 @@ module MailCapture
43
43
  # @param base_url [String] API base URL (override for local dev)
44
44
  # @param timeout [Numeric] default request timeout in seconds
45
45
  # @param username [String, nil] pre-set username to skip +ping+
46
- def initialize(api_key:, base_url: 'https://mailcapture.app', timeout: 10, username: nil)
46
+ def initialize(api_key:, base_url: 'https://api.mailcapture.app', timeout: 10, username: nil)
47
47
  raise ArgumentError,
48
48
  "MailCapture: api_key is required.\n" \
49
49
  " MailCapture.new(api_key: ENV['MAILCAPTURE_API_KEY'])" if api_key.to_s.empty?
@@ -1,3 +1,3 @@
1
1
  module MailCapture
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailcapture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MailCapture