porkbun 0.4.0 → 0.5.1
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 +4 -4
- data/Gemfile +8 -9
- data/Gemfile.lock +76 -0
- data/bin/porkbun +13 -0
- data/lib/porkbun/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cf1f7fe28b5a9b974cf289160cd9f7c8b12bd4547e2814ba6d50e99a6d1feb3
|
4
|
+
data.tar.gz: 5e3514fa7eecd74e9572d34c123af1953d6daaba34359184c2934adc62e20f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a11ad716a955f544a22c59f3c2bcad9bdb44bd310aee0d7c53427457c051ee5fb48ae6867e41db2e82c85abe2ee16e1a8a7f8659d23fa541db8a0ca920b024e7
|
7
|
+
data.tar.gz: 802ccbc80c9082e90f357e83cd54da76e90aac3cffb28eb09857875c2bad71081f9b43d0815a547b003abec470c30fd43c476841c685f2c611bd543f68e57c76
|
data/Gemfile
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in porkbun.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
|
8
|
+
group :development do
|
9
|
+
# gem "rake", "~> 13.0", :group => :test
|
10
|
+
gem 'pry', '~> 0.14.2', group: :test
|
11
|
+
gem 'rspec', '~> 3.12', group: :test
|
12
|
+
gem 'webmock', '~> 3.19', group: :test
|
13
|
+
end
|
9
14
|
|
10
|
-
gem
|
11
|
-
|
12
|
-
gem "webmock", "~> 3.19", :group => :test
|
13
|
-
|
14
|
-
gem "pry", "~> 0.14.2", :group => :test
|
15
|
-
|
16
|
-
gem "thor", "~> 1.2"
|
15
|
+
gem 'thor', '~> 1.2'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
porkbun (0.4.0)
|
5
|
+
http (~> 5.1.1)
|
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
|
+
coderay (1.1.3)
|
14
|
+
crack (0.4.5)
|
15
|
+
rexml
|
16
|
+
diff-lcs (1.5.0)
|
17
|
+
domain_name (0.5.20190701)
|
18
|
+
unf (>= 0.0.5, < 1.0.0)
|
19
|
+
ffi (1.15.5)
|
20
|
+
ffi-compiler (1.0.1)
|
21
|
+
ffi (>= 1.0.0)
|
22
|
+
rake
|
23
|
+
hashdiff (1.0.1)
|
24
|
+
http (5.1.1)
|
25
|
+
addressable (~> 2.8)
|
26
|
+
http-cookie (~> 1.0)
|
27
|
+
http-form_data (~> 2.2)
|
28
|
+
llhttp-ffi (~> 0.4.0)
|
29
|
+
http-cookie (1.0.5)
|
30
|
+
domain_name (~> 0.5)
|
31
|
+
http-form_data (2.3.0)
|
32
|
+
llhttp-ffi (0.4.0)
|
33
|
+
ffi-compiler (~> 1.0)
|
34
|
+
rake (~> 13.0)
|
35
|
+
method_source (1.0.0)
|
36
|
+
pry (0.14.2)
|
37
|
+
coderay (~> 1.1)
|
38
|
+
method_source (~> 1.0)
|
39
|
+
public_suffix (5.0.3)
|
40
|
+
rake (13.0.6)
|
41
|
+
rexml (3.2.6)
|
42
|
+
rspec (3.12.0)
|
43
|
+
rspec-core (~> 3.12.0)
|
44
|
+
rspec-expectations (~> 3.12.0)
|
45
|
+
rspec-mocks (~> 3.12.0)
|
46
|
+
rspec-core (3.12.2)
|
47
|
+
rspec-support (~> 3.12.0)
|
48
|
+
rspec-expectations (3.12.3)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.12.0)
|
51
|
+
rspec-mocks (3.12.6)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.12.0)
|
54
|
+
rspec-support (3.12.1)
|
55
|
+
thor (1.2.2)
|
56
|
+
unf (0.1.4)
|
57
|
+
unf_ext
|
58
|
+
unf_ext (0.0.8.2)
|
59
|
+
webmock (3.19.1)
|
60
|
+
addressable (>= 2.8.0)
|
61
|
+
crack (>= 0.3.2)
|
62
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
arm64-darwin-22
|
66
|
+
arm64-darwin-23
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
porkbun!
|
70
|
+
pry (~> 0.14.2)
|
71
|
+
rspec (~> 3.12)
|
72
|
+
thor (~> 1.2)
|
73
|
+
webmock (~> 3.19)
|
74
|
+
|
75
|
+
BUNDLED WITH
|
76
|
+
2.4.12
|
data/bin/porkbun
CHANGED
@@ -53,6 +53,19 @@ class CLI < Thor
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
+
desc 'create', 'Create a new record'
|
57
|
+
option :type, required: true, desc: 'The record type: A, AAAA, CNAME, MX, TXT, SRV, NS, SOA'
|
58
|
+
option :domain, required: true, desc: 'The domain name: google.com'
|
59
|
+
option :name, required: true, desc: 'The hostname: www'
|
60
|
+
option :content, required: true, desc: 'The content: hostname, or IP address'
|
61
|
+
option :ttl, default: 600, type: :numeric, desc: 'The TTL in seconds'
|
62
|
+
option :prio, default: 0, type: :numeric, desc: 'The priority for MX records'
|
63
|
+
def create
|
64
|
+
record = Porkbun::DNS.create(options)
|
65
|
+
puts record
|
66
|
+
puts record.message
|
67
|
+
end
|
68
|
+
|
56
69
|
desc 'dyndns <hostname.domain> [<ip>]', 'Update a dynamic dns record. example: porkbun dyndns home.example.com'
|
57
70
|
long_desc 'If no IP is provided, the current public IP is used.'
|
58
71
|
def dyndns(hostname, ip = nil)
|
data/lib/porkbun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: porkbun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bretoi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -48,6 +48,7 @@ extra_rdoc_files: []
|
|
48
48
|
files:
|
49
49
|
- ".rspec"
|
50
50
|
- Gemfile
|
51
|
+
- Gemfile.lock
|
51
52
|
- README.md
|
52
53
|
- Rakefile
|
53
54
|
- bin/porkbun
|