instrumental-components 0.1.33 → 0.1.35

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: 1416256b1a95faf104d9a5e722b1f1b10e7f9846b5ef95c0f09745d7b0728c59
4
- data.tar.gz: 7c2428bd981c7c39591a30ad1de1a36529891512d9d21498205bab6fd23b7238
3
+ metadata.gz: a3e24b31c541753b0ee2c08fe2fa97d25b857774b5438aecf57e5becd0602d19
4
+ data.tar.gz: 848da8582bf125d130ea82267e08ed837f7f0cb747c9fca8fc8cc729821a9ef1
5
5
  SHA512:
6
- metadata.gz: 86027e0adad984f579c27362a0ade99e8c5031174139848b1ff3be020a4128477d018f156245e4297949be48ce5e1b1feaadf9800e193737c4d6409bec80413e
7
- data.tar.gz: 99c1f082032511a7c110691e4c8e43921e637f1c7b6215db694d9ade0462f291d3d9578aa5aaba89ba0e43b2a24dffbd012d4079bb88560e8f735d0398690b30
6
+ metadata.gz: fa742ae8fb037c889822e3c1503fe492faf1ce985b93640d059d4dd8cf1b19875a6b9afc54c1add8a592df2d78d6e66e0203930534f0315f31e8af104ad38a80
7
+ data.tar.gz: 1ca31afa1df69256c2fc23184aa88ce56d641967542893f83601c9f40c28183982f9fca05094b745dcf5896709753cb36a4c3cb46d4e1870d1aa2e005840f796
@@ -8,7 +8,7 @@ require 'open-uri'
8
8
 
9
9
  options = {}
10
10
  OptionParser.new do |opts|
11
- opts.banner = "Usage: latest-instrumental-version"
11
+ opts.banner = "Usage: instrumental-version"
12
12
  end.parse!
13
13
 
14
14
  version_checker = InstrumentalComponents::VersionChecker.new
@@ -13,11 +13,17 @@ module InstrumentalComponents
13
13
  latest_version = fetch_latest_version
14
14
  current_version = get_current_version
15
15
 
16
- if current_version == latest_version
17
- puts "You're on the latest version!"
16
+ puts ""
17
+ if current_version.nil?
18
+ puts "You're not using Instrumental Components. To install, run:\nbundle exec install-instrumental"
19
+ elsif current_version == latest_version
20
+ puts "Your project is running version #{current_version} of Instrumental Components. That's the latest version!"
18
21
  else
19
- puts "You're running version #{current_version}. To update to the latest version (#{latest_version}), run:\nbundle exec install-instrumental"
22
+ puts "Your project is running version #{current_version} of Instrumental Components. The latest version is #{latest_version}. To update to the latest version, run:"
23
+ puts ""
24
+ puts "bundle exec install-instrumental"
20
25
  end
26
+ puts ""
21
27
  end
22
28
 
23
29
  private
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.33
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Casel
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-20 00:00:00.000000000 Z
10
+ date: 2025-05-22 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: open-uri
@@ -42,12 +42,12 @@ email:
42
42
  - support@instrumental.dev
43
43
  executables:
44
44
  - install-instrumental
45
- - latest-instrumental-version
45
+ - instrumental-version
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - bin/install-instrumental
50
- - bin/latest-instrumental-version
50
+ - bin/instrumental-version
51
51
  - lib/instrumental-components.rb
52
52
  - lib/instrumental-components/version_checker.rb
53
53
  homepage: https://instrumental.dev