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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aea9f4460af462004ef7897b723495494c4f0b822c807ccbe3fad532b40e2f4
4
- data.tar.gz: c33634f7cfb31f85e43d6c63d6b6af011c75835d3a1652d989bcb757ba13de58
3
+ metadata.gz: f09393cbaa774c5b41df3b398373e763fb61d397fc30234139f6a17e2bc6cb8c
4
+ data.tar.gz: 5a9219c3ba04f2ae6aa2a2979e6934aae5fab630f205c73978498f825ecb37fb
5
5
  SHA512:
6
- metadata.gz: 327bd2e728f961b6d0078206fd35fd56a5e38cf00cb230d50b1e1e7eed6e8aacb1a6562d356891953bf2277a2ebde278f8d0df06020d06ea2ceff84cb6eb902d
7
- data.tar.gz: e6afa9eb638e65b94d81344085c028d4de3d6c32aa01582c7c1f384b6321d179e36f77da8ea316358e616dabd2867ea60401c84ed51e3ffa8fb9242d1ff26996
6
+ metadata.gz: 744b277640926367066184bc5f83351dff8969500181f9d64ee978b7b2fe7ce2c7c7bf1e79b8e8b9ad035cd77204a567804d5e7324d138b72f9a8efe4a4ba54b
7
+ data.tar.gz: ba0b9178e262e7269e38faf2cfba62420462a4e509b72c538814fac9f5874e084a8b52c600539fa6a299bcbcd405a1807359741ff923f27c29934c0326a1f7d9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metaboss_rails (0.1.3)
4
+ metaboss_rails (0.1.4)
5
5
  thor
6
6
 
7
7
  GEM
@@ -4,19 +4,22 @@ module MetabossRails
4
4
  include Thor::Actions
5
5
 
6
6
  def self.exit_on_failure?
7
- true
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, desc: "The mint account to update the URI for."
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), capture: true
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MetabossRails
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metaboss_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Pham