instrumental-components 0.1.34 → 0.1.36
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 +4 -4
- data/lib/instrumental-components/version_checker.rb +6 -2
- data/lib/instrumental-components.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dbb63bcd494c270ebad446a074dd3dd76f8a4cf63c1943e77d4c5966fa1d8d1
|
4
|
+
data.tar.gz: b610aa078343c8be2c8953637b4b1e769b2fbe61767cf282f0029f93f97ae97b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af67204c78ff0b2fb5b0f9b0c1d0b2fd106e06bb6be82878426ab16bb9b950ecb0051c7ce27345f9a5623bd2553f58054de971d5b16616b8c8211e7a34271a3
|
7
|
+
data.tar.gz: c4417bfddb18929fea652067d5f4a2f3887d0ec618fa4f911c28b8a631e6879044e4244a48307a007597061e243d9b9e60d2437db44cc0371f556551dc2c10df
|
@@ -13,13 +13,17 @@ module InstrumentalComponents
|
|
13
13
|
latest_version = fetch_latest_version
|
14
14
|
current_version = get_current_version
|
15
15
|
|
16
|
+
puts ""
|
16
17
|
if current_version.nil?
|
17
18
|
puts "You're not using Instrumental Components. To install, run:\nbundle exec install-instrumental"
|
18
19
|
elsif current_version == latest_version
|
19
|
-
puts "
|
20
|
+
puts "Your project is running version #{current_version} of Instrumental Components. That's the latest version!"
|
20
21
|
else
|
21
|
-
puts "
|
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"
|
22
25
|
end
|
26
|
+
puts ""
|
23
27
|
end
|
24
28
|
|
25
29
|
private
|
@@ -123,19 +123,19 @@ module InstrumentalComponents
|
|
123
123
|
gemfile_content = File.read(gemfile_path)
|
124
124
|
|
125
125
|
# Check if the gem is already in any development group
|
126
|
-
unless gemfile_content.match?(/^\s*gem\s+['
|
126
|
+
unless gemfile_content.match?(/^\s*gem\s+["']instrumental-components-library["']/)
|
127
127
|
if gemfile_content.include?("group :development")
|
128
128
|
# Find the first development group and add the gem after the 'do'
|
129
|
-
gemfile_content.sub!(/(group :development\s+do)/, "\\1\n gem
|
129
|
+
gemfile_content.sub!(/(group :development\s+do)/, "\\1\n gem \"instrumental-components-library\"")
|
130
130
|
else
|
131
131
|
# Create new development group
|
132
|
-
gemfile_content += "\n\ngroup :development do\n gem
|
132
|
+
gemfile_content += "\n\ngroup :development do\n gem \"instrumental-components-library\"\nend\n"
|
133
133
|
end
|
134
134
|
|
135
135
|
File.write(gemfile_path, gemfile_content)
|
136
|
-
puts "✅ gem
|
136
|
+
puts "✅ gem \"instrumental-components-library\" has been added to the development group in your Gemfile."
|
137
137
|
else
|
138
|
-
puts "✅ gem
|
138
|
+
puts "✅ gem \"instrumental-components-library\" is already in your Gemfile."
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
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.
|
4
|
+
version: 0.1.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Casel
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-06-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: open-uri
|