porkbun 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55966f08e27676143e86c9a7e8d20e93ab18f18072484a9212d4102706532d93
4
- data.tar.gz: c75016c446c7e25d57be8c0faaf996df401494df87ac66b614a067e202a14fb8
3
+ metadata.gz: d74789e62f5244e26831e723b4d2fcb39ab7ddaf031cc605c9eb6ed544c180d1
4
+ data.tar.gz: 8c61d068167a2fef7cf4a7a0a3afdf6d3b70119ea8b3b170f5cc93939ff8ce4a
5
5
  SHA512:
6
- metadata.gz: 0a600d3705630e2062507e211dd6c3f000994463e60bdab46592aa6761d74d9704b1b3ca188fa5a76150948b36016442c3dda17189f9d2eb76781ca7b4b80556
7
- data.tar.gz: f299259861ccb74e64f1d05d0eb8eecc9c22e9918ca7b243560604663e55ff06986cea57afc34d78530361b6cb73eabe3fac6e483e78b483db751b184a2a9d7a
6
+ metadata.gz: f06027324c207366ec1e35f2e074adb60c4b920b1b4b079ac4c5b46408920c34e5254ee6cdedd8f7bcae353ec83289438fc400c0646d9aaf4dd233e8082f4652
7
+ data.tar.gz: c8208c204735647230e3587bfd1c52dc6d33980815b0a162562e2e2c253911010b93cb2695d7cdfbedf17394d3673dda23df2ac375de814fb583d3bea3060940
data/Gemfile.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ porkbun (1.0.0)
5
+ http (~> 5.2.0)
6
+ thor (~> 1.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.8.5)
12
+ public_suffix (>= 2.0.2, < 6.0)
13
+ base64 (0.2.0)
14
+ coderay (1.1.3)
15
+ crack (0.4.5)
16
+ rexml
17
+ diff-lcs (1.5.0)
18
+ domain_name (0.5.20190701)
19
+ unf (>= 0.0.5, < 1.0.0)
20
+ ffi (1.15.5)
21
+ ffi-compiler (1.0.1)
22
+ ffi (>= 1.0.0)
23
+ rake
24
+ hashdiff (1.0.1)
25
+ http (5.2.0)
26
+ addressable (~> 2.8)
27
+ base64 (~> 0.1)
28
+ http-cookie (~> 1.0)
29
+ http-form_data (~> 2.2)
30
+ llhttp-ffi (~> 0.5.0)
31
+ http-cookie (1.0.5)
32
+ domain_name (~> 0.5)
33
+ http-form_data (2.3.0)
34
+ llhttp-ffi (0.5.0)
35
+ ffi-compiler (~> 1.0)
36
+ rake (~> 13.0)
37
+ method_source (1.0.0)
38
+ pry (0.14.2)
39
+ coderay (~> 1.1)
40
+ method_source (~> 1.0)
41
+ public_suffix (5.0.3)
42
+ rake (13.0.6)
43
+ rexml (3.2.6)
44
+ rspec (3.12.0)
45
+ rspec-core (~> 3.12.0)
46
+ rspec-expectations (~> 3.12.0)
47
+ rspec-mocks (~> 3.12.0)
48
+ rspec-core (3.12.2)
49
+ rspec-support (~> 3.12.0)
50
+ rspec-expectations (3.12.3)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.12.0)
53
+ rspec-mocks (3.12.6)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.12.0)
56
+ rspec-support (3.12.1)
57
+ thor (1.2.2)
58
+ unf (0.1.4)
59
+ unf_ext
60
+ unf_ext (0.0.8.2)
61
+ webmock (3.19.1)
62
+ addressable (>= 2.8.0)
63
+ crack (>= 0.3.2)
64
+ hashdiff (>= 0.4.0, < 2.0.0)
65
+
66
+ PLATFORMS
67
+ arm64-darwin-22
68
+ arm64-darwin-23
69
+
70
+ DEPENDENCIES
71
+ porkbun!
72
+ pry (~> 0.14.2)
73
+ rspec (~> 3.12)
74
+ thor (~> 1.2)
75
+ webmock (~> 3.19)
76
+
77
+ BUNDLED WITH
78
+ 2.4.12
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Porkbun
4
- VERSION = "0.5.0"
4
+ VERSION = "1.0.0"
5
5
  end
data/lib/porkbun.rb CHANGED
@@ -7,11 +7,10 @@ module Porkbun
7
7
  class Error < StandardError; end
8
8
 
9
9
  def self.porkbun(path, options = {})
10
- pp options
11
10
  if ENV.fetch('PORKBUN_API_KEY', nil).nil? || ENV.fetch('PORKBUN_SECRET_API_KEY', nil).nil?
12
11
  abort 'PORKBUN_API_KEY and PORKBUN_SECRET_API_KEY must be set'
13
12
  end
14
- res = HTTP.post File.join('https://porkbun.com/api/json/v3', path), json: {
13
+ res = HTTP.post File.join('https://api.porkbun.com/api/json/v3', path), json: {
15
14
  secretapikey: ENV.fetch('PORKBUN_SECRET_API_KEY', nil),
16
15
  apikey: ENV.fetch('PORKBUN_API_KEY', nil)
17
16
  }.merge(options)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porkbun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bretoi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-04 00:00:00.000000000 Z
10
+ date: 2025-02-05 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: http
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 5.1.1
18
+ version: 5.2.0
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: 5.1.1
25
+ version: 5.2.0
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: thor
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -48,6 +47,7 @@ extra_rdoc_files: []
48
47
  files:
49
48
  - ".rspec"
50
49
  - Gemfile
50
+ - Gemfile.lock
51
51
  - README.md
52
52
  - Rakefile
53
53
  - bin/porkbun
@@ -58,7 +58,6 @@ licenses: []
58
58
  metadata:
59
59
  homepage_uri: https://github.com/danielb2/porkbun-ruby
60
60
  source_code_uri: https://github.com/danielb2/porkbun-ruby
61
- post_install_message:
62
61
  rdoc_options: []
63
62
  require_paths:
64
63
  - lib
@@ -73,8 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
72
  - !ruby/object:Gem::Version
74
73
  version: '0'
75
74
  requirements: []
76
- rubygems_version: 3.5.3
77
- signing_key:
75
+ rubygems_version: 3.6.2
78
76
  specification_version: 4
79
77
  summary: Porkbun API wrapper for Ruby.
80
78
  test_files: []