metaboss_rails 0.1.11 → 0.1.14

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: c45969d767ca2301a10890768c90ebe2676927efe5c459142f1cdb4a27d20c35
4
- data.tar.gz: 9dd8c26bbec300e6884d10ec00cbcd68ab61b3a735916d144280aa8ff6eb1f09
3
+ metadata.gz: 4edfa11649b24567681a1a4c4d20756ab5a87743ead20c43d838bed49e77d018
4
+ data.tar.gz: 7a9953936e1e38740900f77ea5e456e55b739c3712f9d49a70d4442b4ca976c7
5
5
  SHA512:
6
- metadata.gz: c9111b28e2235cecbd69d52e86fc296ca382e8ed204836e9cb00bcef0a75d050520eaf7fad5f9f507856d0f2259e12028ff9f43b3ea4b8d6de166652cf9fdf87
7
- data.tar.gz: 232e3fc31850fc0bf3cd13d8559cee39ba6c345d90a93c8050049d4398a6b7b18885f1adecfafd017ae9b833e99e7bd415e131807b39eb05610fe852a29efc14
6
+ metadata.gz: 9af3b4f56119b3114d8cf77010da8992c11b6faf53377d59bd98bc0581acd77454c2e9c8d05135bd673363b9ebcea686b188f9319e1c25c35d68a34e5bd79c53
7
+ data.tar.gz: 65d9e24a2bd66b1ce1a275e3a0bf67483242f3f616bbdd140b298199a519e4ecb4e4f9398f80687f11454476a75f7e4ef7a4ca6908f42b07d44d76f6d8e30ad6
data/Gemfile CHANGED
@@ -6,3 +6,4 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
9
+ gem "os"
data/Gemfile.lock CHANGED
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metaboss_rails (0.1.5)
4
+ metaboss_rails (0.1.13)
5
5
  thor
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
+ os (1.1.4)
10
11
  rake (13.0.6)
11
12
  thor (1.2.1)
12
13
 
@@ -16,6 +17,7 @@ PLATFORMS
16
17
  DEPENDENCIES
17
18
  bundler (~> 2.2.31)
18
19
  metaboss_rails!
20
+ os
19
21
  rake (~> 13.0)
20
22
 
21
23
  BUNDLED WITH
@@ -15,7 +15,7 @@ desc: "The mint account to update the URI for."
15
15
  option "new-uri", type: :string, required: true, desc: "The new URI with updated metadata."
16
16
  # metaboss update uri --keypair <PATH_TO_KEYPAIR> --account <MINT_ACCOUNT> --new-uri <NEW_URI>
17
17
  def uri
18
- method = "update uri"
18
+ method = "update uri -r https://twilight-quiet-paper.solana-mainnet.quiknode.pro/"
19
19
  args = options.map { |k, v| "--#{k} '#{v}'" }.join(" ")
20
20
  success = run Metaboss.command(method, args)
21
21
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MetabossRails
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.14"
5
5
  end
@@ -3,12 +3,15 @@
3
3
  require "thor"
4
4
  require_relative "metaboss_rails/version"
5
5
  require "metaboss_rails/update/uri"
6
+ require "os"
6
7
 
7
8
  module MetabossRails
8
9
  class Error < StandardError; end
9
10
 
10
11
  class Metaboss < Thor
11
- EXE_PATH = File.expand_path(File.join(__dir__, "../vendor/metaboss"))
12
+ EXE_PATH = File.expand_path(File.join(__dir__, "../vendor/metaboss_mac"))
13
+
14
+ EXE_PATH = File.expand_path(File.join(__dir__, "../vendor/metaboss_ubuntu")) if OS.linux?
12
15
 
13
16
  def self.command(method, args)
14
17
  "#{EXE_PATH} #{method} #{args}"
data/lib/os.rb ADDED
@@ -0,0 +1,21 @@
1
+ module OS
2
+ def self.windows?
3
+ (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
4
+ end
5
+
6
+ def self.mac?
7
+ (/darwin/ =~ RUBY_PLATFORM) != nil
8
+ end
9
+
10
+ def self.unix?
11
+ !OS.windows?
12
+ end
13
+
14
+ def self.linux?
15
+ OS.unix? and !OS.mac?
16
+ end
17
+
18
+ def self.jruby?
19
+ RUBY_ENGINE == "jruby"
20
+ end
21
+ end
Binary file
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metaboss_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Pham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -56,10 +56,10 @@ files:
56
56
  - lib/metaboss_rails.rb
57
57
  - lib/metaboss_rails/update/uri.rb
58
58
  - lib/metaboss_rails/version.rb
59
+ - lib/os.rb
59
60
  - metaboss_rails.gemspec
60
- - vendor/metaboss
61
- - vendor/metaboss_arm
62
- - vendor/metaboss_docker_build
61
+ - vendor/metaboss_mac
62
+ - vendor/metaboss_ubuntu
63
63
  homepage: https://github.com/dannynpham/metaboss_rails.git
64
64
  licenses: []
65
65
  metadata:
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.2.15
85
+ rubygems_version: 3.3.15
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Rails gem for Metaboss
Binary file