shopify_empty_gem 0.1.2 → 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: 8e52f8fc30567f058b24f22850d42202590664c0d2059c46885ea56b97ebce5f
4
- data.tar.gz: c8b77d7ccd7f43e3ac908c4369d03ac2b4e7bf9edd7819e579d0c2f1535b61df
3
+ metadata.gz: f70b5549b708251bec3ef8b9697cd084ed36f981ecd9d49fa244bbc8e828b48b
4
+ data.tar.gz: 0e4530261d7e140f312621a6d7e163cb0c605e51a2acb4ca7b2394e433164ecd
5
5
  SHA512:
6
- metadata.gz: 53f6959f88d236eb86d27cd0fcf8dd71866eb980f3b63612f98b17e17fcca603376a2c94768eacd0b047a62dee10fbdd2953ad5a323165fd9b6606966dd4cd59
7
- data.tar.gz: 2c1677e3b6ec2aae883a853128445dc1ed3336741827a459082862256e56b1b426418f30b89e0834dd475ec106623d8ee0ff57faf1e76a934c84e8ff51e50faa
6
+ metadata.gz: 3e153a1167a12ad7d7024ccd1deb3f623502ffa321b60b24bc5de12f60a3dd5fd14ae2b8d57ce666f0b730a5fe8afd0b879d8fb67ab092f9b92d19e0af7377e2
7
+ data.tar.gz: 8be3592da63974594d1a4ee39feced9a3ae122f688e8ccce32d0f72c86924fcc523a5981fdc5ebe6c0240005f25f3910d16090691c0b9bb4938627c5905d8559
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_empty_gem (0.1.2)
4
+ shopify_empty_gem (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module ShopifyEmptyGem
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -88,10 +88,12 @@ module Poll
88
88
  end
89
89
  end
90
90
 
91
- puts "Kicking off the release-gem-with-otp script!!"
91
+ puts "🚀 Kicking off the release-gem-with-otp script!!"
92
92
 
93
93
  spec_path, temp_otp_code, *release_command = ARGV
94
94
 
95
+ puts "📝 The otp code is: #{temp_otp_code}"
96
+
95
97
  spec = Gem::Specification.load(spec_path)
96
98
  if RubygemsAPI.published?(spec.name, spec.version)
97
99
  puts "#{spec.name} version #{spec.version} is already published."
@@ -126,13 +128,23 @@ else
126
128
  #
127
129
  # Since we've already tagged and built the gem with `bundle exec gem_push=no rake release`, the last step is to push the gem
128
130
  # Instead of re-building and re-tagging the gem, we'll complete the last step of the `rake release` command => (gem push)
129
- system(
130
- {'GEM_HOST_OTP_CODE' => temp_otp_code.to_s},
131
- 'bundle',
132
- 'exec',
133
- 'rake',
134
- 'release'
135
- )
131
+ puts "💪 Preparing to release gem"
132
+
133
+ puts "❓ GEM_HOST_OTP_CODE value is: #{ENV['GEM_HOST_OTP_CODE']}"
134
+ puts "🤝 Setting environment variable"
135
+ ENV['GEM_HOST_OTP_CODE'] = temp_otp_code
136
+ puts "✅ GEM_HOST_OTP_CODE value is updated to: #{ENV['GEM_HOST_OTP_CODE']}"
137
+
138
+ puts "🎉 Running 'bundle exec rake release' with otp code #{temp_otp_code}"
139
+ system('bundle', 'exec', 'rake', 'release')
140
+
141
+ # system(
142
+ # {'GEM_HOST_OTP_CODE' => temp_otp_code.to_s},
143
+ # 'bundle',
144
+ # 'exec',
145
+ # 'rake',
146
+ # 'release'
147
+ # )
136
148
 
137
149
  # TODO: What if OTP has expired? Add mechanism to retry.
138
150
  end
@@ -1,4 +1,4 @@
1
1
  deploy:
2
2
  override:
3
- - lib/snippets/release-gem-with-otp shopify_empty_gem.gemspec 008596
3
+ - lib/snippets/release-gem-with-otp shopify_empty_gem.gemspec 111075
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_empty_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,7 +44,7 @@ dependencies:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 12.3.3
47
- description:
47
+ description:
48
48
  email:
49
49
  - admins@shopify.com
50
50
  executables: []
@@ -64,7 +64,7 @@ licenses:
64
64
  - MIT
65
65
  metadata:
66
66
  allowed_push_host: https://rubygems.org
67
- post_install_message:
67
+ post_install_message:
68
68
  rdoc_options: []
69
69
  require_paths:
70
70
  - lib
@@ -79,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.2.20
83
- signing_key:
82
+ rubygems_version: 3.2.32
83
+ signing_key:
84
84
  specification_version: 4
85
85
  summary: Empty gem for testing purposes
86
86
  test_files: []