metaboss_rails 0.1.4 → 0.1.5
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.lock +1 -1
- data/lib/metaboss_rails/update/uri.rb +6 -3
- data/lib/metaboss_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f09393cbaa774c5b41df3b398373e763fb61d397fc30234139f6a17e2bc6cb8c
|
4
|
+
data.tar.gz: 5a9219c3ba04f2ae6aa2a2979e6934aae5fab630f205c73978498f825ecb37fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 744b277640926367066184bc5f83351dff8969500181f9d64ee978b7b2fe7ce2c7c7bf1e79b8e8b9ad035cd77204a567804d5e7324d138b72f9a8efe4a4ba54b
|
7
|
+
data.tar.gz: ba0b9178e262e7269e38faf2cfba62420462a4e509b72c538814fac9f5874e084a8b52c600539fa6a299bcbcd405a1807359741ff923f27c29934c0326a1f7d9
|
data/Gemfile.lock
CHANGED
@@ -4,19 +4,22 @@ module MetabossRails
|
|
4
4
|
include Thor::Actions
|
5
5
|
|
6
6
|
def self.exit_on_failure?
|
7
|
-
|
7
|
+
false
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "Updates URI",
|
11
11
|
"Update the metadata URI, keeping the rest of the Data struct the same."
|
12
|
-
option :account, type: :string, required: true,
|
12
|
+
option :account, type: :string, required: true,
|
13
|
+
desc: "The mint account to update the URI for."
|
13
14
|
option :keypair, type: :string, required: true, desc: "The path to the keypair to use."
|
14
15
|
option "new-uri", type: :string, required: true, desc: "The new URI with updated metadata."
|
15
16
|
# metaboss update uri --keypair <PATH_TO_KEYPAIR> --account <MINT_ACCOUNT> --new-uri <NEW_URI>
|
16
17
|
def uri
|
17
18
|
method = "update uri"
|
18
19
|
args = options.map { |k, v| "--#{k} '#{v}'" }.join(" ")
|
19
|
-
run Metaboss.command(method, args)
|
20
|
+
success = run Metaboss.command(method, args)
|
21
|
+
|
22
|
+
raise Error, set_color("Failed to update URI.", :red) unless success
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|