metaboss_rails 0.1.3 → 0.1.6

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: fab4ee34e380635b3243ec761201552e305ae1e61c8b805349bb0c3f4ab8fae4
4
- data.tar.gz: 3b2d97581adf1d031d08ef33f7c06587e9814ee8d277cc34db036a7f52c2cc4b
3
+ metadata.gz: bcfd9846c84651738d355ebefc64f21e97cfcb784b810167a21e9debbb684b66
4
+ data.tar.gz: a389832ec0c55acf3ef0706b98fa26caeae46caf17b66f17cc60cde9d93efd95
5
5
  SHA512:
6
- metadata.gz: 9fc29a85a1ad248f8dd5981027755574dffcb2e04ec6ddd7b5d84b279f8f69df49535950417490b7a1d363f727f780321a2d19b2647a3576859ac12c36815f22
7
- data.tar.gz: 4521e7c86cb6240bce115aee5d719960bfe0f15588bba31bd9b6fe9f704ef14be9b097567f09bff426f2052176fdc16c6fec3286752ed6a03818e9edefc0f3b7
6
+ metadata.gz: 4f375ad6be169cc27dd3d5a2d0ec59d85d07edf2277a39f4d4be16d8bc09bbfcc636fdff5ceef790de3a72b6d063fcb104393bfa940a2f1479ca4ff85e74968a
7
+ data.tar.gz: cb1ebfbb5f9a94f83eadd528ad0b4854776b9aff95e9bbed9dee1df8907de61859dee2fc856c3b578eb34fc653d3d317dd18cec64f05836d713e2478ad91e8e4
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.5)
5
5
  thor
6
6
 
7
7
  GEM
@@ -3,16 +3,23 @@ module MetabossRails
3
3
  class Uri < Thor
4
4
  include Thor::Actions
5
5
 
6
+ def self.exit_on_failure?
7
+ false
8
+ end
9
+
6
10
  desc "Updates URI",
7
11
  "Update the metadata URI, keeping the rest of the Data struct the same."
8
- 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."
9
14
  option :keypair, type: :string, required: true, desc: "The path to the keypair to use."
10
15
  option "new-uri", type: :string, required: true, desc: "The new URI with updated metadata."
11
16
  # metaboss update uri --keypair <PATH_TO_KEYPAIR> --account <MINT_ACCOUNT> --new-uri <NEW_URI>
12
17
  def uri
13
18
  method = "update uri"
14
19
  args = options.map { |k, v| "--#{k} '#{v}'" }.join(" ")
15
- puts run Metaboss.command(method, args), capture: true
20
+ success = run Metaboss.command(method, args)
21
+
22
+ raise "Failed to update URI." unless success
16
23
  end
17
24
  end
18
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MetabossRails
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.6"
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.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Pham